코딩공부

Tensorflow 사용중 발생했던 error 본문

ML , DL (2019)/졸업작품

Tensorflow 사용중 발생했던 error

초보코더 2019. 8. 30. 22:39
반응형

Python에서 Tensorflow사용중에 다음과 같은 오류가 발생했다.

error image

tensorflow.python.framework.errors_impl.NotFoundError: 경로/train.record; No such file or directory

라는 오류가 계속 발생해서 구글링을 해봐도 해결방안을 찾지 못해서 한동안 씨름하다가 진짜 경로의 문제인가 싶어서 경로를 기존방법과 다르게 적어보았다.

다른 방법이 이것이다.

No-error image

기존에는 input과 output경로를 모두 ~/Tensorflow/workspace/training-real/annotations 이런 방법으로 작성하였는데   ' ~/ ' <<이부분이 문제가 아니였나 싶다. Ubuntu에서는 ~를 home으로 인식하지만 python에서는 인식을 하지 못하는것 같다. 처음부터 ~/가 아니라 /home/ldh/Tensorflow/..... 이런식으로 작성하였으면 오류가 없었을것 같다.

같은 오류가 생기는 사람들도 경로를 다시 절대적인 경로로 작성해보는것을 추천한다.

 

 


English Part:

I got error which says 'tensorflow.python.framework.errors_impl.NotFoundError: /train.record; No such file or directory

At first as you can see in 'error image' picture I typed input and output route as '~/Tensorflow/workspace/training-real/annoations'. I think ' ~/ ' <<<this part was the problem. I think though Ubuntu can recognize ~ as 'home', Python cannot. So if you have same problem with me, try check your input and output routes. Make sure they are "absolute" route like "C:\Tensorflow\workspace\~~~~".

반응형