Skip to content

update detection readme and add pip install packages #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ In these files, the values of "box" are the ground truth boxes in world coordina
- For bugs relating to the running of a tutorial, please create an issue in [this repository](https://github.com/Project-MONAI/Tutorials/issues).

### 3. Run the example
#### 3.0 Setup environment
```bash
pip install -r requirements.txt
```

#### [3.1 Prepare Your Data](./luna16_prepare_images.py)
We provide [resampled Nifti images](https://drive.google.com/drive/folders/1JozrufA1VIZWJIc5A1EMV3J4CNCYovKK?usp=share_link) for users to download (recommended).
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.
Expand Down Expand Up @@ -60,7 +65,7 @@ python3 luna16_prepare_images_dicom.py -c ./config/config_train_luna16_16g.json
```
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).

The resampled images will be with Nifti format.
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.


#### [3.2 3D Detection Training](./luna16_training.py)
Expand Down
4 changes: 4 additions & 0 deletions detection/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
monai-weekly[nibabel]
itk>=5.2; python_version < "3.10"
tensorboard
torchvision