perseus784 / BvS

An Image classifier to identify whether the given image is Batman or Superman using a CNN with high accuracy. (From getting images from google to saving our trained model for reuse.)

Home Page:https://medium.com/@ipaar3/how-i-built-a-convolutional-image-classifier-using-tensorflow-from-scratch-f852c34e1c95

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'str' object has no attribute '_run'

opened this issue · comments

When I call python ./predict.py, I get the following error. any idea?


Traceback (most recent call last):
  File "./predict.py", line 27, in <module>
    saver.restore(session,os.path.join(model_folder))
  File "C:\Users\ALIEN\Anaconda3\lib\site-packages\tensorflow_core\python\training\saver.py"
, line 1290, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "C:\Users\ALIEN\Anaconda3\lib\site-packages\tensorflow_core\python\client\session.py"
, line 955, in run
    result = self._run(None, fetches, feed_dict, options_ptr,
AttributeError: 'str' object has no attribute '_run'