Traceback (most recent call last):


 "/home/david/research/keras_bug/save_resave.py", line 45, in <module>

model = load_model('a{}.h5'.format(i))


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 263, in load_model

load_weights_from_hdf5_group(f['model_weights'], model.layers)


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 915, in load_weights_from_hdf5_group

reshape=reshape)


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 556, in preprocess_weights_for_loading

weights = convert_nested_model(weights)


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 544, in convert_nested_model

original_backend=original_backend))


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 556, in preprocess_weights_for_loading

weights = convert_nested_model(weights)


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 532, in convert_nested_model

original_backend=original_backend))


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 674, in preprocess_weights_for_loading

weights[0] = np.transpose(weights[0], (3, 2, 0, 1))


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 575, in transpose

return _wrapfunc(a, 'transpose', axes)


 "/home/david/.virtualenvs/py36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 52, in _wrapfunc

return getattr(obj, method)(*args, **kwds)
ValueError: axes don't match array

Traceback (most recent call last):


 "legacy/train.py", line 184, in <module>

tf.app.run()


 "F:\my_install\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 126, in run

_sys.exit(main(argv))


 "F:\my_install\Anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 250, in new_func

return func(*args, **kwargs)


 "legacy/train.py", line 180, in main

graph_hook_fn=graph_rewriter_fn)


 "D:\tensorflow3\models\research\object_detection\legacy\trainer.py", line 290, in train

clones = model_deploy.create_clones(deploy_config, model_fn, [input_queue])


 "D:\tensorflow3\models\research\slim\deployment\model_deploy.py", line 193, in create_clones

outputs = model_fn(*args, **kwargs)


 "D:\tensorflow3\models\research\object_detection\legacy\trainer.py", line 180, in _create_losses

train_config.use_multiclass_scores)
ValueError: not enough values to unpack (expected 7, got 0)`
