Skip to content

Commit

Permalink
MONAI example updates (NVIDIA#1506)
Browse files Browse the repository at this point in the history
* update instructions & paths

* remove virtualenv folders

* fix links
  • Loading branch information
holgerroth authored Mar 14, 2023
1 parent a9b5275 commit 67c8a58
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 96 deletions.
3 changes: 3 additions & 0 deletions integration/monai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ For an example of using [NVIDIA FLARE](https://nvflare.readthedocs.io/en/main/in

## Requirements

We recommend following the instructions for setting up a [virtual environment](../../examples/README.md#set-up-a-virtual-environment),
and using it in [JupyterLab](../../examples/README.md#notebooks) for running the notebooks the MONAI integration examples.

Install MONAI-NVFlare integration from [PyPI](https://pypi.org/):
```
pip install monai_nvflare
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,10 @@ And go to the folder containing this tutorial
## Setup environment

To execute the below commands, please open a terminal
and go to the folder containing this tutorial:
and go to the folder containing this tutorial.

#### (Optional) Set up a virtual environment
```
python3 -m pip install --user --upgrade pip
python3 -m pip install --user virtualenv
```
(If needed) make all shell scripts executable using
```
find . -name ".sh" -exec chmod +x {} \;
```
initialize virtual environment.
```
source ./virtualenv/set_env.sh
```
install required packages for training
```
pip install --upgrade pip
pip install -r virtualenv/requirements.txt
```
We recommend following the instructions for setting up a [virtual environment](../../../../examples/README.md#set-up-a-virtual-environment),
and using it in [JupyterLab](../../../../examples/README.md#notebooks) for running the notebooks the MONAI integration examples.

### 1. Download the Spleen Bundle

Expand Down

This file was deleted.

22 changes: 3 additions & 19 deletions integration/monai/examples/spleen_ct_segmentation_sim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,10 @@ For an example with real-world deployment settings, see [here](../spleen_ct_segm
## Setup environment

To execute the below commands, please open a terminal
and go to the folder containing this tutorial:
and go to the folder containing this tutorial.

#### (Optional) Set up a virtual environment
```
python3 -m pip install --user --upgrade pip
python3 -m pip install --user virtualenv
```
(If needed) make all shell scripts executable using
```
find . -name ".sh" -exec chmod +x {} \;
```
initialize virtual environment.
```
source ./virtualenv/set_env.sh
```
install required packages for training
```
pip install --upgrade pip
pip install -r virtualenv/requirements.txt
```
We recommend following the instructions for setting up a [virtual environment](../../../../examples/README.md#set-up-a-virtual-environment),
and using it in [JupyterLab](../../../../examples/README.md#notebooks) for running the notebooks the MONAI integration examples.

### 1. Download the Spleen Bundle

Expand Down

Large diffs are not rendered by default.

This file was deleted.

0 comments on commit 67c8a58

Please sign in to comment.