Git Product home page Git Product logo

Comments (5)

jperl avatar jperl commented on June 30, 2024

Relates to #68

from io.

suphoff avatar suphoff commented on June 30, 2024

It looks like the Iterator class even completely disappeared from the r2.0 API documentation.
As such I would concentrate on creating a dynamic modifiable dataset pipeline. This could be a custom dataset op - or a dataset pipeline using TF variables.
For a good example for the later - take a look at the replay buffer implemented in tensorflow/agent:
https://github.com/tensorflow/agents/blob/master/tf_agents/replay_buffers/tf_uniform_replay_buffer.py
https://github.com/tensorflow/agents/blob/master/tf_agents/replay_buffers/table.py

from io.

jperl avatar jperl commented on June 30, 2024

Using variables is a good idea, thank you!

from io.

yongtang avatar yongtang commented on June 30, 2024

@jperl I think it depends on if your data is already in memory (numpy arrays) or not. If the data is already in numpy arrays then I think we could help implement a Dataset to map the numpy arrays into tensors as data continue to feed in. If you have other sources of input (like a file or a stream), we could also help implement a Dataset to take the input directly, not even necessarily to read into numpy array.

Maybe you could share some details or some boilerplate code to show what the data input format is?

from io.

jperl avatar jperl commented on June 30, 2024

The data is paths to images stored on a local filesystem. It is queried from a database, and then in memory as an array of strings. After each training loop we requery the database for the latest paths (and other metadata), and reinitialize the dataset.

I believe we can accomplish this similar to the TFUniformReplayBuffer example from @suphoff, using a Counter, map and variables or a generator to provide the latest numpy arrays.

from io.

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.