squeezeDet icon indicating copy to clipboard operation
squeezeDet copied to clipboard

Unsuccesful TensorSliceReader

Open jibola1997 opened this issue 6 years ago • 1 comments

The code brings up this error

InvalidArgumentError: Unsuccessful TensorSliceReader constructor: Failed to get matching files on ./data/model_checkpoints/squeezedet/model.cpkt-87000: Not Found: ./data/model_checkpoints/squeeeDet

I can see the model in the model_checkpoints directory .

jibola1997 avatar Apr 14 '18 21:04 jibola1997

The code brings up this error

InvalidArgumentError: Unsuccessful TensorSliceReader constructor: Failed to get matching files on ./data/model_checkpoints/squeezedet/model.cpkt-87000: Not Found: ./data/model_checkpoints/squeeeDet

I can see the model in the model_checkpoints directory .

This is because of you have two data folder.one of them is beside demo.py and another one is in parent directory.and you need that one.so change demo.py to this:

tf.app.flags.DEFINE_string( 'checkpoint', '../data/model_checkpoints/squeezeDet/model.ckpt-87000', """Path to the model parameter file.""") tf.app.flags.DEFINE_string( 'input_path', '../data/sample.png', """Input image or video to be detected. Can process glob input such as """ """./data/00000*.png.""")

kiad4631 avatar Sep 05 '19 08:09 kiad4631