Giter Club home page Giter Club logo

instruct-pix2pix-dataset's Introduction

This repository provides utilities to a minimal dataset for InstructPix2Pix like training for Diffusion models.

Steps

  1. Download the original dataset as discussed here. I used this version: clip-filtered-dataset. Note that the download can take as long as 24 hours depending on the internet bandwidth. The dataset also requires at least 600 GB of storage.

  2. Then run:

    python make_dataset.py --data_root clip-filtered-dataset --num_samples_to_use 1000
  3. The make_dataset.py was specifically designed to obtain a ๐Ÿค— dataset. So, it's the most useful when you push the minimal dataset to the ๐Ÿค— Hub. You can do so by setting push_to_hub while running make_dataset.py.

Example dataset

https://huggingface.co/datasets/sayakpaul/instructpix2pix-1000-samples

image

The full version of the CLIP filtered dataset used for InstructPix2Pix training can be found here: https://huggingface.co/datasets/timbrooks/instructpix2pix-clip-filtered

With the dataset being on the ๐Ÿค— Hub, one can do load the dataset with two lines of code:

from datasets import load_dataset

dataset = load_dataset("timbrooks/instructpix2pix-clip-filtered", split="train")

And voila ๐Ÿค—

Acknowledgements

The structure of make_dataset.py is inspired by Nate Raw's notebook.

instruct-pix2pix-dataset's People

Contributors

sayakpaul avatar

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.