Skip to content

Commit ae7496e

Browse files
authored
Remove installation section in ldm2d and ldm3d readme (#1821)
Remove installation section in ldm2d and ldm3d readme for two reasons: - No extra dependency need for this two tutorials for now. - The link will be broken if we don't include the README file from the upper level. ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` --------- Signed-off-by: YunLiu <[email protected]>
1 parent 3c891ec commit ae7496e

File tree

9 files changed

+18
-24
lines changed

9 files changed

+18
-24
lines changed

deployment/Triton/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from monai.apps.utils import download_and_extract
5252

5353
model_name = "monai_covid"
54-
gdrive_path = "https://drive.google.com/uc?id=1GYvHGU2jES0m_msin-FFQnmTOaHkl0LN"
54+
gdrive_path = "https://developer.download.nvidia.com/assets/Clara/monai/tutorials/covid19_compressed.tar.gz"
5555
covid19_filename = "covid19_compress.tar.gz"
5656
md5_check = "cadd79d5ca9ccdee2b49cd0c8a3e6217"
5757

deployment/Triton/client/client_mednist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656

5757
model_name = "mednist_class"
58-
gdrive_path = "https://drive.google.com/uc?id=1HQk4i4vXKUX_aAYR4wcZQKd-qk5Lcm_W"
58+
gdrive_path = "https://developer.download.nvidia.com/assets/Clara/monai/tutorials/MedNIST_demo.tar.gz"
5959
mednist_filename = "MedNIST_demo.tar.gz"
6060
md5_check = "3f24a5833bb0455a7815c4e0ecc8a810"
6161

deployment/Triton/models/mednist_class/1/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575

7676
logger = logging.getLogger(__name__)
77-
gdrive_url = "https://drive.google.com/uc?id=1c6noLV9oR0_mQwrsiQ9TqaaeWFKyw46l"
77+
gdrive_url = "https://developer.download.nvidia.com/assets/Clara/monai/tutorials/MedNist_model.tar.gz"
7878
model_filename = "MedNIST_model.tar.gz"
7979
md5_check = "a4fb9d6147599e104b5d8dc1809ed034"
8080

deployment/Triton/models/monai_covid/1/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565

6666
logger = logging.getLogger(__name__)
67-
gdrive_url = "https://drive.google.com/uc?id=1U9Oaw47SWMJeDkg1FSTY1W__tQOY1nAZ"
67+
gdrive_url = "https://developer.download.nvidia.com/assets/Clara/monai/tutorials/covid19_model.tar.gz"
6868
model_filename = "covid19_model.tar.gz"
6969
md5_check = "571046a25659515bf7abee4266f14435"
7070

generation/2d_ldm/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ python download_brats_data.py -e ./config/environment.json
2626

2727
Disclaimer: We are not the host of the data. Please make sure to read the requirements and usage policies of the data and give credit to the authors of the dataset!
2828

29-
### 2. Installation
30-
Please refer to the [Installation of MONAI Generative Model](../README.md)
29+
### 2. Run the example
3130

32-
### 3. Run the example
33-
34-
#### [3.1 2D Autoencoder Training](./train_autoencoder.py)
31+
#### [2.1 2D Autoencoder Training](./train_autoencoder.py)
3532

3633
The network configuration files are located in [./config/config_train_32g.json](./config/config_train_32g.json) for 32G GPU and [./config/config_train_16g.json](./config/config_train_16g.json) for 16G GPU. You can modify the hyperparameters in these files to suit your requirements.
3734

@@ -74,7 +71,7 @@ An example reconstruction result is shown below:
7471
<img src="./figs/recon.png" alt="Autoencoder reconstruction result")
7572
</p>
7673

77-
#### [3.2 2D Latent Diffusion Training](./train_diffusion.py)
74+
#### [2.2 2D Latent Diffusion Training](./train_diffusion.py)
7875
The training script uses the batch size and patch size defined in the configuration files. If you have a different GPU memory size, you should adjust the `"batch_size"` and `"patch_size"` parameters in the `"diffusion_train"` to match your GPU. Note that the `"patch_size"` needs to be divisible by 16 and no larger than 256.
7976

8077
To train with single 32G GPU, please run:
@@ -97,7 +94,7 @@ torchrun \
9794
<img src="./figs/val_diffusion.png" alt="latent diffusion validation curve" width="45%" >
9895
</p>
9996

100-
#### [3.3 Inference](./inference.py)
97+
#### [2.3 Inference](./inference.py)
10198
To generate one image during inference, please run the following command:
10299
```bash
103100
python inference.py -c ./config/config_train_32g.json -e ./config/environment.json --num 1
@@ -115,7 +112,7 @@ An example output is shown below.
115112
<img src="./figs/syn_3.jpeg" width="20%" >
116113
</p>
117114

118-
### 4. Questions and bugs
115+
### 3. Questions and bugs
119116

120117
- For questions relating to the use of MONAI, please use our [Discussions tab](https://github.com/Project-MONAI/MONAI/discussions) on the main repository of MONAI.
121118
- For bugs relating to MONAI functionality, please create an issue on the [main repository](https://github.com/Project-MONAI/MONAI/issues).

generation/3d_ldm/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ python download_brats_data.py -e ./config/environment.json
2626

2727
Disclaimer: We are not the host of the data. Please make sure to read the requirements and usage policies of the data and give credit to the authors of the dataset!
2828

29-
### 2. Installation
30-
Please refer to the [Installation of MONAI Generative Model](../README.md)
29+
### 2. Run the example
3130

32-
### 3. Run the example
33-
34-
#### [3.1 3D Autoencoder Training](./train_autoencoder.py)
31+
#### [2.1 3D Autoencoder Training](./train_autoencoder.py)
3532

3633
The network configuration files are located in [./config/config_train_32g.json](./config/config_train_32g.json) for 32G GPU
3734
and [./config/config_train_16g.json](./config/config_train_16g.json) for 16G GPU.
@@ -73,7 +70,7 @@ torchrun \
7370

7471
With eight DGX1V 32G GPUs, it took around 55 hours to train 1000 epochs.
7572

76-
#### [3.2 3D Latent Diffusion Training](./train_diffusion.py)
73+
#### [2.2 3D Latent Diffusion Training](./train_diffusion.py)
7774
The training script uses the batch size and patch size defined in the configuration files. If you have a different GPU memory size, you should adjust the `"batch_size"` and `"patch_size"` parameters in the `"diffusion_train"` to match your GPU. Note that the `"patch_size"` needs to be divisible by 16.
7875

7976
To train with single 32G GPU, please run:
@@ -96,7 +93,7 @@ torchrun \
9693
<img src="./figs/val_diffusion.png" alt="latent diffusion validation curve" width="45%" >
9794
</p>
9895

99-
#### [3.3 Inference](./inference.py)
96+
#### [2.3 Inference](./inference.py)
10097
To generate one image during inference, please run the following command:
10198
```bash
10299
python inference.py -c ./config/config_train_32g.json -e ./config/environment.json --num 1
@@ -112,7 +109,7 @@ An example output is shown below.
112109
<img src="./figs/syn_cor.png" width="30%" >
113110
</p>
114111

115-
### 4. Questions and bugs
112+
### 3. Questions and bugs
116113

117114
- For questions relating to the use of MONAI, please use our [Discussions tab](https://github.com/Project-MONAI/MONAI/discussions) on the main repository of MONAI.
118115
- For bugs relating to MONAI functionality, please create an issue on the [main repository](https://github.com/Project-MONAI/MONAI/issues).

modules/developer_guide.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@
717717
"id": "kvn_6mf9gZoA"
718718
},
719719
"source": [
720-
"The following commands will start a `SupervisedTrainer` instance. As an extension of Pytorch ignite's facilities, it combines all the elements mentioned before. Calling `trainer.run()` will train the network for two epochs and compute `MeadDice` metric based on the training data at the end of every epoch.\n",
720+
"The following commands will start a `SupervisedTrainer` instance. As an extension of Pytorch ignite's facilities, it combines all the elements mentioned before. Calling `trainer.run()` will train the network for two epochs and compute `MeanDice` metric based on the training data at the end of every epoch.\n",
721721
"\n",
722722
"The `key_train_metric` is used to track the progress of model quality improvement. Additional handlers could be set to do early stopping and learning rate scheduling.\n",
723723
"\n",

modules/interpretability/class_lung_lesion.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"\n",
3030
"For the demo data:\n",
3131
"- Please see the `bbox_gen.py` script for generating the patch classification data from MSD task06_lung (available via `monai.apps.DecathlonDataset`);\n",
32-
"- Alternatively, the patch dataset (~130MB) is available for direct downloading at: https://drive.google.com/drive/folders/1pQdzdkkC9c2GOblLgpGlG3vxsSK9NtDx\n",
32+
"- Alternatively, the patch dataset (~130MB) is available for direct downloading at: https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/lung_lesion_patches.tar.gz\n",
3333
"\n",
3434
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Project-MONAI/tutorials/blob/main/modules/interpretability/class_lung_lesion.ipynb)"
3535
]

modules/tcia_csv_processing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@
247247
"metadata": {},
248248
"source": [
249249
"## Download and Load the CSV file with `TCIADataset`\n",
250-
"Here we use the demo data in Google drive:\n",
251-
"https://drive.google.com/file/d/1HQ7BZvBr1edmi8HIwdG5KBweXWms5Uzk/view?usp=sharing \n",
250+
"Here we use the demo data located here:\n",
251+
"https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/ISPY1_Combined.csv \n",
252252
"\n",
253253
"Expect the first row of CSV file to be titles of columns. we only use the first 8 rows to execute demo processing."
254254
]

0 commit comments

Comments
 (0)