Skip to content

Commit c4839da

Browse files
update input file
1 parent 220eba1 commit c4839da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

viscy/scripts/infection_phenotyping/Infection_classification_covnextModel.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# %% Create a dataloader and visualize the batches.
1919

2020
# Set the path to the dataset
21-
dataset_path = "/hpc/projects/intracellular_dashboard/viral-sensor/infection_classification/datasets/Exp_2023_11_08_Opencell_infection/OC43_infection_timelapse_trainVal.zarr"
21+
dataset_path = "/hpc/projects/intracellular_dashboard/viral-sensor/infection_classification/datasets/Exp_2023_11_08_Opencell_infection/OC43_infection_timelapse_all_curated_train.zarr"
2222

2323
# find ratio of background, uninfected and infected pixels
2424
zarr_input = open_ome_zarr(
@@ -56,7 +56,7 @@
5656
# Create an instance of HCSDataModule
5757
data_module = HCSDataModule(
5858
dataset_path,
59-
source_channel=["Phase", "HSP90"],
59+
source_channel=["Phase", "HSP90", "phase_nucl_iqr","hsp90_skew"],
6060
target_channel=["Inf_mask"],
6161
yx_patch_size=[256, 256],
6262
split_ratio=0.8,
@@ -66,7 +66,7 @@
6666
batch_size=16,
6767
normalizations=[
6868
NormalizeSampled(
69-
keys=["Phase","HSP90"],
69+
keys=["Phase","HSP90", "phase_nucl_iqr","hsp90_skew"],
7070
level="fov_statistics",
7171
subtrahend="median",
7272
divisor="iqr",
@@ -76,7 +76,7 @@
7676
RandWeightedCropd(
7777
num_samples=4,
7878
spatial_size=[-1, 256, 256],
79-
keys=["Phase","HSP90"],
79+
keys=["Phase","HSP90", "phase_nucl_iqr","hsp90_skew"],
8080
w_key="Inf_mask",
8181
)
8282
],
@@ -141,7 +141,7 @@
141141

142142
# Fit the model
143143
model = SemanticSegUNet25D(
144-
in_channels=2,
144+
in_channels=4,
145145
out_channels=3,
146146
loss_function=nn.CrossEntropyLoss(weight=torch.tensor(pixel_ratio)),
147147
)

0 commit comments

Comments
 (0)