Giter Club home page Giter Club logo

Comments (4)

isalirezag avatar isalirezag commented on June 20, 2024 8

Thanks @yeephycho ,
I realized I had to change line of the code to

with tf.gfile.FastGFile(filename, 'rb') as f:
    image_data = f.read()

and it works now.

from tensorflow_input_image_by_tfrecord.

yeephycho avatar yeephycho commented on June 20, 2024

Hi @isalirezag .
This repo. was created a long time ago, after a few times iteration of tensorflow, I am not sure whether it still can work as months earlier.

I noticed that the last line of the terminal, the program has already write 302 images into tfrecord, so my suggestion is try to validate whether the tfrecord file contains the right images and metadata.

With regards!

from tensorflow_input_image_by_tfrecord.

shreyagurung avatar shreyagurung commented on June 20, 2024

it still doesnt work for me. Still showing the same error please help

from tensorflow_input_image_by_tfrecord.

kiranbeethoju avatar kiranbeethoju commented on June 20, 2024

The best method of reading/accessing that data is by below snippet
pd.read_csv('data.csv', encoding='latin1')
in your case try to add encoding='latin1' that's it

from tensorflow_input_image_by_tfrecord.

Related Issues (11)

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.