Commit 4ca01ad2 authored by Wenqi Li's avatar Wenqi Li

Update hybrid_mr_ct_model_zoo.md

parent 70f357d2
Training with autocontext + isampler
```bash
python net_run.py train \
-a niftynet.contrib.regression_weighted_sampler.isample_regression.ISampleRegression \
......@@ -22,3 +23,30 @@ do
--starting_iter -1 --max_iter $max_iter
done
```
Inference using a sequence of models
```bash
# reset the initial maps
net_download hybrid_mr_ct_model_zoo -r
# recursively generating new CT estimations
python net_run.py inference \
-a niftynet.contrib.regression_weighted_sampler.isample_regression.ISampleRegression \
-c ~/niftynet/extensions/isampler_autocontext_mr_ct/net_hybrid.ini \
--inference_iter 500 --spatial_window_size 240,240,1 --batch_size 4 \
--dataset_split_file nofile --error_map False
for max_iter in `seq 1000 1000 9000`
do
python net_run.py inference \
-a niftynet.contrib.regression_weighted_sampler.isample_regression.ISampleRegression \
-c ~/niftynet/extensions/isampler_autocontext_mr_ct/net_hybrid.ini \
--inference_iter $max_iter --spatial_window_size 240,240,1 --batch_size 4 \
--dataset_split_file nofile --error_map False
done
python net_run.py inference \
-a niftynet.contrib.regression_weighted_sampler.isample_regression.ISampleRegression \
-c ~/niftynet/extensions/isampler_autocontext_mr_ct/net_hybrid.ini \
--inference_iter 10000 --spatial_window_size 240,240,1 --batch_size 4 \
--dataset_split_file nofile --error_map False
```
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