sathiiii commited on
Commit
eea9a47
·
verified ·
1 Parent(s): 48f3fbf

Add files using upload-large-folder tool

Browse files
archives/datasets.tar.part-00 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceb80f20ecba58608e2c73ad72be59e8ad899b49635c56c08de39b9d3033a1ae
3
+ size 5368709120
archives/datasets.tar.part-01 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:431b4add238d8ba0aa106f339214d62ad27b8d299e7dc8e8c7d55d160540071d
3
+ size 5368709120
archives/datasets.tar.part-02 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a672f0b4729073ce7b2cdb206bbd0019a363ae0009c34174ee62b0058f572bf
3
+ size 5368709120
archives/datasets.tar.part-03 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eddb539d48c7044f6e40cd9ff896665659436ee02653608387906f1ef891791d
3
+ size 5368709120
archives/datasets.tar.part-04 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8ba702c30416955bb841f6367fea3c9b8edb9e167a23756267398213da7d201
3
+ size 2897561600
archives/outputs.tar.part-00 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8446c24115c281debd51840f20af9e7eb70802ad05be817ba58714fac53ea9ed
3
+ size 2702970880
configs/data/amos.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ manifest: data_json/amos_ct2mr_shared13_sfda.json
3
+ in_channels: 1
4
+ num_classes: 14
5
+ patch_size: [96, 96, 96]
6
+ batch_size: 1
7
+ val_batch_size: 1
8
+ intensity:
9
+ clip: null
10
+ normalize: zscore_nonzero
configs/data/crossmoda.yaml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ manifest: data_json/crossmoda_t1_to_t2.json
3
+ in_channels: 1
4
+ # background, vestibular schwannoma, cochlea
5
+ num_classes: 3
6
+ patch_size: [96, 96, 96]
7
+ batch_size: 1
8
+ val_batch_size: 1
9
+ intensity:
10
+ clip: null
11
+ normalize: zscore_nonzero
configs/data/mmwhs.yaml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ manifest: data_json/mmwhs_ct2mr.json
3
+ in_channels: 1
4
+ # Common public-subset MMWHS protocols often use 4 foreground cardiac structures plus background.
5
+ # Set num_classes to match your prepared labels.
6
+ num_classes: 5
7
+ patch_size: [96, 96, 96]
8
+ batch_size: 1
9
+ val_batch_size: 1
10
+ intensity:
11
+ clip: null
12
+ normalize: zscore_nonzero
configs/defaults.yaml ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed: 1337
2
+ output_dir: outputs/default
3
+ amp: true
4
+ compile: false
5
+ channels_last_3d: false
6
+ num_workers: 4
7
+ pin_memory: true
8
+ wandb:
9
+ enabled: true
10
+ project: SACFlow-FM
11
+ entity: null
12
+ mode: online
13
+ tags: []
14
+ log_images_every: 250
15
+ watch_model: false
16
+
17
+ distributed:
18
+ backend: nccl
19
+ find_unused_parameters: false
20
+
21
+ data:
22
+ manifest: data_json/mmwhs_ct2mr.json
23
+ spacing: null
24
+ patch_size: [96, 96, 96]
25
+ batch_size: 1
26
+ val_batch_size: 1
27
+ cache_rate: 0.0
28
+ in_channels: 1
29
+ num_classes: 5
30
+ foreground_labels: null
31
+ intensity:
32
+ clip: null
33
+ normalize: zscore_nonzero
34
+ augmentation:
35
+ random_flip: true
36
+ random_intensity_shift: 0.10
37
+ random_intensity_scale: 0.10
38
+
39
+ model:
40
+ name: unet3d
41
+ in_channels: 1
42
+ num_classes: 5
43
+ base_channels: 32
44
+ levels: 4
45
+ norm: instance
46
+ dropout: 0.0
47
+ deep_supervision: false
48
+ adapter:
49
+ enabled: false
50
+ bottleneck_ratio: 0.25
51
+ locations: [prelogit]
52
+
53
+ optim:
54
+ optimizer: adamw
55
+ lr: 2.0e-4
56
+ weight_decay: 1.0e-4
57
+ betas: [0.9, 0.999]
58
+ scheduler: cosine
59
+ warmup_steps: 500
60
+ max_steps: 30000
61
+ grad_clip_norm: 12.0
62
+
63
+ train:
64
+ mode: source_train
65
+ epochs: 100
66
+ steps_per_epoch: 250
67
+ val_every: 1
68
+ save_every: 5
69
+ log_every: 20
70
+ resume: null
71
+ source_checkpoint: null
72
+ memory_path: null
73
+ ema_decay: 0.99
74
+ pseudo_conf_threshold: 0.70
75
+ class_balanced_thresholds: false
76
+ loss:
77
+ ce: 1.0
78
+ dice: 1.0
79
+ entropy: 0.0
80
+ consistency: 0.0
81
+
82
+ eval:
83
+ checkpoint: null
84
+ split: target_test
85
+ save_predictions: false
86
+ sliding_window: true
87
+ roi_size: [96, 96, 96]
88
+ sw_batch_size: 1
89
+ overlap: 0.5
environment.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: sacflow
2
+ channels:
3
+ - conda-forge
4
+ - defaults
5
+ dependencies:
6
+ - python=3.10
7
+ - pip
8
+ - numpy
9
+ - scipy
10
+ - pandas
11
+ - scikit-image
12
+ - scikit-learn
13
+ - nibabel
14
+ - tqdm
15
+ - pyyaml
16
+ - rich
17
+ - matplotlib
18
+ - tensorboard
19
+ - pip:
20
+ - monai>=1.3.0
21
+ - wandb>=0.17.0
22
+ - einops>=0.7.0
23
+ - SimpleITK>=2.3.0
24
+ - connected-components-3d>=3.12.0
25
+ - medpy>=0.5.2
26
+ # Install torch/torchvision/torchaudio separately for your ROCm version.
27
+ # Example for ROCm 6.2/6.3 clusters, check official PyTorch selector:
28
+ # pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2
restore_archives.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ cd "$(dirname "$0")"
5
+
6
+ if ls archives/datasets.tar.part-* >/dev/null 2>&1; then
7
+ cat archives/datasets.tar.part-* | tar -xf -
8
+ fi
9
+
10
+ if ls archives/outputs.tar.part-* >/dev/null 2>&1; then
11
+ cat archives/outputs.tar.part-* | tar -xf -
12
+ fi
13
+
14
+ if ls archives/wandb.tar.part-* >/dev/null 2>&1; then
15
+ cat archives/wandb.tar.part-* | tar -xf -
16
+ fi
17
+
18
+ echo "Restored archived folders."