Dataset Viewer
Auto-converted to Parquet Duplicate
embedding
large_stringlengths
6.18k
8.32k
url
large_stringlengths
20
3.67k
id
large_stringlengths
32
32
[ 0.4526065 1.3128128 0.14706424 0.96879524 0.02227358 0.08377342 -0.386787 0.28163338 -0.04160604 -0.82135063 -0.66869795 -0.12484097 -0.29164064 0.03333831 -0.08202054 -0.2898907 -0.5665953 -0.28004935 -0.01895961 -0.24160177 -0.5915545 -0.5784421 -0.36585838 -0.03087378 0.20412904 0.7756176 0....
https://s3.amazonaws.com…265/original.jpg
000000429e95f36fc2b329378b44d0b9
[ 6.40983880e-01 -1.23282599e+00 -6.12566710e-01 3.84508103e-01 4.70723867e-01 2.20286906e-01 1.18086785e-02 2.74399102e-01 -5.14840484e-01 -5.83449066e-01 7.81237602e-01 2.27396727e-01 -3.94040734e-01 -6.15685582e-02 8.91519189e-02 -8.06040764e-02 -1.41995859e+00 -7.07261711e-02 -1.43407553e-01 2.54557312...
https://blog-imgs-60-ori…azo/beryl01s.png
000001009066d404ab141f667e16fc92
[ 1.29123479e-01 -9.34011459e-01 3.49225283e-01 9.95500758e-02 2.10529596e-01 2.72703469e-01 -1.21787675e-01 -1.09919935e-01 2.70748496e-01 -2.66618401e-01 2.37287670e-01 -3.54524672e-01 4.36312675e-01 9.33541656e-02 2.84742415e-02 -9.65216458e-02 -4.37504053e-03 3.53966534e-01 1.21244200e-01 -5.12613654...
https://www.switchhits.c…ver-plates-b.jpg
00000114a50b6df0d83e5f5ea6150b59
[ 2.49623060e-01 1.83226630e-01 -7.29505002e-01 6.47090256e-01 -2.16110155e-01 -1.58712566e-02 -1.98818445e-01 -1.09963961e-01 4.20804441e-01 -2.49042958e-01 2.09515855e-01 1.25550255e-01 2.51216739e-02 -3.43274236e-01 4.69597310e-01 4.02111471e-01 -7.41246462e-01 3.81609917e-01 -2.09140718e-01 -2.27616847...
https://cdn1.yumping.it/…e%20Watching.jpg
000001a1e4656479f445c6f746d9e086
[-2.95864969e-01 -1.53783607e+00 -1.42341852e-01 5.54377854e-01 5.20971790e-02 -2.15683520e-01 -3.40264857e-01 -5.28653145e-01 -2.14514464e-01 5.52575290e-02 -7.31757581e-02 -6.68656707e-01 -3.68326604e-01 -4.80132550e-02 -3.98324370e-01 -2.25560606e-01 -7.55280375e-01 -1.18544333e-01 -7.35127479e-02 1.55112594...
https://d3mv25xx38w2jn.c…hcfdr23wht_1.jpg
0000033ccf8e0d4adb04197564ee7509
[-1.75897151e-01 -1.23964417e+00 -6.08977079e-01 -4.67117369e-01 9.24715400e-02 -9.79173928e-03 -2.90119112e-01 5.02109408e-01 -4.52466816e-01 -5.82154095e-01 2.83547282e-01 1.52902901e-01 -4.73336987e-02 -2.03438252e-02 -2.91680813e-01 -2.91754305e-01 5.79952598e-02 -2.99447849e-02 -5.01909375e-01 6.21962368...
https://image.made-in-ch…ding-Equipme.jpg
0000044ab97e38bd76be67d76e798eb4
[-4.34165835e-01 -1.20576751e+00 -1.08185485e-01 3.98902744e-01 -4.13585454e-03 -7.94221282e-01 -4.29827571e-02 2.86014795e-01 2.54058897e-01 1.13411009e+00 4.05386597e-01 -1.77670792e-01 -3.85327488e-02 1.55543774e-01 4.30406034e-01 -5.53470701e-02 -8.06636512e-01 1.41420126e-01 3.30114931e-01 -4.27408695...
https://i.etsystatic.com…ru.jpg?version=0
0000057985c4ffd839fc6cf821af7295
[-4.80082661e-01 -1.62770081e+00 1.32185614e+00 -6.72106445e-01 1.09322727e-01 -1.66740462e-01 3.26530814e-01 -2.49673426e-01 -5.61857820e-02 -6.96310699e-01 1.55034587e-01 -2.17572004e-01 1.40260905e-03 5.91530144e-01 -5.57867944e-01 4.28570956e-01 9.25121456e-02 -5.54473698e-02 -1.81394771e-01 -2.60524154...
https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQaOskf8VrpP-WXU30UQTNEO9c5vE2BByPJe9oyJPBxBSHbMH4K7Icik41kFpEbZD643HLqNre6Zg
0000072dba2416acc11629bef8043edc
[ 3.43618393e-01 -2.60808372e+00 5.32259941e-01 -1.11080527e-01 5.36551714e-01 -4.30897534e-01 -4.46335346e-01 6.86293915e-02 3.74670029e-01 -4.34606791e-01 -8.72616172e-01 3.90067816e-01 1.07478864e-01 -1.20734408e-01 5.05238891e-01 2.43354157e-01 -1.04512560e+00 6.21504188e-02 -1.54572368e-01 4.54805762...
https://cms-i.autodaily.…-manh-thu-15.jpg
000007bcf386fd1af1204e999e621a7d
[-2.46021941e-01 -8.23050141e-01 -8.30116451e-01 1.08715773e+00 4.82269049e-01 -2.40445688e-01 2.83370584e-01 2.40757927e-01 6.71791807e-02 1.25702500e-01 2.70771384e-01 2.80238450e-01 -2.34886110e-01 -1.25462189e-01 -5.78941226e-01 -2.35142410e-01 -1.77489519e-02 -3.08617562e-01 2.85016775e-01 -7.00712204...
https://www.thejenetwork…evad-750x375.jpg
00000bf5ccdfc96f3c6a308a61e524df
[-9.69574749e-02 -1.61155963e+00 1.04193270e+00 1.28630996e-01 -1.04604661e-01 -4.70596403e-01 1.33652836e-02 7.71914124e-02 4.02246565e-02 1.67646140e-01 -3.14713597e-01 7.38245130e-01 -5.08619435e-02 5.12740314e-02 4.88439769e-01 1.73251629e-02 -8.00962567e-01 4.32200730e-01 -6.30705178e-01 3.75174165...
https://a.rootsandrain.c…l/dsc_2055_p.jpg
00000c915481cc36ba5d587e7e9a9b3a
[-1.15888432e-01 7.48105824e-01 -2.80024141e-01 8.37452292e-01 5.81298709e-01 3.69111359e-01 -3.18066001e-01 4.45600063e-01 8.71667787e-02 6.99302971e-01 -2.84166932e-02 1.28664911e-01 6.25395030e-03 -7.44695425e-01 4.11333829e-01 -2.74264157e-01 -4.22316670e-01 -3.77193660e-01 6.07072949e-01 1.13681801...
https://picsum.photos/800/610
00000dd9c375c88cbe9f40ed4dcfe0bf
[-7.80248195e-02 -1.02957082e+00 2.76218057e-02 4.51909304e-02 7.38635361e-02 1.91887483e-01 5.56350276e-02 1.08903900e-01 4.50246871e-01 5.52202880e-01 -3.51433158e-01 2.10964411e-01 -4.05887693e-01 -3.28196585e-02 2.64597178e-01 1.16418570e-01 -6.09674379e-02 -3.25715184e-01 2.57560939e-01 -3.14996839...
https://naehfrosch.de/wp…e-naehen-016.jpg
00001627d7b6f699ed0fcf231f55c37e
[ 3.33021164e-01 -1.41311812e+00 -5.16923308e-01 1.35005403e+00 2.86270142e-01 2.26513967e-02 4.33383226e-01 7.14321375e-01 3.40813100e-01 6.26718462e-01 -2.32091993e-01 -1.86663672e-01 1.62077174e-02 -7.64158726e-01 5.95066324e-02 -2.33108580e-01 -1.90119481e+00 7.76157379e-01 -4.73596722e-01 2.42888898...
https://cdn.hispantv.com…/14130694_xl.jpg
000016c9bf62e97f8e9a451144eafc92
[ 2.46103585e-01 -3.57266021e+00 -1.12505347e-01 -3.62398118e-01 -6.49850219e-02 -3.23963910e-03 -1.24428928e-01 -4.70992357e-01 2.97729582e-01 3.29376400e-01 -3.72231603e-01 -8.79831538e-02 2.84409709e-02 2.39068761e-01 2.89494306e-01 -3.50625038e-01 -7.41582572e-01 -5.97860098e-01 -4.92053479e-01 2.79250860...
http://cdn-9.motorsport.com/static/img/mgl/1000000/1090000/1094000/1094400/1094419/s2_1.jpg
0000186a2b3f9194208c1faed25d9759
[ 3.49381417e-02 -4.70989943e-01 -1.66864693e-02 6.30236566e-02 -6.01283967e-01 -2.13255137e-01 4.74640757e-01 3.76094759e-01 -8.74493793e-02 1.66718102e+00 2.21549451e-01 1.27480328e-01 1.25854686e-02 1.43962219e-01 1.41155049e-01 2.17003733e-01 -8.52656245e-01 -4.41942960e-01 1.36606783e-01 7.98310399...
https://bitbucket.org/account/bruno/avatar/256/?ts=1500363019
0000188df3fc4146dd9dbfc0184ab487
[-3.93627286e-02 -6.41843200e-01 1.54304349e+00 4.88912106e-01 2.59227157e-01 7.46991336e-02 -8.75777602e-02 -7.60552734e-02 3.12439561e-01 1.03660226e+00 -1.17996983e-01 -2.73899913e-01 -3.85060012e-02 1.16813928e-02 4.67311025e-01 -1.56552121e-02 -1.38557121e-01 -3.32573920e-01 -4.04742241e-01 3.89026761...
https://www.servantesduc…FC6-400x250.jpeg
000018ac5044383416086fa9bbb606da
[ 5.77639937e-02 -2.66088748e+00 6.50474191e-01 3.69796574e-01 1.26074016e-01 -2.80537009e-01 2.02492774e-01 -1.55569121e-01 2.81666517e-02 6.72662020e-01 2.85079926e-01 2.18148991e-01 -5.41035980e-02 -8.94747302e-02 3.38167071e-01 4.63597715e-01 -1.53221047e+00 1.52821720e-01 -1.99582204e-01 1.78916723...
http://prostosad.kz/media//cache/images/1/image/257x257/602f0fa2c1f0d1ba5e241f914e856ff9/catalog/product/0/ec0b9864816e0da29efa6e343e60f8c75.jpeg
00001c2253930f898a432dfbeaf90f95
[ 1.41701534e-01 -1.51876581e+00 3.23328972e-01 8.61280411e-03 -3.06714848e-02 3.96660119e-01 -1.56649038e-01 2.41314888e-01 8.74975622e-01 3.21208894e-01 -1.24094188e-01 -1.73227102e-01 -5.13028026e-01 -7.39619583e-02 6.48254454e-01 6.83774129e-02 8.49096328e-02 1.52205899e-02 -4.30522203e-01 1.61916271...
https://books.google.com/books/content/images/frontcover/6t8DAAAAMBAJ?fife=w200-h370
00001fd978d543929cbc5b7234ac25fe
[ 2.34460473e-01 -1.05974644e-01 9.75682139e-01 7.68204212e-01 -5.40048182e-01 1.79504171e-01 -8.94912779e-02 -2.36090630e-01 4.48988378e-01 -4.82649505e-02 -2.83975661e-01 2.23258585e-01 -6.35658801e-02 -2.93401688e-01 -8.47248137e-02 4.49857593e-01 -4.68193650e-01 -4.86752391e-02 -2.04986125e-01 1.04758382...
https://josocsantboi.fil….jpg?w=300&h=204
00002444607929f1dc074e6950404ded
[ 5.00126958e-01 -1.08928418e+00 1.77897677e-01 3.43209505e-01 1.08043522e-01 -2.33814031e-01 -4.96942431e-01 -5.65962613e-01 2.12564051e-01 -7.20776618e-04 -5.74997365e-02 1.84194744e-01 5.15968204e-01 3.50528657e-01 4.36007112e-01 -4.72087055e-01 -6.33223295e-01 -3.74296010e-01 -4.77870524e-01 5.50559312...
https://secure.syndetics.com/index.aspx?isbn=9780071428644/MC.GIF&client=oshawapl&type=xw12&oclc=
0000263ec35e5130869f9533b952399a
[ 3.21250260e-01 -1.47838247e+00 -1.16099544e-01 1.95331797e-01 -1.27276294e-02 -3.50732416e-01 2.90896058e-01 -1.72247887e-01 3.01026225e-01 2.16421604e-01 -5.67972898e-01 3.68241012e-01 -2.27461517e-01 3.60208809e-01 9.97641534e-02 2.53711998e-01 -7.16059804e-01 3.76294374e-01 -1.59353942e-01 2.39948422...
https://cdn01.zipify.com…1106T132530.jpeg
000026e593dfb9fd1694771b3c90a07a
[ 4.00360942e-01 7.18550444e-01 3.67755294e-01 -3.78848672e-01 -2.37483561e-01 1.35332793e-01 5.70463762e-02 -1.04162782e-01 -1.32968239e-02 -1.47858962e-01 2.84622222e-01 -1.46614671e-01 2.59508878e-01 -1.34955600e-01 -5.76950848e-01 2.87461400e-01 8.36954117e-02 -1.66103706e-01 -1.08606040e+00 -1.67506218...
https://paint.dn.ua/imag…6080-182x143.jpg
0000288aaff9c5b8c785dec6c1a53b47
End of preview. Expand in Data Studio

Production-ready data processing made easy and shareable
Explore the Fondant docs » Discord

Dataset Card for fondant-ai/datacomp-small-clip

This is a dataset containing image urls and their CLIP embeddings, based on the datacomp_small dataset, and processed with fondant.

Dataset Details

Dataset Description

Large (image) datasets are often unwieldy to use due to their sheer size. Assume for instance that we would like to extract all the cat images from such a dataset. We would have to look at every image to classify if it's a cat image or not. And if we want to extract all the dog images next, we again need to look at every image.

Instead, we can look at every image once, and calculate a (CLIP) embedding representing its content. Combining these embeddings into an index, we can efficiently search through the dataset with a query, finding specific images, without having to look at each one.

CLIP index

This is what LAION did for their LAION-5b dataset, which made it possible to use, like we did in our ControlNet example. Unfortunately, the LAION-5b dataset and index have been taken offline (temporarily) and there aren't any alternatives. This is why we built an index for the Datacomp-12M dataset. While it is a lot smaller than LAION-5b, it should already enable a lot of use cases again, and can hopefully be the start towards building indices for more and larger datasets.

  • License: cc-by-4.0

Dataset Sources

Uses

We provide an example use case which uses the FAISS index of this dataset to create a dataset of interior design images, used for the fine-tuning of a ControlNet model:

Dataset Structure

The data repository is structured as follows:

  • data/: The dataset containing ids, urls, and CLIP embeddings
  • faiss: The faiss index
  • id_mapping/: The mapping of the faiss ids to the original urls

Dataset Creation

We leveraged Fondant to generate the CLIP index and published the pipeline as a git repository. The pipeline consists of 4 steps:

  • A load_from_hf_hub operation that loads the datacomp_small dataset from huggingface into the Fondant workspace and format.
  • A download_images operation which downloads the actual images from the urls in the dataset.
  • A embed_images operation which embeds the downloaded images using a CLIP model.
  • A write_to_file operation which writes the original urls and generated embeddings to the chosen destination.

After running the pipeline, we used autofaiss to build the CLIP index.

Execution details

Download images

We downloaded the images with 32 cores in parallel, each opening up to 25 concurrent connections, and achieved a success rate of 72%, resulting in 9.251.172 images.

The downloading was executed on a VM on GCP using the Fondant Docker runner. We originally planned to run this on Vertex AI, but moved to a VM when noticing lower network bandwidth on Vertex.

The success rate can probably be further improved by setting up a faster DNS resolver.

Embed images

We leveraged the laion/CLIP-ViT-B-32-laion2B-s34B-b79K CLIP model. We chose this model because of a couple of reasons. It is popular, which makes it easy to use with existing embeddings, it is small, which makes it cheap to run, and it is an open model trained on open data.

We appreciate any feedback on our choice of model, so we can take this into account if we generate indices for larger datasets in the future.

The embedding was executed on 4 T4 GPUs on Google Cloud using our Vertex AI runner, with a batch size of 32. The execution took 8:15 hours.

Terms and Conditions

Under no circumstances can Fondant be held liable by a third party for (i) the accuracy or correctness of the content, (ii) an alleged infringement of intellectual property rights or (iii) any other alleged claim, action, injunction or suit resulting from the publication or use of the dataset.

Dataset Card Contact

Downloads last month
226

Data Sourcing report

powered
by Spawning.ai

Some elements in this dataset have been identified as opted-out, or opted-in, by their creator.

Opted-out
Opted-in