thethomasboyer commited on
Commit
583b93f
·
verified ·
1 Parent(s): 674d879

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/dynamic/scheduler_config.json +19 -0
  2. NASH_steato/my_conf/my_training_conf.py +194 -0
  3. NASH_steato/net/config.json +64 -0
  4. NASH_steato/video_time_encoder/config.json +8 -0
  5. biotine/dynamic/scheduler_config.json +19 -0
  6. biotine/my_conf/my_inference_conf.py +95 -0
  7. biotine/my_conf/net/net_128_3_big.py +22 -0
  8. biotine/my_conf/net/net_256_3_20M.py +22 -0
  9. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel.yaml +16 -0
  10. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_fully_ordered.yaml +23 -0
  11. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_hard_aug_inference.py +4 -0
  12. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_inference.py +4 -0
  13. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_skip_half_doses_fully_ordered.yaml +24 -0
  14. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_skip_many_doses_fully_ordered.yaml +24 -0
  15. biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_nocodazole_fully_ordered.yaml +23 -0
  16. biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png.yaml +19 -0
  17. biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png_fully_ordered.yaml +21 -0
  18. biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png_hard_aug.yaml +16 -0
  19. biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_4ch_tif.yaml +19 -0
  20. biotine_unpaired/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_hard_aug_inference.py +33 -0
  21. biotine_unpaired/my_conf/dataset/ChromaLive6h/chromalive6h_3ch_png_inference.py +33 -0
  22. biotine_unpaired/my_conf/dataset/ChromaLiveTL24h/ChromaLiveTL24h.yaml +19 -0
  23. biotine_unpaired/my_conf/dataset/DeepCycle/deepcycle_fully_ordered.yaml +19 -0
  24. biotine_unpaired/my_conf/dataset/DeepCycle/deepcycle_markers_crop_fully_ordered.yaml +21 -0
  25. biotine_unpaired/my_conf/dataset/DeepCycle/deepcycle_markers_fully_ordered.yaml +19 -0
  26. biotine_unpaired/my_conf/dataset/Jurkat/Jurkat.yaml +16 -0
  27. biotine_unpaired/my_conf/dataset/Jurkat/Jurkat_brightfield_fully_ordered.yaml +18 -0
  28. biotine_unpaired/my_conf/dataset/Jurkat/Jurkat_fully_ordered.yaml +18 -0
  29. biotine_unpaired/my_conf/dataset/Jurkat/Jurkat_inference.py +3 -0
  30. biotine_unpaired/my_conf/dataset/Jurkat/Jurkat_inference_hard_aug.py +3 -0
  31. biotine_unpaired/my_conf/dataset/NASH_fibrosis/NASH_fibrosis.yaml +24 -0
  32. biotine_unpaired/my_conf/dataset/NASH_fibrosis/NASH_fibrosis_fully_ordered.yaml +26 -0
  33. biotine_unpaired/my_conf/dataset/NASH_fibrosis/NASH_fibrosis_inference.py +3 -0
  34. biotine_unpaired/my_conf/dataset/NASH_steatosis/NASH_steatosis.yaml +24 -0
  35. biotine_unpaired/my_conf/dataset/NASH_steatosis/NASH_steatosis_fully_ordered.yaml +26 -0
  36. biotine_unpaired/my_conf/dataset/NASH_steatosis/NASH_steatosis_inference.py +3 -0
  37. biotine_unpaired/my_conf/dataset/biotine/biotine_paired_same_nb_as_unpaired_fully_ordered.yaml +28 -0
  38. biotine_unpaired/my_conf/dataset/biotine/biotine_png_128.yaml +19 -0
  39. biotine_unpaired/my_conf/dataset/biotine/biotine_png_128_fully_ordered.yaml +27 -0
  40. biotine_unpaired/my_conf/dataset/biotine/biotine_png_128_hard_aug.yaml +16 -0
  41. biotine_unpaired/my_conf/dataset/biotine/biotine_png_128_hard_aug_inference.py +3 -0
  42. biotine_unpaired/my_conf/dataset/biotine/biotine_png_128_inference.py +3 -0
  43. biotine_unpaired/my_conf/dataset/biotine/biotine_png_256.yaml +18 -0
  44. biotine_unpaired/my_conf/dataset/biotine/biotine_unpaired_fully_ordered.yaml +28 -0
  45. biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy.yaml +18 -0
  46. biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_full_circle_augs_2048_crop_fully_ordered.yaml +25 -0
  47. biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_full_circle_augs_2560_crop_fully_ordered.yaml +25 -0
  48. biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_fully_ordered.yaml +25 -0
  49. biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_hard_aug_inference.py +4 -0
  50. biotine_unpaired/my_conf/dataset/ependymal_context/ependymal_context.yaml +16 -0
NASH_steato/dynamic/scheduler_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.33.1",
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
+ }
NASH_steato/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": "NASH_steatosis/NASH_steatosis_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 = 4,
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 = 512,
105
+ nb_diffusion_timesteps = 50,
106
+ selected_times = [0, 1, 2, 3],
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
+ )
NASH_steato/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
+ }
NASH_steato/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/dynamic/scheduler_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.33.1",
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
+ }
biotine/my_conf/my_inference_conf.py ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ruff: noqa: F401
2
+
3
+ from datetime import datetime
4
+ from pathlib import Path
5
+
6
+ from torch import bfloat16, float16, float32
7
+
8
+ from GaussianProxy.conf.inference_conf import InferenceConfig, ProfileConfig
9
+ from GaussianProxy.conf.training_conf import (
10
+ Accelerate,
11
+ AccelerateLaunchArgs,
12
+ ForwardNoising,
13
+ ForwardNoisingLinearScaling,
14
+ InversionRegenerationOnly,
15
+ InvertedRegeneration,
16
+ IterativeInvertedRegeneration,
17
+ MetricsComputation,
18
+ SimilarityWithTrainData,
19
+ SimpleGeneration,
20
+ Slurm,
21
+ )
22
+
23
+ # -------------------------------------------- Dataset --------------------------------------------
24
+ from my_conf.dataset.biotine_png_128_inference import dataset
25
+
26
+ # --------------------------------------------- Model ---------------------------------------------
27
+ root_experiments_path = Path("/lustre/fsn1/projects/rech/icr/ufc43hj/experiments")
28
+ project_name = "GaussianProxy"
29
+ run_name = "biotine_all_paired_new_jz"
30
+
31
+ # ------------------------------------------ Evaluations ------------------------------------------
32
+ eval_strats = [
33
+ # InvertedRegeneration(
34
+ # nb_diffusion_timesteps=100,
35
+ # name="InvertedRegeneration_100_diffsteps_no_SNR_leading_f32_J_14_fld_2",
36
+ # nb_generated_samples=64,
37
+ # plate_name_to_simulate="J_14_fld_2",
38
+ # nb_video_times_in_parallel=3,
39
+ # nb_video_timesteps=19,
40
+ # n_rows_displayed=8,
41
+ # ),
42
+ MetricsComputation(
43
+ nb_samples_to_gen_per_time="adapt aug",
44
+ batch_size=512 + 32,
45
+ nb_diffusion_timesteps=100,
46
+ selected_times=[1, 5, 10, 15, 19],
47
+ name="MetricsComputation_100_diffsteps_no_SNR_leading_f32_adapt_aug",
48
+ regen_images=False,
49
+ ),
50
+ # InversionRegenerationOnly(
51
+ # nb_diffusion_timesteps=100,
52
+ # name="InversionRegenerationOnly_100_diffsteps_no_SNR_leading_f32",
53
+ # nb_generated_samples=64,
54
+ # plate_name_to_simulate="M_13_fld_3",
55
+ # n_rows_displayed=8,
56
+ # )
57
+ ]
58
+
59
+
60
+ # ------------------------------------------ Profiling --------------------------------------------
61
+ # fmt: off
62
+ profile_conf = ProfileConfig(
63
+ enabled = False,
64
+ record_shapes = False,
65
+ profile_memory = True,
66
+ with_stack = True,
67
+ with_flops = False,
68
+ export_chrome_trace = False,
69
+ )
70
+
71
+
72
+ # ------------------------------------------ Final Config -----------------------------------------
73
+ inference_conf = InferenceConfig(
74
+ # Choose the experiment (trained model weights)
75
+ root_experiments_path = root_experiments_path,
76
+ project_name = project_name,
77
+ run_name = run_name,
78
+ # Choose a custom scheduler
79
+ scheduler_config = Path("my_conf", "scheduler", "DDIM_3k_vpred_tresh_leading.json"),
80
+ # Output directory (where to put the generated images / tensors)
81
+ output_dir = Path(root_experiments_path, project_name, run_name, "inferences"),
82
+ # Device
83
+ device = "cuda:2",
84
+ # Optimizations
85
+ compile = True,
86
+ dtype = float32,
87
+ # Data
88
+ dataset = dataset,
89
+ # Evaluations
90
+ evaluation_strategies = eval_strats, # pyright: ignore[reportArgumentType]
91
+ # Profiling
92
+ profiling = profile_conf,
93
+ # Temp Dir
94
+ tmpdir_location = "/tmp",
95
+ )
biotine/my_conf/net/net_128_3_big.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=("DownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D"),
10
+ up_block_types=("CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "UpBlock2D"),
11
+ block_out_channels=(128, 256, 512),
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_256_3_20M.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=256,
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=(64, 128, 224),
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_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC021_196_docetaxel
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/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
biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_fully_ordered.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC021_196_docetaxel_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/docetaxel
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/BBBC021_196_docetaxel__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 196, 196]
7
+
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
+ fully_ordered: true
biotine_unpaired/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_unpaired/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_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_skip_half_doses_fully_ordered.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC021_196_docetaxel_fully_ordered_skip_half_doses
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/docetaxel
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/BBBC021_196_docetaxel_skip_half_doses__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 196, 196]
7
+
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
+ selected_dists: ["0.0003", "0.003", "0.03", "0.3"]
23
+
24
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_docetaxel_skip_many_doses_fully_ordered.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC021_196_docetaxel_fully_ordered_skip_many_doses
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/docetaxel
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/BBBC021_196_docetaxel_skip_many_doses__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 196, 196]
7
+
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
+ selected_dists: ["0.0003", "0.001", "1.0"]
23
+
24
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/BBBC021/BBBC021_196_nocodazole_fully_ordered.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: BBBC021_196_nocodazole_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/nocodazole
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/BBBC021/196x196/BBBC021_196_nocodazole__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 196, 196]
7
+
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
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromaLive6h_3ch_png_patches_380px
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/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:
biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_3ch_png_fully_ordered.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromaLive6h_3ch_png_patches_380px_fully_ordered
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ChromaLive_6hr_4ch/MIP_normalized/patches_380px
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ChromaLive_6hr_4ch/MIP_normalized/chromaLive6h_3ch_png_patches_380px__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [ 3, 128, 128 ]
5
+ transforms:
6
+ _target_: torchvision.transforms.transforms.Compose
7
+ transforms:
8
+ - _target_: torchvision.transforms.transforms.Resize
9
+ size: 128
10
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
11
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
12
+ - _target_: torchvision.transforms.Normalize
13
+ mean: [ 0.5, 0.5, 0.5 ] # move to [-1:1]
14
+ std: [ 0.5, 0.5, 0.5 ]
15
+ - _target_: torchvision.transforms.RandomHorizontalFlip
16
+ - _target_: torchvision.transforms.RandomVerticalFlip
17
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
18
+ expected_initial_data_range: [ 0, 255 ]
19
+ expected_dtype: torch.uint8
20
+ selected_dists:
21
+ fully_ordered: true
biotine_unpaired/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: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/20231017ChromaLive_6hr_4ch/MIP_normalized/paired_dataset/patches_380px_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:
biotine_unpaired/my_conf/dataset/ChromaLive6h/ChromaLive6h_4ch_tif.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromaLive6h_4ch_tif_patches_380px
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/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' ]
biotine_unpaired/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_unpaired/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_unpaired/my_conf/dataset/ChromaLiveTL24h/ChromaLiveTL24h.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: chromalive_tl_24h_380px
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/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']
biotine_unpaired/my_conf/dataset/DeepCycle/deepcycle_fully_ordered.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: deepcycle_fully_ordered
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DeepCycle/128x128
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DeepCycle/deepcycle_brightfield_to_3D__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [4, 128, 128]
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, 0.5]
12
+ std: [0.5, 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:
19
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/DeepCycle/deepcycle_markers_crop_fully_ordered.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: deepcycle_markers_fully_ordered
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DeepCycle/128x128
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DeepCycle/deepcycle_markers__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [4, 64, 64]
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, 0.5]
12
+ std: [0.5, 0.5, 0.5, 0.5]
13
+ - _target_: torchvision.transforms.RandomHorizontalFlip
14
+ - _target_: torchvision.transforms.RandomVerticalFlip
15
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
16
+ - _target_: torchvision.transforms.CenterCrop
17
+ size: 64
18
+ expected_initial_data_range: [0, 255]
19
+ expected_dtype: torch.uint8
20
+ selected_dists:
21
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/DeepCycle/deepcycle_markers_fully_ordered.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: deepcycle_markers_fully_ordered
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DeepCycle/128x128
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DeepCycle/deepcycle_markers__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [4, 128, 128]
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, 0.5]
12
+ std: [0.5, 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:
19
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/Jurkat/Jurkat.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Jurkat
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/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
biotine_unpaired/my_conf/dataset/Jurkat/Jurkat_brightfield_fully_ordered.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Jurkat_brightfield_fully_ordered
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/Jurkat/brightfield_reprocessed
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/Jurkat/Jurkat_brightfield__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [ 1, 66, 66 ]
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 ]
12
+ std: [ 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
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/Jurkat/Jurkat_fully_ordered.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Jurkat_fully_ordered_dinov2_regs_giant_ds_preproc
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/Jurkat/rgb_images_all_cell_cycles
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/Jurkat/Jurkat__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [3, 66, 66]
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
+ fully_ordered: true
biotine_unpaired/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_unpaired/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_unpaired/my_conf/dataset/NASH_fibrosis/NASH_fibrosis.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: NASH_fibrosis
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/prepared_data/fibrosis
3
+ data_shape: [ 3, 128, 128 ]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ # Convert to float32 (and normalize to [0, 1]) before resizing
8
+ - _target_: torchvision.transforms.ConvertImageDtype
9
+ dtype: ${torch_dtype:float32}
10
+ # Random crop from 299x299 to 192x192, then resize to 128x128
11
+ - _target_: torchvision.transforms.RandomCrop
12
+ size: 192
13
+ - _target_: torchvision.transforms.Resize
14
+ size: 128
15
+ # Normalize to [-1, 1]
16
+ - _target_: torchvision.transforms.Normalize
17
+ mean: [ 0.5, 0.5, 0.5 ]
18
+ std: [ 0.5, 0.5, 0.5 ]
19
+ # Random 8x square augmentations
20
+ - _target_: torchvision.transforms.RandomHorizontalFlip
21
+ - _target_: torchvision.transforms.RandomVerticalFlip
22
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
23
+ selected_dists:
24
+ expected_initial_data_range: [ 0, 255 ]
biotine_unpaired/my_conf/dataset/NASH_fibrosis/NASH_fibrosis_fully_ordered.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: NASH_fibrosis_fully_ordered_dinov2_regs_giant_ds_preproc
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/fibrosis
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/NASH_fibrosis__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [ 3, 128, 128 ]
5
+ transforms:
6
+ _target_: torchvision.transforms.transforms.Compose
7
+ transforms:
8
+ # Convert to float32 (and normalize to [0, 1]) before resizing
9
+ - _target_: torchvision.transforms.ConvertImageDtype
10
+ dtype: ${torch_dtype:float32}
11
+ # Random crop from 299x299 to 192x192, then resize to 128x128
12
+ - _target_: torchvision.transforms.RandomCrop
13
+ size: 192
14
+ - _target_: torchvision.transforms.Resize
15
+ size: 128
16
+ # Normalize to [-1, 1]
17
+ - _target_: torchvision.transforms.Normalize
18
+ mean: [ 0.5, 0.5, 0.5 ]
19
+ std: [ 0.5, 0.5, 0.5 ]
20
+ # Random 8x square augmentations
21
+ - _target_: torchvision.transforms.RandomHorizontalFlip
22
+ - _target_: torchvision.transforms.RandomVerticalFlip
23
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
24
+ selected_dists:
25
+ expected_initial_data_range: [ 0, 255 ]
26
+ fully_ordered: true
biotine_unpaired/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_unpaired/my_conf/dataset/NASH_steatosis/NASH_steatosis.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: NASH_steatosis
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/steatosis
3
+ data_shape: [ 3, 128, 128 ]
4
+ transforms:
5
+ _target_: torchvision.transforms.transforms.Compose
6
+ transforms:
7
+ # Convert to float32 (and normalize to [0, 1]) before resizing
8
+ - _target_: torchvision.transforms.ConvertImageDtype
9
+ dtype: ${torch_dtype:float32}
10
+ # Random crop from 299x299 to 192x192, then resize to 128x128
11
+ - _target_: torchvision.transforms.RandomCrop
12
+ size: 192
13
+ - _target_: torchvision.transforms.Resize
14
+ size: 128
15
+ # Normalize to [-1, 1]
16
+ - _target_: torchvision.transforms.Normalize
17
+ mean: [ 0.5, 0.5, 0.5 ]
18
+ std: [ 0.5, 0.5, 0.5 ]
19
+ # Random 8x square augmentations
20
+ - _target_: torchvision.transforms.RandomHorizontalFlip
21
+ - _target_: torchvision.transforms.RandomVerticalFlip
22
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
23
+ selected_dists:
24
+ expected_initial_data_range: [ 0, 255 ]
biotine_unpaired/my_conf/dataset/NASH_steatosis/NASH_steatosis_fully_ordered.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: NASH_steatosis_fully_ordered_dinov2_regs_giant_ds_preproc
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/steatosis
3
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/NASH/NASH_steatosis__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
4
+ data_shape: [ 3, 128, 128 ]
5
+ transforms:
6
+ _target_: torchvision.transforms.transforms.Compose
7
+ transforms:
8
+ # Convert to float32 (and normalize to [0, 1]) before resizing
9
+ - _target_: torchvision.transforms.ConvertImageDtype
10
+ dtype: ${torch_dtype:float32}
11
+ # Random crop from 299x299 to 192x192, then resize to 128x128
12
+ - _target_: torchvision.transforms.RandomCrop
13
+ size: 192
14
+ - _target_: torchvision.transforms.Resize
15
+ size: 128
16
+ # Normalize to [-1, 1]
17
+ - _target_: torchvision.transforms.Normalize
18
+ mean: [ 0.5, 0.5, 0.5 ]
19
+ std: [ 0.5, 0.5, 0.5 ]
20
+ # Random 8x square augmentations
21
+ - _target_: torchvision.transforms.RandomHorizontalFlip
22
+ - _target_: torchvision.transforms.RandomVerticalFlip
23
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
24
+ selected_dists:
25
+ expected_initial_data_range: [ 0, 255 ]
26
+ fully_ordered: true
biotine_unpaired/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_unpaired/my_conf/dataset/biotine/biotine_paired_same_nb_as_unpaired_fully_ordered.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: biotine_paired_same_nb_as_unpaired_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/heldout_test_trajs_24__biotine_png__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+ path_to_train_test_labels_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/paired_same_nb_as_unpaired_heldout_test_trajs_24__biotine_png__train_test_labels__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
6
+
7
+ data_shape: [ 3, 128, 128 ]
8
+
9
+ transforms:
10
+ _target_: torchvision.transforms.transforms.Compose
11
+ transforms:
12
+ - _target_: torchvision.transforms.transforms.Resize
13
+ size: 128
14
+ # ConvertImageDtype also scales to [0; 1] (from the *implicit* expected range that depends on the incoming dtype...)
15
+ - _target_: torchvision.transforms.ConvertImageDtype
16
+ dtype: ${torch_dtype:float32}
17
+ - _target_: torchvision.transforms.Normalize
18
+ mean: [ 0.5, 0.5, 0.5 ]
19
+ std: [ 0.5, 0.5, 0.5 ]
20
+ - _target_: torchvision.transforms.RandomHorizontalFlip
21
+ - _target_: torchvision.transforms.RandomVerticalFlip
22
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
23
+
24
+ selected_dists:
25
+
26
+ expected_initial_data_range: [ 0, 255 ]
27
+
28
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/biotine/biotine_png_128.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: biotine_png
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255
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
+ # ConvertImageDtype also scales to [0; 1] (from the *implicit* expected range that depends on the incoming dtype...)
10
+ - _target_: torchvision.transforms.ConvertImageDtype
11
+ dtype: ${torch_dtype:float32}
12
+ - _target_: torchvision.transforms.Normalize
13
+ mean: [ 0.5, 0.5, 0.5 ]
14
+ std: [ 0.5, 0.5, 0.5 ]
15
+ - _target_: torchvision.transforms.RandomHorizontalFlip
16
+ - _target_: torchvision.transforms.RandomVerticalFlip
17
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
18
+ selected_dists:
19
+ expected_initial_data_range: [ 0, 255 ]
biotine_unpaired/my_conf/dataset/biotine/biotine_png_128_fully_ordered.yaml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: biotine_png_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/biotine_png__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [ 3, 128, 128 ]
7
+
8
+ transforms:
9
+ _target_: torchvision.transforms.transforms.Compose
10
+ transforms:
11
+ - _target_: torchvision.transforms.transforms.Resize
12
+ size: 128
13
+ # ConvertImageDtype also scales to [0; 1] (from the *implicit* expected range that depends on the incoming dtype...)
14
+ - _target_: torchvision.transforms.ConvertImageDtype
15
+ dtype: ${torch_dtype:float32}
16
+ - _target_: torchvision.transforms.Normalize
17
+ mean: [ 0.5, 0.5, 0.5 ]
18
+ std: [ 0.5, 0.5, 0.5 ]
19
+ - _target_: torchvision.transforms.RandomHorizontalFlip
20
+ - _target_: torchvision.transforms.RandomVerticalFlip
21
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
22
+
23
+ selected_dists:
24
+
25
+ expected_initial_data_range: [ 0, 255 ]
26
+
27
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/biotine/biotine_png_128_hard_aug.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: biotine_png_hard_aug
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255_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
+ # ConvertImageDtype also scales to [0; 1] (from the *implicit* expected range that depends on the incoming dtype...)
10
+ - _target_: torchvision.transforms.ConvertImageDtype
11
+ dtype: ${torch_dtype:float32}
12
+ - _target_: torchvision.transforms.Normalize
13
+ mean: [ 0.5, 0.5, 0.5 ]
14
+ std: [ 0.5, 0.5, 0.5 ]
15
+ selected_dists:
16
+ expected_initial_data_range: [ 0, 255 ]
biotine_unpaired/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_unpaired/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_unpaired/my_conf/dataset/biotine/biotine_png_256.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: biotine_png
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255
3
+ data_shape: [ 3, 256, 256 ]
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}
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.transforms.Resize
13
+ size: 256
14
+ - _target_: torchvision.transforms.RandomHorizontalFlip
15
+ - _target_: torchvision.transforms.RandomVerticalFlip
16
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
17
+ selected_dists: [ 1, 5, 10, 15, 19 ]
18
+ expected_initial_data_range: [ 0, 255 ]
biotine_unpaired/my_conf/dataset/biotine/biotine_unpaired_fully_ordered.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: biotine_unpaired_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/patches_255
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/unpaired_heldout_test_trajs_24__biotine_png__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+ path_to_train_test_labels_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/biotine/3_channels_min_99_perc_normalized_rgb_stacks_png/unpaired_heldout_test_trajs_24__biotine_png__train_test_labels__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
6
+
7
+ data_shape: [ 3, 128, 128 ]
8
+
9
+ transforms:
10
+ _target_: torchvision.transforms.transforms.Compose
11
+ transforms:
12
+ - _target_: torchvision.transforms.transforms.Resize
13
+ size: 128
14
+ # ConvertImageDtype also scales to [0; 1] (from the *implicit* expected range that depends on the incoming dtype...)
15
+ - _target_: torchvision.transforms.ConvertImageDtype
16
+ dtype: ${torch_dtype:float32}
17
+ - _target_: torchvision.transforms.Normalize
18
+ mean: [ 0.5, 0.5, 0.5 ]
19
+ std: [ 0.5, 0.5, 0.5 ]
20
+ - _target_: torchvision.transforms.RandomHorizontalFlip
21
+ - _target_: torchvision.transforms.RandomVerticalFlip
22
+ - _target_: GaussianProxy.utils.data.RandomRotationSquareSymmetry
23
+
24
+ selected_dists:
25
+
26
+ expected_initial_data_range: [ 0, 255 ]
27
+
28
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: diabetic_retinopathy
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/prepared_dataset/train
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 # single int => image resized to (size * aspect_ratio, size) or (size, size * aspect_ratio) with aspect_ratio >= 1 preserved
9
+ - _target_: torchvision.transforms.v2.CenterCrop
10
+ size: 256 # square centered crop
11
+ - _target_: torchvision.transforms.RandomHorizontalFlip
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
+ expected_initial_data_range: [0, 255]
18
+ expected_dtype: torch.uint8
biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_full_circle_augs_2048_crop_fully_ordered.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: diabetic_retinopathy_2048_crop_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/prepared_dataset_full_circle_augmented
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/balanced_classes__diabetic_retinopathy_2048_crop__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 256, 256]
7
+
8
+ transforms:
9
+ _target_: torchvision.transforms.v2.Compose
10
+ transforms:
11
+ - _target_: torchvision.transforms.v2.CenterCrop
12
+ size: 2048
13
+ - _target_: torchvision.transforms.v2.Resize
14
+ size: 256
15
+ - _target_: torchvision.transforms.v2.ToDtype
16
+ dtype: ${torch_dtype:float32}
17
+ scale: true
18
+ - _target_: torchvision.transforms.v2.Normalize
19
+ mean: [0.5, 0.5, 0.5]
20
+ std: [0.5, 0.5, 0.5]
21
+
22
+ expected_initial_data_range: [0, 255]
23
+ expected_dtype: torch.uint8
24
+
25
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_full_circle_augs_2560_crop_fully_ordered.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: diabetic_retinopathy_2560_crop_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/prepared_dataset_full_circle_augmented
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/balanced_classes__diabetic_retinopathy_2560_crop__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 256, 256]
7
+
8
+ transforms:
9
+ _target_: torchvision.transforms.v2.Compose
10
+ transforms:
11
+ - _target_: torchvision.transforms.v2.CenterCrop
12
+ size: 2560
13
+ - _target_: torchvision.transforms.v2.Resize
14
+ size: 256
15
+ - _target_: torchvision.transforms.v2.ToDtype
16
+ dtype: ${torch_dtype:float32}
17
+ scale: true
18
+ - _target_: torchvision.transforms.v2.Normalize
19
+ mean: [0.5, 0.5, 0.5]
20
+ std: [0.5, 0.5, 0.5]
21
+
22
+ expected_initial_data_range: [0, 255]
23
+ expected_dtype: torch.uint8
24
+
25
+ fully_ordered: true
biotine_unpaired/my_conf/dataset/diabetic_retinopathy/diabetic_retinopathy_fully_ordered.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: diabetic_retinopathy_fully_ordered
2
+
3
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/train
4
+ path_to_single_parquet: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/DiabeticRetinopathy/diabetic_retinopathy__continuous_time_predictions__facebook_dinov2-with-registers-giant_dataset_preproc.parquet
5
+
6
+ data_shape: [3, 256, 256]
7
+
8
+ transforms:
9
+ _target_: torchvision.transforms.transforms.Compose
10
+ transforms:
11
+ - _target_: torchvision.transforms.transforms.Resize
12
+ size: 256 # single int => image resized to (size * aspect_ratio, size) or (size, size * aspect_ratio) with aspect_ratio >= 1 preserved
13
+ - _target_: torchvision.transforms.v2.CenterCrop
14
+ size: 256 # square centered crop
15
+ - _target_: torchvision.transforms.RandomHorizontalFlip
16
+ - _target_: torchvision.transforms.ConvertImageDtype # this also scales to [0; 1]
17
+ dtype: ${torch_dtype:float32} # passed dtype must be accessible as a "torch" attribute
18
+ - _target_: torchvision.transforms.Normalize
19
+ mean: [0.5, 0.5, 0.5]
20
+ std: [0.5, 0.5, 0.5]
21
+
22
+ expected_initial_data_range: [0, 255]
23
+ expected_dtype: torch.uint8
24
+
25
+ fully_ordered: true
biotine_unpaired/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_unpaired/my_conf/dataset/ependymal_context/ependymal_context.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ependymal_context
2
+ path: /lustre/fsn1/projects/rech/icr/ufc43hj/datasets/ependymal/prepared_dataset_context
3
+ data_shape: [3, 256, 256]
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