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

ResUnet Error. #39

Open
tariketokgoznyc opened this issue May 13, 2022 · 0 comments
Open

ResUnet Error. #39

tariketokgoznyc opened this issue May 13, 2022 · 0 comments

Comments

@tariketokgoznyc
Copy link

Hi Issam, while I run train.py, I encountered that error even though I used ResUnet.epoch_02.hdf5. For that reason, ResUnet.04_0.646.hdf5 isn't exist. Also, this error is runfile('C:/Users/Tarik Enis TOKGOZ/Documents/Python Scripts/Brain Tumor Segmentation/train.py', wdir='C:/Users/Tarik Enis TOKGOZ/Documents/Python Scripts/Brain Tumor Segmentation')
Traceback (most recent call last):

File "C:\Users\Tarik Enis TOKGOZ\anaconda3\lib\site-packages\spyder_kernels\py3compat.py", line 356, in compat_exec
exec(code, globals, locals)

File "c:\users\tarik enis tokgoz\documents\python scripts\brain tumor segmentation\train.py", line 115, in
brain_seg = Training(batch_size=4,nb_epoch=3,load_model_resume_training=model_to_load)

File "c:\users\tarik enis tokgoz\documents\python scripts\brain tumor segmentation\train.py", line 46, in init
self.model =load_model(load_model_resume_training,custom_objects={'gen_dice_loss': gen_dice_loss,'dice_whole_metric':dice_whole_metric,'dice_core_metric':dice_core_metric,'dice_en_metric':dice_en_metric})

File "C:\Users\Tarik Enis TOKGOZ\anaconda3\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None

File "C:\Users\Tarik Enis TOKGOZ\anaconda3\lib\site-packages\keras\saving\hdf5_format.py", line 182, in load_model_from_hdf5
raise ValueError(f'No model config found in the file at {filepath}.')

ValueError: No model config found in the file at <tensorflow.python.platform.gfile.GFile object at 0x0000015800304D00>.

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

1 participant