question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No training configuration found in save file: the model was *not* compiled.

See original GitHub issue

Thank you for the great work! But I got some problem.

I download the resnet50_coco pretrain model form here and loading it as prediction_model. but I get the problem as:

No training configuration found in save file

Although it said that is a safe warning, but I cant load the pretrain model with problem: IndexError: list index out of range. And I find that if I print print('step2',classification.shape) that will call twice of the filter_detections and the classification will get strange shape when it was called twice:

step1 (?, 80) step2 (?, 80) /home/XXX/workspace/tensorflow/lib/python3.5/site-packages/keras/models.py:255: UserWarning: No training configuration found in save file: the model was not compiled. Compile it manually. warnings.warn('No training configuration found in save file: ’ step1 (300,) step2 (300,) … File “/home/XXX/.local/lib/python3.5/site-packages/keras_retinanet/layers/filter_detections.py”, line 45, in filter_detections for c in range(int(classification.shape[1])): File “/home/XXX/workspace/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/tensor_shape.py”, line 521, in getitem return self._dims[key] IndexError: list index out of range

When I conver this pretrain model, this problem raise again. All of those problem will absent when I use a csv train model.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hgaisercommented, Aug 1, 2018

Did this fix your issue? If so, please close this issue.

0reactions
yelanyelancommented, Feb 15, 2019

Please use --weight to load the pretrain model instead of --snapshot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UserWarning: No training configuration found in save file
Problem indicates that the model was not compiled, however, I did it. optimizer = Adam(lr=lr, clipnorm=0.001) train_model.compile(loss= ...
Read more >
"No training configuration found in the save file" #660 - GitHub
The WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually. warnings can ...
Read more >
No training configuration found in save file: the model ... - Reddit
No training configuration found in save file: the model was *not* compiled. Compile it manually. How to I specifically suppress this error?
Read more >
No training configuration found in save file: the model was ...
Problem indicates that the model was not compiled, however, I did it. optimizer = Adam(lr=lr, clipnorm=0.001) train_model.compile(loss=dummy_loss, optimizer= ...
Read more >
KNIME Extensions
py:282: UserWarning: No training configuration found in save file: the model was not compiled. Compile it manually. ERROR Keras Network Learner ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found