Nkap23 / TensorFlow_with_Colab_tutorial

TensorFlow 2 Object Detection API with Google Colab!
MIT License
15 stars 23 forks source link

In step 20 i got an error like: FileNotFoundError: [Errno 2] No such file or directory: '/content/img1.jpg' #3

Closed ondereser closed 3 years ago

ondereser commented 3 years ago

I get an error like in the picture. What should i do? Ekran Alıntısı

Nkap23 commented 3 years ago

Hello! Check for the path of the image you uploaded! Most likely there is no image present at '/content/img1.jpg' (according to the error message)

ondereser commented 3 years ago

I fixed the problem, but then i got a NameError: name 'detect_fn' is not defined, in step 20.

Nkap23 commented 3 years ago

'detect_fn' is used in step 17 to load the saved model and build the detection function

# Load saved model and build the detection function detect_fn=tf.saved_model.load(PATH_TO_SAVED_MODEL)

Try running steps 17-20 again!

ondereser commented 3 years ago

'detect_fn' is used in step 17 to load the saved model and build the detection function

Load saved model and build the detection function

detect_fn=tf.saved_model.load(PATH_TO_SAVED_MODEL)

Try running steps 17-20 again!

Thank you, for your help and great tutorial! 👍