We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
以上3个文件用netron打开看只有权重,在demo.py中加载后用 predict_model.save("yolov4_2x_all.h5") 报错如下
Traceback (most recent call last): File "demo.py", line 102, in <module> predict_model.save("yolov4_2x_all.h5"); print("###END"); time.sleep(1000) ### error File "/data/zhou.zhou/project_envs/P31_jieqin/lib/python3.6/site-packages/keras/engine/network.py", line 1139, in save save_model(self, filepath, overwrite, include_optimizer) File "/data/zhou.zhou/project_envs/P31_jieqin/lib/python3.6/site-packages/keras/engine/saving.py", line 415, in save_wrapper save_function(obj, filepath, overwrite, *args, **kwargs) File "/data/zhou.zhou/project_envs/P31_jieqin/lib/python3.6/site-packages/keras/engine/saving.py", line 507, in save_model _serialize_model(model, h5dict, include_optimizer) File "/data/zhou.zhou/project_envs/P31_jieqin/lib/python3.6/site-packages/keras/engine/saving.py", line 100, in _serialize_model model_config['config'] = model.get_config() File "/data/zhou.zhou/project_envs/P31_jieqin/lib/python3.6/site-packages/keras/engine/network.py", line 937, in get_config return copy.deepcopy(config) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 215, in _deepcopy_list append(deepcopy(a, memo)) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 220, in _deepcopy_tuple y = [deepcopy(a, memo) for a in x] File "/usr/local/lib/python3.6/copy.py", line 220, in <listcomp> y = [deepcopy(a, memo) for a in x] File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 220, in _deepcopy_tuple y = [deepcopy(a, memo) for a in x] File "/usr/local/lib/python3.6/copy.py", line 220, in <listcomp> y = [deepcopy(a, memo) for a in x] File "/usr/local/lib/python3.6/copy.py", line 180, in deepcopy y = _reconstruct(x, memo, *rv) File "/usr/local/lib/python3.6/copy.py", line 280, in _reconstruct state = deepcopy(state, memo) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python3.6/copy.py", line 180, in deepcopy y = _reconstruct(x, memo, *rv) File "/usr/local/lib/python3.6/copy.py", line 280, in _reconstruct state = deepcopy(state, memo) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python3.6/copy.py", line 180, in deepcopy y = _reconstruct(x, memo, *rv) File "/usr/local/lib/python3.6/copy.py", line 280, in _reconstruct state = deepcopy(state, memo) File "/usr/local/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/local/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python3.6/copy.py", line 169, in deepcopy rv = reductor(4) TypeError: can't pickle _thread.RLock objects
请问下,如何将权重保存为完整的图,谢谢!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
以上3个文件用netron打开看只有权重,在demo.py中加载后用 predict_model.save("yolov4_2x_all.h5") 报错如下
请问下,如何将权重保存为完整的图,谢谢!
The text was updated successfully, but these errors were encountered: