You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object_detection 디렉토리의 py파일에서의 import 이슈가 있습니다. from object_detection import trainer
와 같이 같은 위치의 파일도 모두 상위 디렉토리를 기준으로 path가 되어 있습니다.
이에 따로 상위 디렉토리의 path를 지정해주지 않으면 import error가 발생하게 됩니다. sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
와 같이 sys.path에 추가하며 문제를 해결하거나 PYTHONPATH에 추가하는 설명이 포함되면 좋을 것 같습니다.
The text was updated successfully, but these errors were encountered:
object_detection 디렉토리의 py파일에서의 import 이슈가 있습니다.
from object_detection import trainer
와 같이 같은 위치의 파일도 모두 상위 디렉토리를 기준으로 path가 되어 있습니다.
이에 따로 상위 디렉토리의 path를 지정해주지 않으면 import error가 발생하게 됩니다.
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
와 같이 sys.path에 추가하며 문제를 해결하거나 PYTHONPATH에 추가하는 설명이 포함되면 좋을 것 같습니다.
The text was updated successfully, but these errors were encountered: