thethomasboyer commited on
Commit
4935b71
·
verified ·
1 Parent(s): 27250d3

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. NASH_steato/net/diffusion_pytorch_model.safetensors +3 -0
  2. NASH_steato/video_time_encoder/diffusion_pytorch_model.safetensors +3 -0
  3. biotine/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_hard_aug_inference.py +4 -0
  4. biotine/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_inference.py +4 -0
  5. biotine/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_hard_aug_inference.py +33 -0
  6. biotine/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_inference.py +33 -0
  7. biotine/my_conf/dataset/Jurkat/Jurkat_inference.py +3 -0
  8. biotine/my_conf/dataset/Jurkat/Jurkat_inference_hard_aug.py +3 -0
  9. biotine/my_conf/dataset/NASH_fibrosis/NASH_fibrosis_inference.py +3 -0
  10. biotine/my_conf/dataset/NASH_steatosis/NASH_steatosis_inference.py +3 -0
  11. biotine/my_conf/dataset/biotine/biotine_png_128_hard_aug_inference.py +3 -0
  12. biotine/my_conf/dataset/biotine/biotine_png_128_inference.py +3 -0
  13. biotine/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_hard_aug_inference.py +4 -0
  14. biotine/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_inference.py +3 -0
  15. biotine/my_conf/dataset/ependymal_context/ependymal_context_inference.py +32 -0
  16. biotine/my_conf/dataset/ependymal_cutout/ependymal_cutout_inference.py +32 -0
  17. biotine/my_conf/my_training_conf.py +194 -0
  18. biotine/my_conf/net/net_128_3.py +22 -0
  19. biotine/my_conf/net/net_196_3_12M.py +22 -0
  20. biotine/my_conf/net/net_66_3_2M.py +23 -0
  21. biotine/net/config.json +64 -0
  22. biotine/net/diffusion_pytorch_model.safetensors +3 -0
  23. biotine/video_time_encoder/config.json +8 -0
  24. biotine/video_time_encoder/diffusion_pytorch_model.safetensors +3 -0
  25. biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_inference.py +3 -0
  26. biotine_unpaired/my_conf/dataset/ependymal_cutout/ependymal_cutout_01_noised_separate_gt_fully_ordered.yaml +26 -0
  27. biotine_unpaired/my_conf/dataset/ependymal_cutout/ependymal_cutout_03_noised_separate_gt_fully_ordered.yaml +25 -0
  28. biotine_unpaired/my_conf/dataset/ependymal_cutout/ependymal_cutout_fully_ordered.yaml +19 -0
  29. biotine_unpaired/net/diffusion_pytorch_model.safetensors +3 -0
  30. biotine_unpaired/video_time_encoder/diffusion_pytorch_model.safetensors +3 -0
  31. cell_cycle/dynamic/scheduler_config.json +19 -0
  32. cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel.yaml +16 -0
  33. cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_fully_ordered_inference.py +10 -0
  34. cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_hard_aug_inference.py +9 -0
  35. cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_inference.py +9 -0
  36. cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_nocodazole_inference.py +26 -0
  37. cell_cycle/my_conf/dataset/BBBC048/bbbc048.yaml +21 -0
  38. cell_cycle/my_conf/dataset/BBBC048/bbbc048_inference.py +7 -0
  39. cell_cycle/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png.yaml +19 -0
  40. cell_cycle/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png_hard_aug.yaml +16 -0
  41. cell_cycle/my_conf/dataset/ChromaLive6h/ChromaLive6h_4ch_tif.yaml +19 -0
  42. cell_cycle/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_fully_ordered_inference.py +4 -0
  43. cell_cycle/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_hard_aug_inference.py +6 -0
  44. cell_cycle/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_inference.py +3 -0
  45. cell_cycle/my_conf/dataset/ChromaLiveTL24h/ChromaLiveTL24h.yaml +19 -0
  46. cell_cycle/my_conf/dataset/DeepCycle/deepcycle_brightfield_to_3D_inference.py +3 -0
  47. cell_cycle/my_conf/dataset/DeepCycle/deepcycle_hoechst_brightfield_to_3D_inference.py +3 -0
  48. cell_cycle/my_conf/dataset/DeepCycle/deepcycle_inference.py +3 -0
  49. cell_cycle/my_conf/dataset/DeepCycle/deepcycle_markers_inference.py +3 -0
  50. cell_cycle/my_conf/dataset/Jurkat/Jurkat.yaml +16 -0
NASH_steato/net/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d22101b90ad60a035434194718b8eefcbf79e6a82c7decd996f43505c17915d
3
+ size 97782492
NASH_steato/video_time_encoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fcc2c902c6ed8d14e67b7722d5f8fe48db3a676ace77188046a7835431b6fb3
3
+ size 50104
biotine/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_hard_aug_inference.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from GaussianProxy.conf.dataset.BBBC021_196_hard_aug_inference import dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/docetaxel_hard_augmented"
4
+ dataset.name += "_docetaxel"
biotine/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_inference.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from GaussianProxy.conf.dataset.BBBC021_196_inference import BBBC021_196_inference as BBBC021_196_docetaxel_inference
2
+
3
+ BBBC021_196_docetaxel_inference.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/docetaxel"
4
+ BBBC021_196_docetaxel_inference.name += "_docetaxel"
biotine/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_hard_aug_inference.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from torch import float32
2
+ from torchvision.transforms import Compose, ConvertImageDtype, Normalize, Resize
3
+
4
+ from GaussianProxy.conf.training_conf import DataSet, DatasetParams
5
+ from GaussianProxy.utils.data import ImageDataset
6
+
7
+ DEFINITION = 128
8
+ NUMBER_OF_CHANNELS = 3
9
+
10
+ transforms = Compose(
11
+ transforms=[
12
+ Resize(DEFINITION),
13
+ ConvertImageDtype(float32),
14
+ Normalize(mean=[0.5] * NUMBER_OF_CHANNELS, std=[0.5] * NUMBER_OF_CHANNELS),
15
+ ]
16
+ )
17
+
18
+ ds_params = DatasetParams(
19
+ file_extension="png",
20
+ key_transform=str,
21
+ sorting_func=lambda subdir: int(subdir.name.split("_")[1]),
22
+ dataset_class=ImageDataset,
23
+ )
24
+
25
+ dataset = DataSet(
26
+ name="chromaLive6h_3ch_png_patches_380px_hard_aug",
27
+ data_shape=(NUMBER_OF_CHANNELS, DEFINITION, DEFINITION),
28
+ transforms=transforms,
29
+ selected_dists=None, # not used
30
+ expected_initial_data_range=(0, 255),
31
+ dataset_params=ds_params,
32
+ path="/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches_hard_augmented",
33
+ )
biotine/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_inference.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from torch import float32
2
+ from torchvision.transforms import Compose, ConvertImageDtype, Normalize, Resize
3
+
4
+ from GaussianProxy.conf.training_conf import DataSet, DatasetParams
5
+ from GaussianProxy.utils.data import ImageDataset
6
+
7
+ DEFINITION = 128
8
+ NUMBER_OF_CHANNELS = 3
9
+
10
+ transforms = Compose(
11
+ transforms=[
12
+ Resize(DEFINITION),
13
+ ConvertImageDtype(float32),
14
+ Normalize(mean=[0.5] * NUMBER_OF_CHANNELS, std=[0.5] * NUMBER_OF_CHANNELS),
15
+ ]
16
+ )
17
+
18
+ ds_params = DatasetParams(
19
+ file_extension="png",
20
+ key_transform=str,
21
+ sorting_func=lambda subdir: int(subdir.name.split("_")[1]),
22
+ dataset_class=ImageDataset,
23
+ )
24
+
25
+ dataset = DataSet(
26
+ name="chromaLive6h_3ch_png_patches_380px",
27
+ data_shape=(NUMBER_OF_CHANNELS, DEFINITION, DEFINITION),
28
+ transforms=transforms,
29
+ selected_dists=None, # not used
30
+ expected_initial_data_range=(0, 255),
31
+ dataset_params=ds_params,
32
+ path="/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches",
33
+ )
biotine/my_conf/dataset/Jurkat/Jurkat_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.Jurkat_inference import Jurkat_inference
2
+
3
+ Jurkat_inference.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/Jurkat/rgb_images_all_cell_cycles"
biotine/my_conf/dataset/Jurkat/Jurkat_inference_hard_aug.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.Jurkat_inference import Jurkat_inference as dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/Jurkat/rgb_images_all_cell_cycles_hard_augmented"
biotine/my_conf/dataset/NASH_fibrosis/NASH_fibrosis_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.NASH_fibrosis_inference import dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/prepared_data/fibrosis"
biotine/my_conf/dataset/NASH_steatosis/NASH_steatosis_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.NASH_steatosis_inference import dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/prepared_data/steatosis"
biotine/my_conf/dataset/biotine/biotine_png_128_hard_aug_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.biotine_png_128_hard_aug_inference import dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255_hard_augmented"
biotine/my_conf/dataset/biotine/biotine_png_128_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.biotine_png_128_inference import dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255"
biotine/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_hard_aug_inference.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from GaussianProxy.conf.dataset.diabetic_retinopathy_inference import diabetic_retinopathy_inference as dataset
2
+
3
+ dataset.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/prepared_dataset/train_hard_augmented"
4
+ dataset.name = "diabetic_retinopathy_inference_hard_augmented"
biotine/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.diabetic_retinopathy_inference import diabetic_retinopathy_inference
2
+
3
+ diabetic_retinopathy_inference.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/prepared_dataset/train"
biotine/my_conf/dataset/ependymal_context/ependymal_context_inference.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from torch import float32
2
+ from torchvision.transforms import Compose, ConvertImageDtype, Normalize
3
+
4
+ from GaussianProxy.conf.training_conf import DataSet, DatasetParams
5
+ from GaussianProxy.utils.data import ImageDataset
6
+
7
+ DEFINITION = 256
8
+ NUMBER_OF_CHANNELS = 3
9
+
10
+ transforms = Compose(
11
+ transforms=[
12
+ ConvertImageDtype(float32),
13
+ Normalize(mean=[0.5] * NUMBER_OF_CHANNELS, std=[0.5] * NUMBER_OF_CHANNELS),
14
+ ]
15
+ )
16
+
17
+ ds_params = DatasetParams(
18
+ file_extension="png",
19
+ key_transform=str,
20
+ sorting_func=lambda subdir: int(subdir.name),
21
+ dataset_class=ImageDataset,
22
+ )
23
+
24
+ dataset = DataSet(
25
+ name="ependymal_context",
26
+ data_shape=(NUMBER_OF_CHANNELS, DEFINITION, DEFINITION),
27
+ transforms=transforms,
28
+ selected_dists=None,
29
+ expected_initial_data_range=(0, 255),
30
+ dataset_params=ds_params,
31
+ path="/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_context",
32
+ )
biotine/my_conf/dataset/ependymal_cutout/ependymal_cutout_inference.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from torch import float32
2
+ from torchvision.transforms import Compose, ConvertImageDtype, Normalize
3
+
4
+ from GaussianProxy.conf.training_conf import DataSet, DatasetParams
5
+ from GaussianProxy.utils.data import ImageDataset
6
+
7
+ DEFINITION = 256
8
+ NUMBER_OF_CHANNELS = 3
9
+
10
+ transforms = Compose(
11
+ transforms=[
12
+ ConvertImageDtype(float32),
13
+ Normalize(mean=[0.5] * NUMBER_OF_CHANNELS, std=[0.5] * NUMBER_OF_CHANNELS),
14
+ ]
15
+ )
16
+
17
+ ds_params = DatasetParams(
18
+ file_extension="png",
19
+ key_transform=str,
20
+ sorting_func=lambda subdir: int(subdir.name),
21
+ dataset_class=ImageDataset,
22
+ )
23
+
24
+ dataset = DataSet(
25
+ name="ependymal_cutout",
26
+ data_shape=(NUMBER_OF_CHANNELS, DEFINITION, DEFINITION),
27
+ transforms=transforms,
28
+ selected_dists=[1, 2, 3, 4, 5, 6], # 0 is the trash class!
29
+ expected_initial_data_range=(0, 255),
30
+ dataset_params=ds_params,
31
+ path="/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_crop",
32
+ )
biotine/my_conf/my_training_conf.py ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datetime import datetime
2
+
3
+ from omegaconf import MISSING
4
+
5
+ ###################################################################################################
6
+ ############################################ Base conf ############################################
7
+ ###################################################################################################
8
+ # These are generic classes that need full instantiation
9
+ # pylint: disable=unused-import
10
+ from GaussianProxy.conf.training_conf import (
11
+ Accelerate,
12
+ AccelerateLaunchArgs,
13
+ Checkpointing,
14
+ Config,
15
+ DataLoader,
16
+ DDIMSchedulerConfig,
17
+ Evaluation,
18
+ ForwardNoising, # noqa: F401
19
+ InvertedRegeneration, # noqa: F401
20
+ IterativeInvertedRegeneration, # noqa: F401
21
+ MetricsComputation, # noqa: F401
22
+ SimilarityWithTrainData,
23
+ SimpleGeneration, # noqa: F401
24
+ Slurm,
25
+ Training,
26
+ )
27
+
28
+ # pylint: enable=unused-import
29
+
30
+ ###################################################################################################
31
+ ########################################## Defaults conf ##########################################
32
+ ###################################################################################################
33
+ defaults = [
34
+ {"dataset": "biotine/biotine_png_128_fully_ordered"},
35
+ "hydra/job_logging/custom",
36
+ "_self_",
37
+ ]
38
+
39
+ # fmt: off
40
+
41
+ # ------------------------------------------- Job launch ------------------------------------------
42
+ now = datetime.now().strftime("%Y-%m-%d--%H-%M-%S")
43
+ slurm = Slurm(
44
+ enabled = True,
45
+ monitor = False,
46
+ account = "icr@h100",
47
+ partition = None,
48
+ constraint = "h100",
49
+ qos = "t3",
50
+ nodes = 1,
51
+ num_gpus = 4,
52
+ max_num_requeue = 3,
53
+ total_job_time = 20 * 60,
54
+ output_folder = "${hydra:run.dir}" + f"/{now}_%j",
55
+ email = "tboyer@bio.ens.psl.eu",
56
+ job_launch_delay = None,
57
+ )
58
+
59
+ accelerate_launch_args = AccelerateLaunchArgs(
60
+ machine_rank = 0,
61
+ num_machines = 1,
62
+ gpu_ids = "all",
63
+ rdzv_backend = "static",
64
+ same_network = "true",
65
+ mixed_precision = "bf16",
66
+ num_processes = slurm.num_gpus,
67
+ main_process_port = 29503,
68
+ dynamo_backend = "inductor",
69
+ )
70
+
71
+ accelerate = Accelerate(
72
+ launch_args = accelerate_launch_args,
73
+ offline = True,
74
+ )
75
+
76
+ # ---------------------------------------------- Data ---------------------------------------------
77
+ data_loader = DataLoader(
78
+ num_workers = 4,
79
+ train_prefetch_factor = 4,
80
+ pin_memory = True,
81
+ persistent_workers = True,
82
+ )
83
+
84
+ # -------------------------------------------- Training -------------------------------------------
85
+ training = Training(
86
+ gradient_accumulation_steps = 1,
87
+ train_batch_size = 128 - 16,
88
+ max_grad_norm = 1,
89
+ nb_time_samplings = 1_000_000,
90
+ unpaired_data = False,
91
+ )
92
+
93
+ checkpointing = Checkpointing(
94
+ checkpoints_total_limit = 3,
95
+ resume_from_checkpoint = True,
96
+ checkpoint_every_n_steps = 5000,
97
+ chckpt_base_path = MISSING,
98
+ )
99
+
100
+ # ------------------------------------------- Evaluation ------------------------------------------
101
+ # naming convention is lowercase + underscore; has to be respected for debug args modification
102
+ metrics_compute = MetricsComputation(
103
+ nb_samples_to_gen_per_time = "adapt half aug",
104
+ batch_size = 256,
105
+ nb_diffusion_timesteps = 50,
106
+ selected_times = [1, 5, 10, 15, 19],
107
+ augmentations_for_metrics_comp = ["RandomHorizontalFlip", "RandomVerticalFlip", "RandomRotationSquareSymmetry"],
108
+ )
109
+
110
+ simple_generation = SimpleGeneration(
111
+ nb_diffusion_timesteps = 50,
112
+ n_rows_displayed = 4, # TODO: merge training & evaluation configs
113
+ nb_generated_samples = 16, # TODO: merge training & evaluation configs
114
+ )
115
+
116
+ inverted_regeneration = InvertedRegeneration(
117
+ nb_diffusion_timesteps = 50,
118
+ n_rows_displayed = 8, # TODO: merge training & evaluation configs
119
+ nb_generated_samples = 16, # TODO: merge training & evaluation configs
120
+ nb_video_times_in_parallel = 8, # TODO: merge training & evaluation configs TODO: not used in training!
121
+ nb_video_timesteps = 50, # TODO: merge training & evaluation configs
122
+ )
123
+
124
+ sim_with_train = SimilarityWithTrainData( # must be put after metrics_compute!
125
+ nb_generated_samples = -1, # TODO: not used
126
+ batch_size = 2048,
127
+ nb_batches_shown = -1, # TODO: not used
128
+ n_rows_displayed = -1, # TODO: not used
129
+ nb_diffusion_timesteps = -1, # TODO: not used
130
+ )
131
+
132
+ evaluation = Evaluation(
133
+ every_n_opt_steps = 25_000,
134
+ batch_size = 16, # TODO: remove this and use config from above
135
+ nb_video_timesteps = 50, # TODO: remove this and use config from above
136
+ strategies = [simple_generation, inverted_regeneration, metrics_compute, sim_with_train],
137
+ )
138
+
139
+ # ------------------------------------------- Diffusion -------------------------------------------
140
+ dynamic = DDIMSchedulerConfig(
141
+ num_train_timesteps = 3000,
142
+ clip_sample = False,
143
+ clip_sample_range = 1,
144
+ thresholding = True,
145
+ sample_max_value = 1,
146
+ prediction_type = "v_prediction",
147
+ rescale_betas_zero_snr = False,
148
+ timestep_spacing = "leading",
149
+ )
150
+
151
+ # ---------------------------------------------- Model --------------------------------------------
152
+ from my_conf.net.net_128_3 import net, time_encoder # noqa: E402
153
+
154
+ # ------------------------------------------ Final Config -----------------------------------------
155
+ config = Config(
156
+ # defaults
157
+ defaults = defaults,
158
+ # model
159
+ dynamic = dynamic,
160
+ net = net,
161
+ time_encoder = time_encoder,
162
+ # script
163
+ launcher_script_parent_folder = "/linkhome/rech/genlxz01/ufc43hj/sources/GaussianProxy",
164
+ script = "train",
165
+ # experiment variables
166
+ exp_parent_folder = "/lustre/fsn1/projects/rech/icr/ufc43hj/experiments",
167
+ project = MISSING,
168
+ run_name = MISSING,
169
+ # hydra
170
+ hydra = {"run": {"dir": "${exp_parent_folder}/${project}/${run_name}"}},
171
+ # slurm
172
+ slurm = slurm,
173
+ # accelerate
174
+ accelerate = accelerate,
175
+ # misc.
176
+ debug = False,
177
+ profile = False,
178
+ tmpdir_location = None,
179
+ # experiment tracker
180
+ logger = "wandb",
181
+ entity = "thomasboyer",
182
+ # checkpointing
183
+ checkpointing = checkpointing,
184
+ # dataset
185
+ dataset = MISSING,
186
+ # dataloaders
187
+ dataloaders = data_loader,
188
+ # training
189
+ training = training,
190
+ # evaluation
191
+ evaluation = evaluation,
192
+ # optimizer
193
+ learning_rate = 1e-4,
194
+ )
biotine/my_conf/net/net_128_3.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from GaussianProxy.conf.training_conf import UNet2DConditionModelConfig, TimeEncoderConfig
2
+
3
+ cross_attn_dim = 64
4
+
5
+ net = UNet2DConditionModelConfig(
6
+ sample_size=128,
7
+ in_channels=3,
8
+ out_channels=3,
9
+ down_block_types=("CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D"),
10
+ up_block_types=("CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D"),
11
+ block_out_channels=(64, 128, 256),
12
+ layers_per_block=2,
13
+ act_fn="silu",
14
+ cross_attention_dim=cross_attn_dim,
15
+ )
16
+
17
+ time_encoder = TimeEncoderConfig(
18
+ encoding_dim=128,
19
+ time_embed_dim=cross_attn_dim,
20
+ flip_sin_to_cos=True,
21
+ downscale_freq_shift=1,
22
+ )
biotine/my_conf/net/net_196_3_12M.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from GaussianProxy.conf.training_conf import UNet2DConditionModelConfig, TimeEncoderConfig
2
+
3
+ cross_attn_dim = 64
4
+
5
+ net = UNet2DConditionModelConfig(
6
+ sample_size=196,
7
+ in_channels=3,
8
+ out_channels=3,
9
+ down_block_types=("CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D"),
10
+ up_block_types=("CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D"),
11
+ block_out_channels=(96, 128, 128),
12
+ layers_per_block=2,
13
+ act_fn="silu",
14
+ cross_attention_dim=cross_attn_dim,
15
+ )
16
+
17
+ time_encoder = TimeEncoderConfig(
18
+ encoding_dim=128,
19
+ time_embed_dim=cross_attn_dim,
20
+ flip_sin_to_cos=True,
21
+ downscale_freq_shift=1,
22
+ )
biotine/my_conf/net/net_66_3_2M.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from GaussianProxy.conf.training_conf import UNet2DConditionModelConfig, TimeEncoderConfig
2
+
3
+ cross_attn_dim = 64
4
+
5
+ net = UNet2DConditionModelConfig(
6
+ sample_size=66,
7
+ in_channels=3,
8
+ out_channels=3,
9
+ down_block_types=("DownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D"),
10
+ up_block_types=("CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "UpBlock2D"),
11
+ block_out_channels=(24, 40, 72),
12
+ norm_num_groups=8,
13
+ layers_per_block=2,
14
+ act_fn="silu",
15
+ cross_attention_dim=cross_attn_dim,
16
+ )
17
+
18
+ time_encoder = TimeEncoderConfig(
19
+ encoding_dim=128,
20
+ time_embed_dim=cross_attn_dim,
21
+ flip_sin_to_cos=True,
22
+ downscale_freq_shift=1,
23
+ )
biotine/net/config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.33.1",
4
+ "act_fn": "silu",
5
+ "addition_embed_type": null,
6
+ "addition_embed_type_num_heads": 64,
7
+ "addition_time_embed_dim": null,
8
+ "attention_head_dim": 8,
9
+ "attention_type": "default",
10
+ "block_out_channels": [
11
+ 64,
12
+ 128,
13
+ 256
14
+ ],
15
+ "center_input_sample": false,
16
+ "class_embed_type": null,
17
+ "class_embeddings_concat": false,
18
+ "conv_in_kernel": 3,
19
+ "conv_out_kernel": 3,
20
+ "cross_attention_dim": 64,
21
+ "cross_attention_norm": null,
22
+ "down_block_types": [
23
+ "CrossAttnDownBlock2D",
24
+ "CrossAttnDownBlock2D",
25
+ "CrossAttnDownBlock2D"
26
+ ],
27
+ "downsample_padding": 1,
28
+ "dropout": 0.0,
29
+ "dual_cross_attention": false,
30
+ "encoder_hid_dim": null,
31
+ "encoder_hid_dim_type": null,
32
+ "flip_sin_to_cos": true,
33
+ "freq_shift": 0,
34
+ "in_channels": 3,
35
+ "layers_per_block": 2,
36
+ "mid_block_only_cross_attention": null,
37
+ "mid_block_scale_factor": 1,
38
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
39
+ "norm_eps": 1e-05,
40
+ "norm_num_groups": 32,
41
+ "num_attention_heads": null,
42
+ "num_class_embeds": null,
43
+ "only_cross_attention": false,
44
+ "out_channels": 3,
45
+ "projection_class_embeddings_input_dim": null,
46
+ "resnet_out_scale_factor": 1.0,
47
+ "resnet_skip_time_act": false,
48
+ "resnet_time_scale_shift": "default",
49
+ "reverse_transformer_layers_per_block": null,
50
+ "sample_size": 128,
51
+ "time_cond_proj_dim": null,
52
+ "time_embedding_act_fn": null,
53
+ "time_embedding_dim": null,
54
+ "time_embedding_type": "positional",
55
+ "timestep_post_act": null,
56
+ "transformer_layers_per_block": 1,
57
+ "up_block_types": [
58
+ "CrossAttnUpBlock2D",
59
+ "CrossAttnUpBlock2D",
60
+ "CrossAttnUpBlock2D"
61
+ ],
62
+ "upcast_attention": false,
63
+ "use_linear_projection": false
64
+ }
biotine/net/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c4f64697a60a90e9e721b7a112c4b8bed3e446b614c99f18ad6530eafd7a46c
3
+ size 97782492
biotine/video_time_encoder/config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "VideoTimeEncoding",
3
+ "_diffusers_version": "0.33.1",
4
+ "downscale_freq_shift": 1.0,
5
+ "encoding_dim": 128,
6
+ "flip_sin_to_cos": true,
7
+ "time_embed_dim": 64
8
+ }
biotine/video_time_encoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2014cc6d77f8388f37ea2664f32528a857c2221f7bb51a1c8049c3836c68c486
3
+ size 50104
biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.diabetic_retinopathy_inference import diabetic_retinopathy_inference
2
+
3
+ diabetic_retinopathy_inference.path = "/lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/prepared_dataset/train"
biotine_unpaired/my_conf/dataset/ependymal_cutout/ependymal_cutout_01_noised_separate_gt_fully_ordered.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ependymal_cutout_01_noised_separate_gt_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_noised_0.1_crop/all_imgs
4
+ hard_aug_path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_noised_0.1_crop_hard_augmented/all_imgs
5
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/ependymal_cutout_01_noised__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
6
+
7
+ data_shape: [3, 256, 256]
8
+
9
+ transforms:
10
+ _target_: torchvision.transforms.transforms.Compose
11
+ transforms:
12
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
13
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
14
+ - _target_: torchvision.transforms.Normalize
15
+ mean: [0.5, 0.5, 0.5]
16
+ std: [0.5, 0.5, 0.5]
17
+ - _target_: torchvision.transforms.RandomHorizontalFlip
18
+ - _target_: torchvision.transforms.RandomVerticalFlip
19
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
20
+
21
+ expected_initial_data_range: [0, 255]
22
+ expected_dtype: torch.uint8
23
+
24
+ selected_dists: None
25
+
26
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/ependymal_cutout/ependymal_cutout_03_noised_separate_gt_fully_ordered.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ependymal_cutout_03_noised_separate_gt_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_noised_0.3_crop/all_imgs
4
+ hard_aug_path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_noised_0.3_crop_hard_augmented/all_imgs
5
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/ependymal_cutout_03_noised__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
6
+
7
+ data_shape: [3, 256, 256]
8
+ transforms:
9
+ _target_: torchvision.transforms.transforms.Compose
10
+ transforms:
11
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
12
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
13
+ - _target_: torchvision.transforms.Normalize
14
+ mean: [0.5, 0.5, 0.5]
15
+ std: [0.5, 0.5, 0.5]
16
+ - _target_: torchvision.transforms.RandomHorizontalFlip
17
+ - _target_: torchvision.transforms.RandomVerticalFlip
18
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
19
+
20
+ expected_initial_data_range: [0, 255]
21
+ expected_dtype: torch.uint8
22
+
23
+ selected_dists: None
24
+
25
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/ependymal_cutout/ependymal_cutout_fully_ordered.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ependymal_cutout_fully_ordered
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_crop
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/ependymal_cutout__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [ 3, 256, 256 ]
5
+ transforms:
6
+ _target_: torchvision.transforms.transforms.Compose
7
+ transforms:
8
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
9
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
10
+ - _target_: torchvision.transforms.Normalize
11
+ mean: [ 0.5, 0.5, 0.5 ]
12
+ std: [ 0.5, 0.5, 0.5 ]
13
+ - _target_: torchvision.transforms.RandomHorizontalFlip
14
+ - _target_: torchvision.transforms.RandomVerticalFlip
15
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
16
+ expected_initial_data_range: [ 0, 255 ]
17
+ expected_dtype: torch.uint8
18
+ selected_dists: [ 1, 2, 3, 4, 5, 6 ] # 0 is the trash class!
19
+ fully_ordered: true
biotine_unpaired/net/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e44dec6afd8ae641c88fea7f81ea3900ba8d505a541fe6c2cc79af5b5e99bbb
3
+ size 97782492
biotine_unpaired/video_time_encoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f3dcca738daa8746d4fc1d062787ad10d1a8f81ee9957fe86e41a3aef7b27d4
3
+ size 50104
cell_cycle/dynamic/scheduler_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.35.2",
4
+ "beta_end": 0.02,
5
+ "beta_schedule": "linear",
6
+ "beta_start": 0.0001,
7
+ "clip_sample": false,
8
+ "clip_sample_range": 1.0,
9
+ "dynamic_thresholding_ratio": 0.995,
10
+ "num_train_timesteps": 3000,
11
+ "prediction_type": "v_prediction",
12
+ "rescale_betas_zero_snr": false,
13
+ "sample_max_value": 1.0,
14
+ "set_alpha_to_one": true,
15
+ "steps_offset": 0,
16
+ "thresholding": true,
17
+ "timestep_spacing": "leading",
18
+ "trained_betas": null
19
+ }
cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC021_196_docetaxel
2
+ path: /projects/static2dynamic/datasets/BBBC021/196x196/docetaxel
3
+ data_shape: [3, 196, 196]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
8
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
9
+ - _target_: torchvision.transforms.Normalize
10
+ mean: [0.5, 0.5, 0.5]
11
+ std: [0.5, 0.5, 0.5]
12
+ - _target_: torchvision.transforms.RandomHorizontalFlip
13
+ - _target_: torchvision.transforms.RandomVerticalFlip
14
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
15
+ expected_initial_data_range: [0, 255]
16
+ expected_dtype: torch.uint8
cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_fully_ordered_inference.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from dataclasses import replace
2
+
3
+ from GaussianProxy.conf.dataset.BBBC021.BBBC021_196_fully_ordered_inference import dataset
4
+
5
+ dataset = replace(
6
+ dataset,
7
+ name=dataset.name + "_docetaxel",
8
+ path="/projects/static2dynamic/datasets/BBBC021/196x196/docetaxel",
9
+ path_to_single_parquet="/projects/static2dynamic/datasets/BBBC021/196x196/BBBC021_196_docetaxel__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet",
10
+ )
cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_hard_aug_inference.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from dataclasses import replace
2
+
3
+ from GaussianProxy.conf.dataset.BBBC021.BBBC021_196_hard_aug_inference import dataset
4
+
5
+ dataset = replace(
6
+ dataset,
7
+ name=dataset.name + "_docetaxel",
8
+ path="/projects/static2dynamic/datasets/BBBC021/196x196/docetaxel_hard_augmented",
9
+ )
cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_inference.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from dataclasses import replace
2
+
3
+ from GaussianProxy.conf.dataset.BBBC021.BBBC021_196_inference import dataset
4
+
5
+ dataset = replace(
6
+ dataset,
7
+ name=dataset.name + "_docetaxel",
8
+ path="/projects/static2dynamic/datasets/BBBC021/196x196/docetaxel",
9
+ )
cell_cycle/my_conf/dataset/BBBC021/BBBC021_196_nocodazole_inference.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from dataclasses import replace
2
+
3
+ from GaussianProxy.conf.dataset.BBBC021.BBBC021_196_inference import dataset
4
+
5
+ # Nocodazole classes + DMSO
6
+ CLASSES_IN_ORDER = (
7
+ "DMSO",
8
+ "nocodazole_0.001",
9
+ "nocodazole_0.003",
10
+ "nocodazole_0.01",
11
+ "nocodazole_0.03",
12
+ "nocodazole_0.1",
13
+ "nocodazole_0.3",
14
+ "nocodazole_1.0",
15
+ "nocodazole_3.0",
16
+ )
17
+ assert dataset.dataset_params is not None
18
+ ds_params = replace(dataset.dataset_params, sorting_func=lambda subdir: CLASSES_IN_ORDER.index(subdir.name))
19
+
20
+ # Path and name
21
+ dataset = replace(
22
+ dataset,
23
+ dataset_params=ds_params,
24
+ path="/projects/static2dynamic/datasets/BBBC021/196x196/nocodazole",
25
+ name=dataset.name + "_nocodazole",
26
+ )
cell_cycle/my_conf/dataset/BBBC048/bbbc048.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC048_fully_ordered
2
+
3
+ path: /projects/static2dynamic/datasets/Jurkat/brightfield_reprocessed_full_circle_augmented
4
+ path_to_single_parquet: /projects/static2dynamic/Thomas/ordering_datasets/facebook_dinov2-with-registers-giant_dataset_preproc/BBBC048/BBBC048__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [ 1, 48, 48 ]
7
+
8
+ transforms:
9
+ _target_: torchvision.transforms.v2.Compose
10
+ transforms:
11
+ - _target_: torchvision.transforms.v2.ToDtype
12
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
13
+ scale: true
14
+ - _target_: torchvision.transforms.v2.Normalize
15
+ mean: [ 0.5 ]
16
+ std: [ 0.5 ]
17
+
18
+ expected_initial_data_range: [ 0, 255 ]
19
+ expected_dtype: torch.uint8
20
+
21
+ fully_ordered: true
cell_cycle/my_conf/dataset/BBBC048/bbbc048_inference.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from dataclasses import replace
2
+
3
+ from GaussianProxy.conf.dataset.BBBC048.bbbc048_inference import dataset
4
+
5
+ dataset = replace(
6
+ dataset, path="/projects/static2dynamic/datasets/Jurkat/brightfield_reprocessed_full_circle_augmented"
7
+ )
cell_cycle/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromaLive6h_3ch_png_patches_380px
2
+ path: /projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches
3
+ data_shape: [ 3, 128, 128 ]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ - _target_: torchvision.transforms.transforms.Resize
8
+ size: 128
9
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
10
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
11
+ - _target_: torchvision.transforms.Normalize
12
+ mean: [ 0.5, 0.5, 0.5 ] # move to [-1:1]
13
+ std: [ 0.5, 0.5, 0.5 ]
14
+ - _target_: torchvision.transforms.RandomHorizontalFlip
15
+ - _target_: torchvision.transforms.RandomVerticalFlip
16
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
17
+ expected_initial_data_range: [ 0, 255 ]
18
+ expected_dtype: torch.uint8
19
+ selected_dists:
cell_cycle/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png_hard_aug.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromaLive6h_3ch_png_patches_380px_hard_aug
2
+ path: /projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches_hard_augmented
3
+ data_shape: [ 3, 128, 128 ]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ - _target_: torchvision.transforms.transforms.Resize
8
+ size: 128
9
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
10
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
11
+ - _target_: torchvision.transforms.Normalize
12
+ mean: [ 0.5, 0.5, 0.5 ] # move to [-1:1]
13
+ std: [ 0.5, 0.5, 0.5 ]
14
+ expected_initial_data_range: [ 0, 255 ]
15
+ expected_dtype: torch.uint8
16
+ selected_dists:
cell_cycle/my_conf/dataset/ChromaLive6h/ChromaLive6h_4ch_tif.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromaLive6h_4ch_tif_patches_380px
2
+ path: /projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches
3
+ data_shape: [ 4, 128, 128 ]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ - _target_: torchvision.transforms.transforms.Resize
8
+ size: 128
9
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
10
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
11
+ - _target_: torchvision.transforms.Normalize
12
+ mean: [ 0.5, 0.5, 0.5, 0.5 ] # move to [-1:1]
13
+ std: [ 0.5, 0.5, 0.5, 0.5 ]
14
+ - _target_: torchvision.transforms.RandomHorizontalFlip
15
+ - _target_: torchvision.transforms.RandomVerticalFlip
16
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
17
+ expected_initial_data_range: [ 0, 65536 ]
18
+ expected_dtype: torch.uint16
19
+ selected_dists: [ 'time_1', 'time_3', 'time_5', 'time_7', 'time_9', 'time_11', 'time_13' ]
cell_cycle/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_fully_ordered_inference.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from GaussianProxy.conf.dataset.ChromaLive6h.chromalive6h_3ch_png_fully_ordered_inference import dataset
2
+
3
+ dataset.path = "/projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches"
4
+ dataset.path_to_single_parquet = "/projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/chromaLive6h_3ch_png_patches_380px__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet"
cell_cycle/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_hard_aug_inference.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from GaussianProxy.conf.dataset.ChromaLive6h.chromalive6h_3ch_png_inference import dataset
2
+
3
+ dataset.name = "chromaLive6h_3ch_png_patches_380px_hard_aug"
4
+ dataset.path = (
5
+ "/projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches_hard_augmented"
6
+ )
cell_cycle/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.ChromaLive6h.chromalive6h_3ch_png_inference import dataset
2
+
3
+ dataset.path = "/projects/static2dynamic/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches"
cell_cycle/my_conf/dataset/ChromaLiveTL24h/ChromaLiveTL24h.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromalive_tl_24h_380px
2
+ path: /projects/static2dynamic/datasets/20230920ChromaLiveTL_24hr4ch/ch_4_3_1___norm_whole_ds_per_channel_per_zslice_0_99perc___patches_380
3
+ data_shape: [3, 256, 256]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ - _target_: torchvision.transforms.transforms.Resize
8
+ size: 256
9
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
10
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
11
+ - _target_: torchvision.transforms.Normalize
12
+ mean: [0.5, 0.5, 0.5] # move to [-1:1]
13
+ std: [0.5, 0.5, 0.5]
14
+ - _target_: torchvision.transforms.RandomHorizontalFlip
15
+ - _target_: torchvision.transforms.RandomVerticalFlip
16
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
17
+ expected_initial_data_range: [0, 255]
18
+ expected_dtype: torch.uint8
19
+ selected_dists: ['time_1', 'time_7', 'time_13', 'time_19', 'time_25', 'time_31', 'time_37', 'time_43', 'time_49', 'time_55', 'time_61', 'time_67', 'time_73', 'time_79', 'time_85', 'time_91', 'time_97', 'time_103', 'time_109', 'time_115', 'time_121', 'time_127', 'time_133', 'time_139', 'time_145']
cell_cycle/my_conf/dataset/DeepCycle/deepcycle_brightfield_to_3D_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.DeepCycle.deepcycle_brightfield_to_3D_inference import dataset
2
+
3
+ dataset.path = "/projects/imagesets2/DeepCycle/cells/128x128"
cell_cycle/my_conf/dataset/DeepCycle/deepcycle_hoechst_brightfield_to_3D_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.DeepCycle.deepcycle_hoechst_brightfield_to_3D_inference import dataset
2
+
3
+ dataset.path = "/projects/imagesets2/DeepCycle/cells/128x128"
cell_cycle/my_conf/dataset/DeepCycle/deepcycle_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.DeepCycle.deepcycle_inference import dataset
2
+
3
+ dataset.path = "/projects/imagesets2/DeepCycle/cells/128x128"
cell_cycle/my_conf/dataset/DeepCycle/deepcycle_markers_inference.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from GaussianProxy.conf.dataset.DeepCycle.deepcycle_markers_inference import dataset
2
+
3
+ dataset.path = "/projects/imagesets2/DeepCycle/cells/128x128"
cell_cycle/my_conf/dataset/Jurkat/Jurkat.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Jurkat
2
+ path: /projects/static2dynamic/datasets/Jurkat/rgb_images_all_cell_cycles
3
+ data_shape: [3, 66, 66]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
8
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
9
+ - _target_: torchvision.transforms.Normalize
10
+ mean: [0.5, 0.5, 0.5]
11
+ std: [0.5, 0.5, 0.5]
12
+ - _target_: torchvision.transforms.RandomHorizontalFlip
13
+ - _target_: torchvision.transforms.RandomVerticalFlip
14
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
15
+ expected_initial_data_range: [0, 255]
16
+ expected_dtype: torch.uint8