5taku / tensorflow_object_detection_helper_tool Goto Github PK
View Code? Open in Web Editor NEWtensorflow object detection api helper tool ( custom object detection )
tensorflow object detection api helper tool ( custom object detection )
실행 환경 : Docker, Ubuntu 16.04.5 LTS , Tensorflow = 1.8.0, Python = 3.5.2
tf_generate.py 실행시
File "tfgenerator.py", line 203, in
main()
File "tfgenerator.py", line 177, in main
train, validate = xml_to_csv(logger, args)
File "tfgenerator.py", line 97, in xml_to_csv
summary = (category_dict[xml_list[i][0][3]], xml_list[i][0][3],len(tmptrain),len(tmpvalidate))
IndexError: list index out of range
와 같은 오류가 나오는데 해결 방법을 알고 싶습니다. ㅠ
Hi, I want to correct minor errata.
In preparation from README.md isnt it correct to change as below.
git clone https://github.com/tensorflow/models
--> git clone https://github.com/tensorflow/models.git
Thanks.
tensorflow 1에서는 잘 작동되지만, tensorflow.contrib
이 tensorflow 2에서 사라지면서 tensorflow 2에서는 작동되지 않습니다.
capability에 추가하면 좋을 것 같습니다.
또한 tensorflow/models를 git에서 받아서 사용하는데, tensorflow/models가 업데이트되면서 tensorflow.contrib.slim
은 tf-slim 패키지를 사용하게 바뀌었습니다. 이에 따라 설치할 패키지 목록에 tf-slim이 포함되야 합니다.
이런 패키지 목록은 requirement.txt
를 통해서 관리하면 좋을 것 같습니다.
when I tried to section 2. Re-training Automation Tool
I got error like below :
Traceback (most recent call last):
File "object_detection/train.py", line 47, in
import tensorflow as tf
ImportError: No module named tensorflow
My docker environment : Ubuntu 16.04.05 LTS , TF - 1.18.0 , Python - 3.5.2
Could you let me know why this happened ?
models/research/slim의 deployment와 net을 사용하지만 이 path를 지정하는 부분이 없어 import error가 발생합니다.
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에 추가하는 설명이 포함되면 좋을 것 같습니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.