DRLwithTL icon indicating copy to clipboard operation
DRLwithTL copied to clipboard

Error loading imagenet.npy

Open sean2102 opened this issue 4 years ago • 0 comments

Hi, First of all I'd like to say thank you for posting the Medium post+this repository. I had searched ages for some good simulation environments! Secondly, you should add a row or two about the "phase" parameter in the config file - "train" or "infer". I used training but I didnt really know what to do with inferring.

Now, my error. I placed the imagenet weight file in models/ as you wrote. I keep getting this error:

raise type(e)(node_def, op, message) tensorflow.python.framework.error_impl.DataLossError: Unable to open table file models/imagenet.npy: 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 C:\Users\seanl\anaconda3\envs\myenv\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]

screenshot on imgur: https://imgur.com/a/Dj8d7v3

It persists several times in my console output, and redirects me to agent.py line 54 self.saver = tf.train.Saver

I tried to use imagenet.npy and other pretrained AlexNet weight file I found online, but without luck.

Any clue to why this is happening?

sean2102 avatar Apr 01 '20 11:04 sean2102