Coder Social home page Coder Social logo

Comments (5)

aaronbauman avatar aaronbauman commented on June 5, 2024

I had to do this:

ln -s models models-master
python generate_tfrecord.py -folder="data/" -train_ratio=.70

from ourcamera.

nriesco avatar nriesco commented on June 5, 2024

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.

nriesco avatar nriesco commented on June 5, 2024

@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.

aaronbauman avatar aaronbauman commented on June 5, 2024

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.

Bellspringsteen avatar Bellspringsteen commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.