Giter Club home page Giter Club logo

Comments (3)

martham93 avatar martham93 commented on June 22, 2024 3

Right now code to convert data.npz is in the ffda-poi repo. I can work on making a public example (once I've made more progress on other ffda-poi work) and link to label-maker's documentation, to move forward with option 1 presented above.

A few things to note:

  • Converting a ~1.8GB data.npz file takes about 3.5 hours to run. The corresponding .tfrecords file will be ~1GB.

  • kudos to @wronk for figuring out that the image array needs to be converted to a tensor, then run through tf.image.encode_png function to reduce the size before converting to a tfrecord without this step the data size is huge!

cc @Geoyi

from label-maker.

martham93 avatar martham93 commented on June 22, 2024 1

the implementation I'm currently working on does require tensorflow2, and tensorflow2 has some conflicts with label-maker's requirements.txt, would it be okay if to upgrade these to work with tf2 or do we want to avoid having tensorflow as a dependency?

Happy to approach this a different way, if people have thoughts of something else to try.

cc @Geoyi @wronk @drewbo

from label-maker.

wronk avatar wronk commented on June 22, 2024 1

@martham93, thinking more about this, I'm not sure we want to add TF as a dependency. I think the options are:

  1. Code this functionality up separately and link to a public example in label-maker's documentation. However, don't explicitly support it in this codebase.
  2. Include the code in label-maker, make requirements updates (maybe in a separate PR), and make the TF functionality optional. We can do this by only importing TF imports within your data->TFRecord file and only include tf with the requirements-dev.txt file.

Feel free to continue coding this separately and we can drop in the functionality later depending on what we decide to do.

@drewbo, @Geoyi

from label-maker.

Related Issues (20)

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.