YongchengYAO commited on
Commit
bf953a1
Β·
1 Parent(s): 63bd1b5

update doc

Browse files
Files changed (1) hide show
  1. doc/dataset_skm-tea.md +20 -20
doc/dataset_skm-tea.md CHANGED
@@ -16,13 +16,13 @@ This tutorial is about:
16
  ```
17
  # Files from SKM-TEA source
18
  β”œβ”€β”€ v1-release
19
- β”œβ”€β”€ dicoms
20
- β”œβ”€β”€ MTR_001.tar.gz
21
- β”œβ”€β”€ ...
22
- β”œβ”€β”€ segmentation_masks
23
- β”œβ”€β”€ raw-data-track
24
- β”œβ”€β”€ MTR_001.nii.gz
25
- β”œβ”€β”€ ...
26
  ```
27
 
28
  ```
@@ -31,14 +31,14 @@ This tutorial is about:
31
  β”œβ”€β”€ Masks
32
  β”œβ”€β”€ MTR_001.nii.gz
33
  β”œβ”€β”€ ...
34
- β”œβ”€β”€ dicoms
35
- β”œβ”€β”€ MTR_001.tar.gz
36
- β”œβ”€β”€ ...
37
  ```
38
 
39
  ## How to preprocess data?
40
 
41
- ⚠️ DO NOT change file or folder names. See why here:
42
 
43
  1. Go to the parent folder of `dicoms`, install [`dcm2niix`](https://github.com/rordenlab/dcm2niix), add processing script
44
 
@@ -46,8 +46,8 @@ This tutorial is about:
46
  # local file structure
47
  β”œβ”€β”€ [your folder]
48
  β”œβ”€β”€ Masks
49
- β”œβ”€β”€ dicoms
50
- β”œβ”€β”€ prepare-skm-tea.sh # <-- add this
51
  ```
52
 
53
  ```bash
@@ -87,10 +87,10 @@ This tutorial is about:
87
  # local file structure
88
  β”œβ”€β”€ [your folder]
89
  β”œβ”€β”€ Masks
90
- β”œβ”€β”€ dicoms
91
- β”œβ”€β”€ Images-E1
92
- β”œβ”€β”€ Images-E2
93
- β”œβ”€β”€ prepare-skm-tea.sh
94
  ```
95
 
96
  2. Put these folders into `SKM-TEA-nii` and upload the **compressed** file to your HF dataset repo
@@ -98,9 +98,9 @@ This tutorial is about:
98
  ```
99
  # DO NOT use other folder names
100
  β”œβ”€β”€ SKM-TEA-nii
101
- β”œβ”€β”€ Images-E1
102
- β”œβ”€β”€ Images-E2
103
- β”œβ”€β”€ Masks
104
  ```
105
 
106
  Your HF repo should contain `SKM-TEA-nii.zip`
 
16
  ```
17
  # Files from SKM-TEA source
18
  β”œβ”€β”€ v1-release
19
+ β”œβ”€β”€ dicoms
20
+ β”œβ”€β”€ MTR_001.tar.gz
21
+ β”œβ”€β”€ ...
22
+ β”œβ”€β”€ segmentation_masks
23
+ β”œβ”€β”€ raw-data-track
24
+ β”œβ”€β”€ MTR_001.nii.gz
25
+ β”œβ”€β”€ ...
26
  ```
27
 
28
  ```
 
31
  β”œβ”€β”€ Masks
32
  β”œβ”€β”€ MTR_001.nii.gz
33
  β”œβ”€β”€ ...
34
+ β”œβ”€β”€ dicoms
35
+ β”œβ”€β”€ MTR_001.tar.gz
36
+ β”œβ”€β”€ ...
37
  ```
38
 
39
  ## How to preprocess data?
40
 
41
+ ⚠️ DO NOT change file or folder names. See why [here](https://huggingface.co/datasets/YongchengYAO/MedVision/blob/main/src/medvision_ds/datasets/SKM_TEA/download.py).
42
 
43
  1. Go to the parent folder of `dicoms`, install [`dcm2niix`](https://github.com/rordenlab/dcm2niix), add processing script
44
 
 
46
  # local file structure
47
  β”œβ”€β”€ [your folder]
48
  β”œβ”€β”€ Masks
49
+ β”œβ”€β”€ dicoms
50
+ β”œβ”€β”€ prepare-skm-tea.sh # <-- add this
51
  ```
52
 
53
  ```bash
 
87
  # local file structure
88
  β”œβ”€β”€ [your folder]
89
  β”œβ”€β”€ Masks
90
+ β”œβ”€β”€ dicoms
91
+ β”œβ”€β”€ Images-E1
92
+ β”œβ”€β”€ Images-E2
93
+ β”œβ”€β”€ prepare-skm-tea.sh
94
  ```
95
 
96
  2. Put these folders into `SKM-TEA-nii` and upload the **compressed** file to your HF dataset repo
 
98
  ```
99
  # DO NOT use other folder names
100
  β”œβ”€β”€ SKM-TEA-nii
101
+ β”œβ”€β”€ Images-E1
102
+ β”œβ”€β”€ Images-E2
103
+ β”œβ”€β”€ Masks
104
  ```
105
 
106
  Your HF repo should contain `SKM-TEA-nii.zip`