Giter Club home page Giter Club logo

Comments (6)

 avatar commented on May 20, 2024 1

Thanks for your reply,I am new in DL and thanks for your guide again.

from niftynet.

 avatar commented on May 20, 2024 1

I have solved above problem.

from niftynet.

wyli avatar wyli commented on May 20, 2024

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.

 avatar commented on May 20, 2024

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.

wyli avatar wyli commented on May 20, 2024

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.

 avatar commented on May 20, 2024

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/
tree

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.