Coder Social home page Coder Social logo

Comments (5)

uricohen avatar uricohen commented on April 28, 2024 1

It seems that tensor2tensor's problem.dataset() has changed and now require the second argument data_dir not to be left empty.

I could solve the problem by changing demogen/data_util.py as follows:

  def input_data():
    """Input function to be returned."""
    prob = problems.problem(problem_name)
    data_dir = '<<<MY_HOME_DIRECTORY>>>/t2t_data/';
    if data == 'image_cifar100':
      dataset = prob.dataset(mode, data_dir, preprocess=augmented)
      if not augmented: dataset = dataset.map(map_func=standardization)
    else:
      dataset = prob.dataset(mode, data_dir)
      dataset = dataset.map(map_func=standardization)

and I have previously downloaded the data into this directory using:

  t2t-datagen --generate_data --data_dir=~/t2t_data --problem=image_cifar100
  t2t-datagen --generate_data --data_dir=~/t2t_data --problem=image_cifar10

from google-research.

uricohen avatar uricohen commented on April 28, 2024

Same for me!

Perhaps this is a setup issue of tensorflow-datasets? I didn't configure it to download CIFAR, etc.

from google-research.

yidingjiang avatar yidingjiang commented on April 28, 2024

Thank you for working this out. I am working on potentially easier way to get the dataset for external users.

from google-research.

uricohen avatar uricohen commented on April 28, 2024

Thanks, @yidinggiang! But are you sure the data split into training/validation/test set is determenistic?
That is, that the CIFAR10/100 training set I got is the same as the one used to train the models?

from google-research.

yidingjiang avatar yidingjiang commented on April 28, 2024

CIFAR10 and 100 have fixed training and test sets, so I don't see any problems. (There have been some changes to the data pipeline, please pull to get them)

from google-research.

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.