Commit 79d69bd3 authored by Wenqi Li's avatar Wenqi Li

test multiple downloads

parent e6db0c09
Please see the [NiftyNet project page](https://cmiclab.cs.ucl.ac.uk/CMIC/NiftyNet).
Please see the [Model zoo entries](./model_zoo.md)
and [NiftyNet project page](https://cmiclab.cs.ucl.ac.uk/CMIC/NiftyNet).
NiftyNetExampleServer is part of an automatic download system. You don't need to clone this project.
\ No newline at end of file
......@@ -14,19 +14,32 @@ nearby organs (liver, gallbladder, spleen, left kidney).
## Downloading model zoo files
If you cloned the NiftyNet repository, the network weights and examples data can be downloaded with the command
`python net_download.py dense_vnet_abdominal_ct_model_zoo dense_vnet_abdominal_ct_model_zoo_data`.
```bash
python net_download.py \
dense_vnet_abdominal_ct_model_zoo \
dense_vnet_abdominal_ct_model_zoo_data
```
If you install NiftyNet via pip, you won't have the net_download feature yet. You can download the
Alternatively, you can download the
[model zoo entry](https://www.dropbox.com/s/yddopkblhe7gfsj/dense_vnet_abdominal_ct_model_zoo.tar.gz?dl=1)
and the [example data](https://www.dropbox.com/s/5fk0m9v12if5da9/dense_vnet_abdominal_ct_model_zoo_data.tar.gz?dl=1) manually.
Unzip dense_vnet_abdominal_ct_model_zoo.tar.gz into ~/niftynet/models/dense_vnet_abdominal_ct_model_zoo/ and dense_vnet_abdominal_ct_model_zoo_data.tar.gz into
~/niftynet/data/dense_vnet_abdominal_ct_model_zoo_data/.
Unzip `dense_vnet_abdominal_ct_model_zoo.tar.gz` into
`~/niftynet/models/dense_vnet_abdominal_ct_model_zoo/` and
`dense_vnet_abdominal_ct_model_zoo_data.tar.gz` into
`~/niftynet/data/dense_vnet_abdominal_ct_model_zoo_data/`.
Make sure that the model directory (`~/niftynet/models/` by default) is on the PYTHONPATH.
Make sure that the model directory (`~/niftynet/models/` by default) is on the `PYTHONPATH`.
## Generating segmentations for example data
Generate segmentations for the included example image with the command `net_segment inference -c ~/niftynet/models/dense_vnet_abdominal_ct_model_zoo/config.ini`. Replace `net_segment` with `python net_segment.py` if you cloned the NiftyNet repository. Replace `~/niftynet/` if you specified a custom download path in the `net_download` command.
Generate segmentations for the included example image with the command
```bash
net_segment inference -c ~/niftynet/models/dense_vnet_abdominal_ct_model_zoo/config.ini
```
Replace `net_segment` with `python net_segment.py` if you cloned the NiftyNet repository.
Replace `~/niftynet/` if you specified a custom download path in the `net_download` command.
## Generating segmentations for your own data
......
[config]
version = 1.0
[code]
url = https://www.dropbox.com/s/yddopkblhe7gfsj/dense_vnet_abdominal_ct_model_zoo.tar.gz?dl=1
action = expand
destination = niftynetext
[data]
url = https://www.dropbox.com/s/5fk0m9v12if5da9/dense_vnet_abdominal_ct_model_zoo_data.tar.gz?dl=1
action = expand
destination = data
[weights]
url = https://www.dropbox.com/s/5fk0m9v12if5da9/dense_vnet_abdominal_ct_model_zoo_data.tar.gz?dl=1
action = expand
destination = models
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment