ValueError: You are trying to load a weight file containing 5 layers into a model with 7 layers.
NoahCSHN opened this issue · 0 comments
Traceback (most recent call last):
File "e:\1_code\python\tf2-yolo3\detect.py", line 79, in
app.run(main)
File "D:\Anaconda3\envs\AI\lib\site-packages\absl\app.py", line 303, in run
_run_main(main, args)
File "D:\Anaconda3\envs\AI\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "e:\1_code\python\tf2-yolo3\detect.py", line 46, in main
yolo.load_weights(FLAGS.weights)
File "D:\Anaconda3\envs\AI\lib\site-packages\tensorflow\python\keras\engine\training.py", line 2234, in load_weights
hdf5_format.load_weights_from_hdf5_group(f, self.layers)
File "D:\Anaconda3\envs\AI\lib\site-packages\tensorflow\python\keras\saving\hdf5_format.py", line 685, in load_weights_from_hdf5_group
raise ValueError('You are trying to load a weight file '
ValueError: You are trying to load a weight file containing 5 layers into a model with 7 layers.