Home > Back-end >  No such file or directory: 'Tensorflow/workspace/annotations\\label_map.pbtxt on Jupyter why
No such file or directory: 'Tensorflow/workspace/annotations\\label_map.pbtxt on Jupyter why

Time:10-22

I'm following this video my code on Jupyter.

TUTORIAL CODE - 21:06 - CREATE MAP FILE

tutorial code on jupyter.

As you can see from the next screenshot below, my path should be all correct I don't understand why the "label map" file is not creating?

No label map file was created

I have also tried putting the slash in different ways for the file path like this / and this \.

CodePudding user response:

It seems the path exemplified by this tutorial was made in a Linux environment, while you are operating that Jupyter Notebook in Windows. Check how to open files in Windows with Python.

CodePudding user response:

Looks like you have redundant slash \\. Just remove one slash.

Use absolute path with drive letter, e.g. r'C:\Users\NaziModerator\Tensorflow\workspace\annotations\label_map.pbtxt'.

Do not mix \ and /.

Don't forget about r'' before string.

print(path) to be sure.

  • Related