ML-BoneSuppression icon indicating copy to clipboard operation
ML-BoneSuppression copied to clipboard

Error while running the pretrained model

Open SodaCoder opened this issue 4 years ago • 1 comments

I am running the command: python3 test.py --model ./model/model.index --config ./config/train.cfg --input test.png --output output2.png

I am getting the following errors:

  1. File "/home/iplab/BoneSuppression/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1451, in _call_tf_sessionrun return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict, tensorflow.python.framework.errors_impl.NotFoundError: Tensor name "Variable" not found in checkpoint files ./model/model.index [[{{node save/RestoreV2}}]]
  2. Traceback (most recent call last): File "/home/iplab/BoneSuppression/lib/python3.8/site-packages/tensorflow/python/training/py_checkpoint_reader.py", line 69, in get_tensor return CheckpointReader.CheckpointReader_GetTensor( RuntimeError: _CHECKPOINTABLE_OBJECT_GRAPH not found in checkpoint file

Is there any solution to this issue?

Thanks & Regards, Sourav Das

SodaCoder avatar Feb 08 '21 11:02 SodaCoder

Could you kindly create a new pre-trained model with the latest version of the packages?

SodaCoder avatar Mar 07 '21 15:03 SodaCoder