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

import 이슈 #33

Open
Gominseop opened this issue May 7, 2021 · 0 comments
Open

import 이슈 #33

Gominseop opened this issue May 7, 2021 · 0 comments

Comments

@Gominseop
Copy link

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에 추가하는 설명이 포함되면 좋을 것 같습니다.

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

1 participant