Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.18 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.18 KB

Embed Images in 🤗 Dataset

Generates image embeddings for a 🤗 Dataset then uploads it to the 🤗 Hub

Installation

pip install -r requirements.txt

Usage

Import module

from Embed import create_dataset_embeddings

Generates image embeddings and upload to 🤗

  • input_dataset the source dataset
  • out_dataset the name of dataset that will be created and uploaded to
  • token HuggingFace write access token can be created here
create_dataset_embeddings(input_dataset='tonyassi/fashion-decade-images-1',
                          output_dataset='tonyassi/fashion-decade-images-1-embeddings',
                          token='YOUR_TOKEN')
create_dataset_embeddings(input_dataset='tonyassi/fashion-decade-images-1',
                          output_dataset='tonyassi/fashion-decade-images-1-embeddings',
                          token='YOUR_TOKEN',
                          model_ckpt='tonyassi/fashion-clothing-decade')