QTIM-Lab / DeepNeuro

A deep learning python package for neuroimaging data. Made by:
https://qtim-lab.github.io
MIT License
124 stars 36 forks source link

ValueError: Cannot create group in read only mode #53

Closed agatadefr closed 5 years ago

agatadefr commented 5 years ago

Hello,

I found a new bug.

File loading completed. Traceback (most recent call last): File "/pstore/home/krasona/.local/bin/segment_gbm", line 10, in sys.exit(main()) File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/pipelines/Segment_GBM/cli.py", line 86, in main Segment_GBM_cli() File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/pipelines/shared.py", line 22, in init self.load() File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/pipelines/Segment_GBM/cli.py", line 16, in load super(Segment_GBM_cli, self).load() File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/pipelines/shared.py", line 48, in load getattr(self, args.command)() File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/pipelines/Segment_GBM/cli.py", line 82, in pipeline quiet=args.quiet) File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/pipelines/Segment_GBM/predict.py", line 70, in predict_GBM postprocessors=[BinarizeLabel(postprocessor_string='label')]) File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/models/model.py", line 284, in load_model_with_output model = load_old_model(load(model_name), **kwargs) File "/pstore/home/krasona/.local/lib/python3.6/site-packages/deepneuro/models/model.py", line 260, in load_old_model model = KerasModel(model=load_model(model_file, custom_objects=custom_objects)) File "/pstore/home/krasona/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 419, in load_model model = _deserialize_model(f, custom_objects, compile) File "/pstore/home/krasona/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 221, in _deserialize_model model_config = f['model_config'] File "/pstore/home/krasona/.local/lib/python3.6/site-packages/keras/utils/io_utils.py", line 300, in getitem raise ValueError('Cannot create group in read only mode.') ValueError: Cannot create group in read only mode.

Do you have any idea how I could fix this isssue ?

I would appreciate for any help please.