Datasets:

ArXiv:
imagenet.int8 / README.md
cloneofsimo's picture
Upload folder using huggingface_hub
fbba2c2 verified
|
raw
history blame
No virus
2.21 kB

Imagenet.int8: Entire Imagenet dataset in 5GB.

Find 138 GB of imagenet dataset too bulky? Did you know entire imagenet actually just fits inside the ram of apple watch?

  • Center-croped, resized to 256x256
  • VAE compressed with SDXL's VAE
  • Further quantized to int8 near-lossless manner, compressing the entire training dataset of 1,281,167 images down to just 5GB!

Introducing Imagenet.int8, the new MNIST of 2024. After the great popularity of the Latent Diffusion era (Thank you stable diffusion!), its almost the standard to use VAE version of the imagenet for diffusion-model training. As you might know, lot of great diffusion research is based on latent variation of the imagenet.

These include:

... but so little material online on the actual preprocessed dataset. I'm here to fix that. One thing I noticed was that latent doesn't have to be full precision! Indeed, they can be as small as int-8, and it won't hurt! Here are some of the examples:

small small small

| original, reconstructed from float16, reconstructed from uint8*

So clearly, it doesn't make sense to download entire Imagenet and do VAE everytime. Just download this, to('cuda') the entire dataset just to flex, and call it a day.😌

(BTW If you think you'll need higher precision, you can always further fine-tune your model on higher precision. But I doubt that.)