Comments (5)
I had to do this:
ln -s models models-master
python generate_tfrecord.py -folder="data/" -train_ratio=.70
from ourcamera.
Thanks!
Now it does seem to run but I get another error, like another issue #6
(tensorflow3) NicoPro:OurCamera nriesco$ python generate_tfrecord.py -folder="data/" -train_ratio=.70
Running on data/ with ratio 0.7
Traceback (most recent call last):
File "generate_tfrecord.py", line 132, in <module>
tf.app.run()
File "/Users/nriesco/tensorflow3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "generate_tfrecord.py", line 124, in main
tf_example = create_tf_example_from_jpg_xml(images_path+filename+'.jpg', labels_path+filename+'.xml')
File "generate_tfrecord.py", line 82, in create_tf_example_from_jpg_xml
'image/filename': dataset_util.bytes_feature(jpg_file),
File "./models-master/research/object_detection/utils/dataset_util.py", line 30, in bytes_feature
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
TypeError: 'data/images/2017-12-27 00:19:55.544815.jpg' has type str, but expected one of: bytes
(tensorflow3) NicoPro:OurCamera nriesco$
from ourcamera.
@aaronbauman I had issues with files containing spaces in OSX before when running via scripts and I removed every image but one and rename it to 1.jpg
(same with label) and no error was thrown.
So is related to filenames containing spaces, at least on OSX
from ourcamera.
hmm, i am on OSX 10.12 and didn't have that issue with filenames.
what version of OSX and python are you running?
I'm finally up and running
from ourcamera.
I have tried on 10.13 and 10.12 and I dont get these issues with filenames. What versions are you running?
from ourcamera.
Related Issues (10)
- "raise ValueError('First step cannot be zero.')" in the training stage HOT 3
- Can't use pre-trained data frozen_inference_graph.pbsegmentaa, ab, ac and ad HOT 3
- No bounding boxes HOT 6
- Hello, sincerely thank you for sharing, I have the following error when running generate_tfrecord.py, can you help me solve this problem?
- Solving traffic with AI
- Colons in /data/labels XML files prevents them from being checked out on Windows and Mac HOT 2
- Undefined name 'csv_file' in analyzeimages.py
- Some questions HOT 3
- question about training HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ourcamera.