You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to execute your code to infer using the latest version of keras = 2.11.0 and tensorflow = 2.11.0 on macos m1. I am getting the below error as :
I0117 21:46:24.816843 8674884224 infer_liver_ideal_multiecho.py:263] loading from trained_models/liver_ideal/20191002_withphase_low_liver_2d_ideal.h5
Traceback (most recent call last):
File "/Volumes/Data/UKB_data_sample/ukbb-mri-sseg-master/public_sseg/infer_liver_ideal_multiecho.py", line 393, in
app.run(main)
File "/opt/homebrew/lib/python3.10/site-packages/absl/app.py", line 308, in run
_run_main(main, args)
File "/opt/homebrew/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
sys.exit(main(argv))
File "/Volumes/Data/UKB_data_sample/ukbb-mri-sseg-master/public_sseg/infer_liver_ideal_multiecho.py", line 264, in main
model = load_model(model_fullpath, custom_objects={'loss_sseg': loss_sseg, 'dice2_loss': dice2_loss})
File "/opt/homebrew/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/opt/homebrew/lib/python3.10/site-packages/keras/utils/generic_utils.py", line 103, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
I am aware that this code is developed on tensorflow 1.14 or 1.15. is there any way around to get the support to run using the latest version of tensorflow or keras. I believe the main problem is to load the pre-trained model itself.
The text was updated successfully, but these errors were encountered:
Hi team,
i am trying to execute your code to infer using the latest version of keras = 2.11.0 and tensorflow = 2.11.0 on macos m1. I am getting the below error as :
I0117 21:46:24.816843 8674884224 infer_liver_ideal_multiecho.py:263] loading from trained_models/liver_ideal/20191002_withphase_low_liver_2d_ideal.h5
Traceback (most recent call last):
File "/Volumes/Data/UKB_data_sample/ukbb-mri-sseg-master/public_sseg/infer_liver_ideal_multiecho.py", line 393, in
app.run(main)
File "/opt/homebrew/lib/python3.10/site-packages/absl/app.py", line 308, in run
_run_main(main, args)
File "/opt/homebrew/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
sys.exit(main(argv))
File "/Volumes/Data/UKB_data_sample/ukbb-mri-sseg-master/public_sseg/infer_liver_ideal_multiecho.py", line 264, in main
model = load_model(model_fullpath, custom_objects={'loss_sseg': loss_sseg, 'dice2_loss': dice2_loss})
File "/opt/homebrew/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/opt/homebrew/lib/python3.10/site-packages/keras/utils/generic_utils.py", line 103, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
I am aware that this code is developed on tensorflow 1.14 or 1.15. is there any way around to get the support to run using the latest version of tensorflow or keras. I believe the main problem is to load the pre-trained model itself.
The text was updated successfully, but these errors were encountered: