Comments (5)
Hello @christian-steinmeyer !
As HF and TFDS have different naming rules, you will have to adapt the dataset name to follow TFDS' naming: in this case, the correct name would be huggingface:imagenet_1k
As a pointer, you can refer to the from_hf_to_tfds
function under:
We will update our documentation so that this is clearer for users!
from datasets.
That worked, thanks! And yes, an update in the documentation would be very helpful!
from datasets.
@ccl-core Quick follow-up question: Downloading the dataset worked - however, after generating splits, the load
function also includes the step of generating tfrecords (Output "Generating training examples..."), which is pretty slow for me (~20 examples/s). Is there any way to speed this up? I couldn't find anything in the builder config or the download and prepare config. The number of available CPUs doesn't seem to be a factor. For Imagenet-1k, this is taking many hours.
from datasets.
Hi again! I found the tfds_num_proc
argument of the hugginface dataset builder. However, it doesn't seem to be what I'm looking for. Using a number equal to my cpu count or half / quarter times that, there is no progress printed in the generating training examples...
step, only my ram fills up and then at some point it crashes.
tfds.load(
'huggingface:imagenet_1k',
data_dir=IMAGE_DIR,
shuffle_files=True,
builder_kwargs={"tfds_num_proc": N_JOBS}
)
In the meantime, my original try ran through (without builder_kwargs
). However, when I use this in a training run, I get tons of warnings like W tensorflow/core/lib/png/png_io.cc:88] PNG warning: 1CCP: known incorrect profile
or profile 'ICC PRofile': 'RGB ': RGB color space not permitted on grayscale PNG
. Both of which to me seem like a misconfiguration of the dataset somehow. Or is this expected?
from datasets.
@ccl-core Quick follow-up question: Downloading the dataset worked - however, after generating splits, the
load
function also includes the step of generating tfrecords (Output "Generating training examples..."), which is pretty slow for me (~20 examples/s). Is there any way to speed this up? I couldn't find anything in the builder config or the download and prepare config. The number of available CPUs doesn't seem to be a factor. For Imagenet-1k, this is taking many hours.
Same problem here. It runs ~20 examples/s and eventually after a day or so it crashes.
from datasets.
Related Issues (20)
- Load only arabic language in c4/multilingual HOT 1
- [data request] <dataset name> HOT 2
- mnist access fails when loaded with ArrayRecord-based data source HOT 2
- tfds.load() does not load datasets with a capital letter HOT 2
- --num-processes causes build to error HOT 6
- Load Sentiment140 failed with HTTP 404 HOT 1
- Can not load robotics dataset HOT 4
- TFBertModel: InvalidArgumentError.__init__() missing 2 required positional arguments: 'op' and 'message' HOT 1
- Streaming dataset construction or appending to an existing dataset HOT 1
- Please support prefetch with python datasets HOT 2
- gs' not implemented HOT 2
- tfds build failed HOT 2
- need help to build a dataset from local numpy data HOT 4
- [data request] <dataset dengue> HOT 1
- [data request] <dataset educação superior no Brasil> HOT 1
- [data request] smallnorb HOT 2
- Multi-threaded compression? HOT 1
- checksum updated HOT 1
- Exception ignored in: <function AtomicFunction.__del__ at 0x71926a728940> HOT 13
- canot load EMNIST dataset HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasets.