Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ReadError
Message:      unexpected end of data
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1483, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 609, in wrapped
                  for item in generator(*args, **kwargs):
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 120, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 45, in _get_pipeline_from_tar
                  current_example[field_name] = f.read()
                                                ^^^^^^^^
                File "/usr/local/lib/python3.12/tarfile.py", line 693, in read
                  raise ReadError("unexpected end of data")
              tarfile.ReadError: unexpected end of data
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1342, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 907, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1345, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1523, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

png
image
__key__
string
__url__
string
coco/0000165904_0912244811
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000189454_0869945478
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000117673_0207968874
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000131270_0858834144
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000195314_0926675593
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000168147_0977607035
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000164547_0177846646
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000222471_0624261574
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000207623_0563998215
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000101519_0476764976
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000183434_0281080867
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000143532_0412314861
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000102991_0997749064
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000054872_0005080802
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000054783_0489268942
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000167897_0167160341
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000056602_0650145370
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000206652_0231574542
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000141463_0489661196
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000206156_0595949725
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000116208_0746531152
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000030708_0515470548
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000130417_0480256778
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000121077_0047771193
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000160253_0996807655
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000131241_0326965555
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000079205_0963815429
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000196131_0987988900
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000148698_0503814419
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000043576_0164567981
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000136383_0253985610
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000205218_0228885117
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000195617_0516507764
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000035753_0399114168
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000115382_0584320041
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000143222_0188966099
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000030986_0371476389
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000027358_0042218128
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000038351_0908583571
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000157842_0933622911
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000116842_0393149662
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000146655_0973112876
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000221074_0194335199
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000126472_0044473439
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000223164_0536993955
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000154478_0488491727
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000168877_0904641069
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000066786_0907129485
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000146755_0768106389
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000053371_0142448674
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000073580_0962204676
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000118121_0457248696
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000122852_0799530676
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000073360_0476696090
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000199894_0777030197
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000023615_0941101025
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000098090_0046356204
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000218123_0354859259
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000060841_0484148796
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000204483_0126175618
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000161671_0649987323
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000116895_0634052888
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000127293_0934005674
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000166749_0882999492
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000032361_0392629756
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000118264_0294912842
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000092102_0505693052
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000152725_0523698108
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000189678_0975597595
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000176553_0611749789
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000083319_0333443856
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000087758_0009362852
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000108838_0754205894
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000212156_0623114568
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000190983_0732298176
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000060027_0885093484
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000026641_0683522785
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000020579_0733799600
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000195495_0044473439
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000149361_0466830025
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000108718_0442875770
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000131040_0050745850
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000057870_0126967267
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000041879_0549350079
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000219712_0696936762
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000135802_0693355436
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000152891_0561127177
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000067817_0118970636
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000196965_0384116543
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000178319_0947402840
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000168271_0402399492
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000156035_0216078716
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000091799_0855061932
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000041950_0817090703
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000145488_0817090703
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000037442_0164863105
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000129720_0697538965
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000033648_0833205190
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000070582_0330422007
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
coco/0000146282_0144282779
hf://datasets/wenyii/PrefBench@1795deb0d5d31ab807b8b358e92c0ecbe263173a/coco.tar.part-00000
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

We provide two prompt sources (diffusiondb and coco) and two metadata formats (json and pkl). Image files are stored in the corresponding diffusiondb/ and coco/ folders.

Path Description
coco/ image files (e.g., coco/...png)
diffusiondb/ image files (e.g., diffusiondb/...png)
json/coco.json One JSON object per user (COCO split)
json/diffusiondb.json One JSON object per user (DiffusionDB split)
pkl/coco.pkl PKL grouping used by PrefDisc-style trainers (see below)
pkl/diffusiondb.pkl Same for DiffusionDB

Images

Extract image files with:

cat coco.tar.part-* | tar -xf - -C coco
cat diffusiondb.tar.part-* | tar -xf - -C diffusiondb

JSON

Each JSON file is a list of per-user records.
Each record is a dictionary with the following fields:

  • image_file: path to the target image (training reconstruction target), e.g. coco/0000102215_0000066902.png.
  • text: caption for the target image.
  • negative_img: list of paths to dispreferred reference images.
  • positive_img: list of paths to preferred reference images.
  • prompt_list: list of prompts for the reference images.

For each record, negative_img, positive_img, and prompt_list are index-aligned and have the same length.

Example (abbreviated):

{
  "id": "0",
  "image_file": "diffusiondb/18869_0000001.png",
  "text": "pink, blue, despair personified, artwork",
  "negative_img": ["diffusiondb/18863_0036541.png", "..."],
  "positive_img": ["diffusiondb/18863_0000001.png", "..."],
  "prompt_list": ["...", "..."]
}

PKL

Each PKL file is a dict keyed by user.
Each value is a list that stores one user's reference pairs and attributes.

This PKL format contains the same preference information as JSON: reference pairs (negative_img, positive_img, prompt_list) plus negative_attributes and positive_attributes.

  • For each reference pair: (negative_filename, positive_filename, prompt) (filenames can be joined with coco/ or diffusiondb/ under the dataset root).
  • The last element of the list is [negative_attributes, positive_attributes].

In short, the value format is: [(neg_img1, pos_img1, prompt1), (neg_img2, pos_img2, prompt2), ..., [neg_attr, pos_attr]].

Example:

import pickle

with open("diffusiondb.pkl", "rb") as f:
    data = pickle.load(f)

sample_user = data[3]
print(sample_user)

Output:

[("145191_0004851.png", "145191_0000007.png", "a human chest burster coming out of a xenomorph"), ..., ["Academic Art ...", "Abstract Expressionism ..."]]
Downloads last month
24