Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while runing image_test.py #64

Open
jezabel-garcia opened this issue Feb 3, 2022 · 1 comment
Open

Error while runing image_test.py #64

jezabel-garcia opened this issue Feb 3, 2022 · 1 comment

Comments

@jezabel-garcia
Copy link

Hi!
I was having a look at the test functions of the datasets module to try to create my own task & dataset, and I get an error while running image_test.py
ValueError: Dataset imagenet2012_16 with split train doesn't appear to be preprocessed? Please run dataset creation.

I have checked the ase.py but it is not clear to me how to run the dataset creation.
Thanks

@lukemetz
Copy link
Contributor

lukemetz commented Feb 4, 2022

Hello!

At the moment, the resized imagenet datasets (such as this dataset -- 16x16 imagenet) needs to be preprocessed.

The script to do this is currently written as a beam pipeline, though it is incomplete as it is missing the runner / job launcher, as well as docs to tell folks what to run it with and how. https://github.com/google/learned_optimization/blob/main/learned_optimization/tasks/datasets/beam/make_resized_image_beam.py

Sorry about this!

For now, I would recommend skipping this test by either commenting it out or using something like skipTest.

I will add to my todo list to auto skip the tests with difficult to generate data such as this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants