Spaces:
Runtime error
Runtime error
Anirudh Balaraman commited on
Revise PI-RADS and csPCa model training details
Browse filesUpdated training section and removed duplicate note about input file requirements.
README.md
CHANGED
|
@@ -62,8 +62,7 @@ Run run_inference.py to execute the full pipeline, from preprocessing to model p
|
|
| 62 |
- *t2_dir, dwi_dir, adc_dir*: Path to T2W, DWI and ADC sequnces respectively.
|
| 63 |
- *output_dir*: Path to store preprocessed files and results.
|
| 64 |
|
| 65 |
-
|
| 66 |
-
โ ๏ธ ***NOTE: For each scan, all sequences should share the same filename, and the input files must be in NRRD format.***
|
| 67 |
|
| 68 |
- ๐ **Outputs:**
|
| 69 |
The following are stored for each scan:
|
|
@@ -84,17 +83,20 @@ python preprocess_main.py \
|
|
| 84 |
```
|
| 85 |
|
| 86 |
|
| 87 |
-
### โ๏ธ PI-RADS Training
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
```bash
|
| 90 |
python run_pirads.py --mode train --config config/config_pirads_train.yaml
|
| 91 |
-
```
|
| 92 |
-
|
| 93 |
-
### โ๏ธ csPCa Training
|
| 94 |
-
|
| 95 |
-
```bash
|
| 96 |
python run_cspca.py --mode train --config config/config_cspca_train.yaml
|
| 97 |
```
|
|
|
|
| 98 |
### ๐ Testing
|
| 99 |
|
| 100 |
```bash
|
|
|
|
| 62 |
- *t2_dir, dwi_dir, adc_dir*: Path to T2W, DWI and ADC sequnces respectively.
|
| 63 |
- *output_dir*: Path to store preprocessed files and results.
|
| 64 |
|
| 65 |
+
โ ๏ธ ***NOTE: For each scan, all sequences should share the same filename, and the input files must be in NRRD format.***
|
|
|
|
| 66 |
|
| 67 |
- ๐ **Outputs:**
|
| 68 |
The following are stored for each scan:
|
|
|
|
| 83 |
```
|
| 84 |
|
| 85 |
|
| 86 |
+
### โ๏ธ PI-RADS ans csPCa Model Training
|
| 87 |
+
- **Input Arguments:**
|
| 88 |
+
-*dataset_json*: File paths of the scans. JSON used for training: `dataset/PI-RADS_data.json`.
|
| 89 |
+
-*data_root*: Root direcotry of T2W files.
|
| 90 |
+
-*tile_count*: No. of patches per scan.
|
| 91 |
+
-*tile_size*: Length and width of each patch.
|
| 92 |
+
-*depth*: Depth of each 3D patch
|
| 93 |
+
โ ๏ธ ***NOTE: run_cspca.py in train mode requires PI-RADS MIL backbone.***
|
| 94 |
|
| 95 |
```bash
|
| 96 |
python run_pirads.py --mode train --config config/config_pirads_train.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
python run_cspca.py --mode train --config config/config_cspca_train.yaml
|
| 98 |
```
|
| 99 |
+
|
| 100 |
### ๐ Testing
|
| 101 |
|
| 102 |
```bash
|