Skip to content

Commit 7c6ed20

Browse files
update detection readme and add pip install packages (#1103)
Signed-off-by: Can Zhao <[email protected]> Fixes #1102 . ### Description Update readme to answer the questions in issue #1102 . - Why resamples files are less than all files - The required python packages ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Notebook runs automatically `./runner [-p <regex_pattern>]` Signed-off-by: Can Zhao <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5a49733 commit 7c6ed20

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

detection/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ In these files, the values of "box" are the ground truth boxes in world coordina
3232
- For bugs relating to the running of a tutorial, please create an issue in [this repository](https://github.com/Project-MONAI/Tutorials/issues).
3333

3434
### 3. Run the example
35+
#### 3.0 Setup environment
36+
```bash
37+
pip install -r requirements.txt
38+
```
39+
3540
#### [3.1 Prepare Your Data](./luna16_prepare_images.py)
3641
We provide [resampled Nifti images](https://drive.google.com/drive/folders/1JozrufA1VIZWJIc5A1EMV3J4CNCYovKK?usp=share_link) for users to download (recommended).
3742
If you do this, please open [luna16_prepare_env_files.py](luna16_prepare_env_files.py), change the value of "raw_data_base_dir" and "resampled_data_base_dir" to the directory where you store the downloaded images, and the value of "downloaded_datasplit_dir" to where you downloaded the data split json files.
@@ -60,7 +65,7 @@ python3 luna16_prepare_images_dicom.py -c ./config/config_train_luna16_16g.json
6065
```
6166
Note that for DICOM data, the data split json files are based on data downloaded with [NBIA Data Retriever](https://wiki.cancerimagingarchive.net/display/NBIA/Downloading+TCIA+Images).
6267

63-
The resampled images will be with Nifti format.
68+
The resampled images will be with Nifti format. The number of resampled images will be less than the original images, this is because LUNA16 annotation includes only nodules >= 3 mm accepted by at least 3 out of 4 radiologists, and excluded the images without such nodules.
6469

6570

6671
#### [3.2 3D Detection Training](./luna16_training.py)

detection/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
monai-weekly[nibabel]
2+
itk>=5.2; python_version < "3.10"
3+
tensorboard
4+
torchvision

0 commit comments

Comments
 (0)