Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run ur modules for the BRATS dataset #1

Open
poornasandur opened this issue Sep 11, 2017 · 14 comments
Open

How to run ur modules for the BRATS dataset #1

poornasandur opened this issue Sep 11, 2017 · 14 comments

Comments

@poornasandur
Copy link

Hi Sara,
I would like to know the directory structure for the BRATS dataset .. I mean how do you actually run it .Please suggest some pointers on this.

@poornasandur
Copy link
Author

I meant how did you arrange the 4 modalities for all the patients in this folder which you have mentioned in the config2.json file

/home/sara/Science/databases/BRATS

Please suggest some pointers on this.

@Sara04
Copy link
Owner

Sara04 commented Sep 11, 2017 via email

@poornasandur
Copy link
Author

Hi Sara,
Actually I am glad to say that I am learning a lot from your code thanks a lot for making it online, I tried to run it for my BRATS dataset locally on my system, but failed to understand the exact directory structure from which the 4 MRI modalites of each patient are read.

@Bonsen
Copy link

Bonsen commented Nov 20, 2017

@poornasandur @Sara04 It seems that the download of 17th data is closed now, could u share the url?

@poornasandur
Copy link
Author

poornasandur commented Nov 20, 2017 via email

@Bonsen
Copy link

Bonsen commented Nov 20, 2017

@poornasandur ....OK
thanks

@TigabuYaya
Copy link

Hi Sara, thank you so much for making your codes available freely. When I run the code, unfortunately, I came across with this error. so, please can you help me?
Traceback (most recent call last):
File "train.py", line 7, in
from create_modules_objects import create_modules_objects_from_config
File "/content/drive/My Drive/BRATSmaster/python/create_modules_objects.py", line 14, in
import modules.segmentators
File "/content/drive/My Drive/BRATSmaster/python/modules/segmentators/init.py", line 2, in
from .cnn1 import CnnBRATS1
ImportError: No module named cnn1

@Sara04
Copy link
Owner

Sara04 commented Oct 30, 2018

Hi Tigabu,

Thank you for the information.
Yes, it was an error.
Actually, I didn't push CnnBRATS1 model, so I've removed its import from init file.

Best,
Sara

@TigabuYaya
Copy link

TigabuYaya commented Oct 30, 2018 via email

@Sara04
Copy link
Owner

Sara04 commented Nov 14, 2018

Hi Tigabu,

No, they should not. In the configuration file you should put corresponding child class names, as they contain definitions of the methods that are only declared in the mother class.

Best,

Sara

@Mamoona81
Copy link

Mamoona81 commented Feb 13, 2019

@poornasandur @Sara04 Hi ,I m new to medical images and neural network.
Here my some Queries.
1.how to did you opened the mha file?is there any simple way to load it ?
2.Where to paste this command
''python train.py -config config2.json -o output-directory-path''
3.How to run when I don't have GPU in my System.
My configuration:
Python 3.7 anaconda ,Pytorch

@poornasandur
Copy link
Author

poornasandur commented Feb 19, 2019 via email

@Sara04
Copy link
Owner

Sara04 commented Feb 19, 2019

Hi,

  1. I think you can also use python library medpy to load mha files.
  2. This command should be run from the directory where train.py script is.
  3. You can run it without GPU by using tensorflow CPU only version.
    You cannot use pytorch with this code, because the model is created and trained with tensorflow.
    In the readme file I provided python and all library versions which I used in the project.

Best,

Sara

@TigabuYaya
Copy link

TigabuYaya commented Apr 5, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@Sara04 @Bonsen @poornasandur @TigabuYaya @Mamoona81 and others