Skip to content

Commit 60850bf

Browse files
authored
Merge pull request #180 from utkarshtambe10/patch-2
updating README.md with tree file structure and command
2 parents fb51e44 + 1c8ee18 commit 60850bf

1 file changed

Lines changed: 29 additions & 12 deletions

File tree

README.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,38 @@ MedSegDiff a Diffusion Probabilistic Model (DPM) based framework for Medical Ima
3333

3434
## Example Cases
3535
### Melanoma Segmentation from Skin Images
36-
1. Download ISIC dataset from https://challenge.isic-archive.com/data/. Your dataset folder under "data_dir" should be like:
36+
1. Download ISIC dataset from https://challenge.isic-archive.com/data/. Your dataset folder under "data" should be like:
3737

38-
ISIC/
38+
~~~
39+
data
40+
| ----ISIC
41+
| ----Test
42+
| | | ISBI2016_ISIC_Part1_Test_GroundTruth.csv
43+
| | |
44+
| | ----ISBI2016_ISIC_Part1_Test_Data
45+
| | | ISIC_0000003.jpg
46+
| | | .....
47+
| | |
48+
| | ----ISBI2016_ISIC_Part1_Test_GroundTruth
49+
| | ISIC_0000003_Segmentation.png
50+
| | | .....
51+
| |
52+
| ----Train
53+
| | ISBI2016_ISIC_Part1_Training_GroundTruth.csv
54+
| |
55+
| ----ISBI2016_ISIC_Part1_Training_Data
56+
| | ISIC_0000000.jpg
57+
| | .....
58+
| |
59+
| ----ISBI2016_ISIC_Part1_Training_GroundTruth
60+
| | ISIC_0000000_Segmentation.png
61+
| | .....
62+
~~~
3963

40-
ISBI2016_ISIC_Part3B_Test_Data/...
41-
42-
ISBI2016_ISIC_Part3B_Training_Data/...
43-
44-
ISBI2016_ISIC_Part3B_Test_GroundTruth.csv
45-
46-
ISBI2016_ISIC_Part3B_Training_GroundTruth.csv
4764

48-
2. For training, run: ``python scripts/segmentation_train.py --data_name ISIC --data_dir input data direction --out_dir output data direction --image_size 256 --num_channels 128 --class_cond False --num_res_blocks 2 --num_heads 1 --learn_sigma True --use_scale_shift_norm False --attention_resolutions 16 --diffusion_steps 1000 --noise_schedule linear --rescale_learned_sigmas False --rescale_timesteps False --lr 1e-4 --batch_size 8``
49-
50-
3. For sampling, run: ``python scripts/segmentation_sample.py --data_name ISIC --data_dir input data direction --out_dir output data direction --model_path saved model --image_size 256 --num_channels 128 --class_cond False --num_res_blocks 2 --num_heads 1 --learn_sigma True --use_scale_shift_norm False --attention_resolutions 16 --diffusion_steps 1000 --noise_schedule linear --rescale_learned_sigmas False --rescale_timesteps False --num_ensemble 5``
65+
2. For training, run: ``python scripts/segmentation_train.py --data_name ISIC --data_dir *input data direction* --out_dir *output data direction* --image_size 256 --num_channels 128 --class_cond False --num_res_blocks 2 --num_heads 1 --learn_sigma True --use_scale_shift_norm False --attention_resolutions 16 --diffusion_steps 1000 --noise_schedule linear --rescale_learned_sigmas False --rescale_timesteps False --lr 1e-4 --batch_size 8``
66+
67+
3. For sampling, run: ``python scripts/segmentation_sample.py --data_name ISIC --data_dir *input data direction* --out_dir *output data direction* --model_path *saved model* --image_size 256 --num_channels 128 --class_cond False --num_res_blocks 2 --num_heads 1 --learn_sigma True --use_scale_shift_norm False --attention_resolutions 16 --diffusion_steps 1000 --noise_schedule linear --rescale_learned_sigmas False --rescale_timesteps False --num_ensemble 5``
5168

5269
4. For evaluation, run ``python scripts/segmentation_env.py --inp_pth *folder you save prediction images* --out_pth *folder you save ground truth images*``
5370

0 commit comments

Comments
 (0)