tensorflow / tpu

Reference models and tools for Cloud TPUs.
https://cloud.google.com/tpu/
Apache License 2.0
5.2k stars 1.77k forks source link

Fashionpedia checkpoint #1012

Closed mdk19015 closed 1 year ago

mdk19015 commented 1 year ago

I downloaded fashionpedia-r101-fpn.tar.gz from https://github.com/tensorflow/tpu/tree/master/models/official/detection/projects/fashionpedia#checkpoint and after unzipping I got these files:

checkpoint model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta

I am not used to tensorflow models but from other persons issues ( #883 ) I found that they are running using model.ckpt file but there is no model.ckpt file after extraction.

I am following this instruction to do inference: https://github.com/tensorflow/tpu/blob/master/models/official/detection/GETTING_STARTED.md#use-checkpoint

I tried to run using all the files from extracted folder but always I find this error: tensorflow.python.framework.errors_impl.DataLossError: 2 root error(s) found. (0) DATA_LOSS: Unable to open table file ~/projects/fashionpedia/fashionpedia-r101-fpn/model.ckpt.data-00000-of-00001: 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}}]] [[save/RestoreV2/_355]] (1) DATA_LOSS: Unable to open table file ~/projects/fashionpedia/fashionpedia-r101-fpn/model.ckpt.data-00000-of-00001: 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}}]] 0 successful operations. 0 derived errors ignored.

Can anyone help me infer fashionpedia correctly?

mdk19015 commented 1 year ago

I could solve the issues. There were some other issues that's why just path-to-model-name/model.ckpt did not work before and I got confused as what was causing the issue.