Skip to content
New issue

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

Error loading pretrained weigths #20

Open
EnricoBeltramo opened this issue Jun 11, 2019 · 4 comments
Open

Error loading pretrained weigths #20

EnricoBeltramo opened this issue Jun 11, 2019 · 4 comments

Comments

@EnricoBeltramo
Copy link

I have follow error when I try to load pretrained networks in inference.py:

DataLossError (see above for traceback): Unable to open table file D:\Progetti\Tensorflow\GAN\WSHP\parsing_network\models\final_model\checkpoint: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
[[node save/RestoreV2 (defined at D:\Progetti\Tensorflow\GAN\WSHP\parsing_network\inference.py:109) ]]
[[node save/RestoreV2 (defined at D:\Progetti\Tensorflow\GAN\WSHP\parsing_network\inference.py:109) ]]

@Fang-Haoshu
Copy link
Member

Maybe the tensorflow version is not correct?

@EnricoBeltramo
Copy link
Author

I'm using tensorflow gpu 1.13 on Windows 10. Should be a problem? What is the reference version?

@Fang-Haoshu
Copy link
Member

we use tf 1.1.0 on linux

@brunomsantiago
Copy link

brunomsantiago commented Mar 29, 2020

A little bit late, but I was having the same issue (Python 2.7, tensorflow 1.1.0). Found the answer on stack overflow by user Anggi Permana Harianja.
Use:
models/final_model/model.ckpt-19315
instead of:
models/final_model/model.ckpt-19315.data-00000-of-00001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants