Dataset Viewer
Full Screen
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ValueError
Message:      Not able to read records in the JSON file at hf://datasets/rizavelioglu/fashionfail@1f0578ad57cbc5e75d93e2a7774a43fb07ee0b3b/ff_train.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['info', 'licenses', 'categories', 'images', 'annotations']. Select the correct one and provide it as `field='XXX'` to the dataset loading method. 
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 240, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2216, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1239, in _head
                  return _examples_to_batch(list(self.take(n)))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1389, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1044, in __iter__
                  yield from islice(self.ex_iterable, self.n)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 282, in __iter__
                  for key, pa_table in self.generate_tables_fn(**self.kwargs):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 170, in _generate_tables
                  raise ValueError(
              ValueError: Not able to read records in the JSON file at hf://datasets/rizavelioglu/fashionfail@1f0578ad57cbc5e75d93e2a7774a43fb07ee0b3b/ff_train.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['info', 'licenses', 'categories', 'images', 'annotations']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.

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.

FashionFail Dataset

The FashionFail dataset, proposed in the paper "FashionFail: Addressing Failure Cases in Fashion Object Detection and Segmentation", (also check the project page) comprises 2,495 high-resolution images (2400x2400 pixels) of products found on e-commerce websites. The dataset is divided into training, validation, and test sets, consisting of 1,344, 150, and 1,001 images, respectively.

Note: The annotations are automatically generated by foundation models. However, a human annotator reviewed each sample to ensure the accuracy of the annotations.

Download Dataset

To address concerns regarding data regulations, we share only the URLs of the images, rather than sharing the image files directly. However, we provide a simple script to facilitate dataset construction. The script initially retrieves annotation files from HuggingFace Datasets, then proceeds to download images using the URLs provided in those annotation files.

First, install the repository with:

git clone https://github.com/rizavelioglu/fashionfail.git
cd fashionfail
pip install -e .

Then, execute the following script:

python src/fashionfail/data/make_dataset.py

which constructs the dataset inside "~/.cache/fashionfail/". An optional argument --save_dir can be set to construct the dataset in the preferred directory.

Annotation format

We follow the annotation format of the COCO dataset. The annotations are stored in the JSON format and are organized as follows:

{
 "info"           : info,         # dict: keys are shown below
 "licenses"       : [license],    # List[dict]: keys are shown below
 "categories"     : [category],   # List[dict]: keys are shown below
 "images"         : [image],      # List[dict]: keys are shown below
 "annotations"    : [annotation], # List[dict]: keys are shown below
}

info{
  "year"          : int,
  "version"       : str,
  "description"   : str,
  "contributor"   : str,
  "url"           : str,
  "date_created"  : datetime,
}

license{
  "id"            : int,
  "name"          : str,
  "url"           : str,
}

category{
  "id"            : int,
  "name"          : str,
  "supercategory" : str,
}

image{
  "id"            : int,
  "file_name"     : str,
  "height"        : int,
  "width"         : int,
  "license"       : int,
  "original_url"  : str,
}

annotation{
  "id"            : int,
  "image_id"      : int,
  "category_id"   : int,
  "area"          : int,
  "iscrowd"       : int,         # always 0 as instances represent a single object
  "bbox"          : list[float], # [x,y,width,height]
  "segmentation"  : str,         # compressed RLE: {"size", (height, widht), "counts": str}
}

License

TL;DR: Not available for commercial use, unless the FULL source code is shared!
This project is intended solely for academic research. No commercial benefits are derived from it. All images and brands are the property of their respective owners: © adidas 2023. Annotations are licensed under Server Side Public License (SSPL)

Citation

@inproceedings{velioglu2024fashionfail,
  author    = {Velioglu, Riza and Chan, Robin and Hammer, Barbara},
  title     = {FashionFail: Addressing Failure Cases in Fashion Object Detection and Segmentation},
  journal   = {IJCNN},
  eprint    = {2404.08582},
  year      = {2024},
}
Downloads last month
46

Models trained or fine-tuned on rizavelioglu/fashionfail