Comments (6)
Thanks for your reply,I am new in DL and thanks for your guide again.
from niftynet.
I have solved above problem.
from niftynet.
Hi @yyydido the ground truth labels are not included in the model zoo at the moment, please have a look at the promise12 demo for more information on training a network (https://cmiclab.cs.ucl.ac.uk/CMIC/NiftyNet/tree/dev/demos/PROMISE12)
from niftynet.
Thanks, I got it. But I try this https://cmiclab.cs.ucl.ac.uk/CMIC/NiftyNet/tree/dev/demos/BRATS17 that contains label,I placed brats_segmentation.py and anisotropic_nets
on the $PYTHONPATH of the system environment,however,raise error :
net_run train -c ./extensions/anisotropic_nets_brats_challenge/whole_tumor_sagittal.ini -a brats_seg_app.BRATSApp --name anisotropic_nets.wt_net.WTNet
`NiftyNet version 0.2.1
CRITICAL:niftynet: ImportError("No module named 'brats_seg_app'",)
CRITICAL:niftynet: application: Could not import object"BRATSApp" from "brats_seg_app"
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/niftynet/engine/application_factory.py", line 153, in select_module
the_module = importlib.import_module(module_str)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 956, in _find_and_load_unlocked
ImportError: No module named 'brats_seg_app'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/net_run", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/niftynet/init.py", line 52, in main
system_param, input_data_param = user_parameters_parser.run()
File "/usr/local/lib/python3.5/dist-packages/niftynet/utilities/user_parameters_parser.py", line 108, in run
app_module = ApplicationFactory.create(module_name)
File "/usr/local/lib/python3.5/dist-packages/niftynet/engine/application_factory.py", line 197, in create
return select_module(name, cls.type_str, cls.SUPPORTED)
File "/usr/local/lib/python3.5/dist-packages/niftynet/engine/application_factory.py", line 182, in select_module
raise ValueError(err)
ValueError: application: Could not import object"BRATSApp" from "brats_seg_app"
`
from niftynet.
Hi @yyydido no problem, and for the BRATS demo it's also available in the model zoo (https://cmiclab.cs.ucl.ac.uk/CMIC/NiftyNetExampleServer/blob/master/anisotropic_nets_brats_challenge_model_zoo.md) net_download
command would download the modules to ~/niftynet/extensions/anisotropic_nets_brats_challenge
by default. Perhaps this is easier to use.
Sorry for suggesting links in demo
and model zoo
back and forth, we've been migrating demos to the model zoo, documentation will be improved soon.
from niftynet.
Hi @wyli I'll bother you again.
Now,I try https://cmiclab.cs.ucl.ac.uk/CMIC/NiftyNet/tree/dev/demos/BRATS17 for train not inference.
First, this is my structure:
/home/yyydido/niftynet/
Second,I added the directory /home/yyydido/niftynet/ on the PYTHONPATH of system environment:
export PYTHONPATH=/home/yyydido/niftynet:$PYTHONPATH
Thirdly,net_run at /home/yyydido/niftynet/ like this:
net_run train -c ./extensions/anisotropic_nets_brats_challenge/whole_tumor_sagittal.ini -a brats_seg_app.BRATSApp --name anisotropic_nets.wt_net.WTNet
The last,raise error:
`NiftyNet version 0.2.1
CRITICAL:niftynet: ImportError("No module named 'brats_seg_app'",)
CRITICAL:niftynet: application: Could not import object"BRATSApp" from "brats_seg_app"
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/niftynet/engine/application_factory.py", line 153, in select_module
the_module = importlib.import_module(module_str)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 956, in _find_and_load_unlocked
ImportError: No module named 'brats_seg_app'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/net_run", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/niftynet/init.py", line 52, in main
system_param, input_data_param = user_parameters_parser.run()
File "/usr/local/lib/python3.5/dist-packages/niftynet/utilities/user_parameters_parser.py", line 108, in run
app_module = ApplicationFactory.create(module_name)
File "/usr/local/lib/python3.5/dist-packages/niftynet/engine/application_factory.py", line 197, in create
return select_module(name, cls.type_str, cls.SUPPORTED)
File "/usr/local/lib/python3.5/dist-packages/niftynet/engine/application_factory.py", line 182, in select_module
raise ValueError(err)
ValueError: application: Could not import object"BRATSApp" from "brats_seg_app"
`
Could you help me find the cause of the error? Tanks a lot
Is it need specify the path for "-a extensions.anisotropic_nets_brats_challenge.brats_seg_app.BRATSApp" and for "--name extensions.anisotropic_nets.wt_net.WTNet" ?
from niftynet.
Related Issues (20)
- Expected size of adding custom dataset for classification task on MR dataset?
- Provided indices are out-of-bounds w.r.t. dense side with broadcasted shape. Histogram error? HOT 1
- Using GANs without conditioning
- upgrade to support tensorflow 1.15
- If Niftynet supports Xavier initialization?
- Remove unconnected islands
- Default values for the bias field layer might be too large
- Float comparison in histogram normalisation layer
- Handle SimpleITK's lack of thread safety
- Sections containing `csv_data_file` are not loaded
- AdamW optimizer
- TensorRT frozen graphs - integration with NiftyNet
- Feature: Rewrite NiftyNet to use TensorFlow 2.0 HOT 1
- Using NiftyNet to do segmentation of MRI scans(in .nii extension) to grey matter,white matter and csf
- NiftiNet Roadmap HOT 2
- Niftynet window aggregator function for inferens - explaination needed
- using other DL framework
- How to train a model with one input and multi-output?
- dense-vnet to Monai HOT 1
- Segmentation classes description not available
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from niftynet.