Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'DATA\\data_road/val3.txt' #24

Closed
baidut opened this issue Mar 15, 2017 · 2 comments

Comments

@baidut
Copy link

baidut commented Mar 15, 2017

Run: python evaluate.py to evaluate the pretrained model

2017-03-15 08:05:37,981 INFO Graph loaded succesfully. Starting evaluation.
2017-03-15 08:05:37,981 INFO Output Images will be written to: RUNS\KittiSeg_pretrained\analyse\images/
Traceback (most recent call last):
  File "evaluate.py", line 122, in <module>
    tf.app.run()
  File "D:\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "evaluate.py", line 110, in main
    ana.do_analyze(logdir)
  File "incl\tensorvision\analyze.py", line 94, in do_analyze
    hypes, sess, image_pl, inf_out)
  File "RUNS\KittiSeg_pretrained\model_files\eval.py", line 61, in evaluate
    with open(data_file) as file:
FileNotFoundError: [Errno 2] No such file or directory: 'DATA\\data_road/val3.txt'
@MarvinTeichmann
Copy link
Owner

MarvinTeichmann commented Mar 15, 2017

This is a Windows path error. You can the file missing file val3.txt in the folder data. And the script download_data should have copied val3.txt to the folder $KITTISEG/DATA/data_road/val3.txt (line 133).

Windows path notation (using \ instead of /) properly messed this up at some point. My guess would be, that you are able to fix this, by adjusting the paths in hypes/kittiseg.json to comply with Windows path notation (line 14).

Other then that, I would strongly recommend using Linux for deep learning ;).

@baidut
Copy link
Author

baidut commented Mar 15, 2017

Thank you

For windows users, please copy
$KITTISEG/DATA/val3.txt to $KITTISEG/DATA/data_road/val3.txt
$KITTISEG/DATA/testing.txt to $KITTISEG/DATA/data_road/testing.txt

Now both the demo and evaluate works fine ( Window 10 TensorFlow 1.0 cuda8.0 cudnn v5.1 python3.5)

  • python demo.py --input_image data/demo/demo.png
  • python evaluate.py

@baidut baidut closed this as completed Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants