Datasets:

Modalities:
Geospatial
ArXiv:
License:
Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Invalid string class label xview2-taco@44e219dc1d88c9d0903d6b478d7f2f3c435e574f
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2474, in __iter__
                  example = _apply_feature_types_on_example(
                      example, self.features, token_per_repo_id=self.token_per_repo_id
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2391, in _apply_feature_types_on_example
                  encoded_example = features.encode_example(example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2192, in encode_example
                  return encode_nested_example(self, example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1472, in encode_nested_example
                  {k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1495, in encode_nested_example
                  return schema.encode_example(obj) if obj is not None else None
                         ~~~~~~~~~~~~~~~~~~~~~^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1168, in encode_example
                  example_data = self.str2int(example_data)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1105, in str2int
                  output = [self._strval2int(value) for value in values]
                            ~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1126, in _strval2int
                  raise ValueError(f"Invalid string class label {value}")
              ValueError: Invalid string class label xview2-taco@44e219dc1d88c9d0903d6b478d7f2f3c435e574f

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.

Image and Signal Processing Group, Universitat de València · ELLIOT

xBD / xView2 - building damage assessment

This is a repackaging, not a new dataset. It is xBD / xView2 - building damage assessment by DIU / CMU SEI, Maxar Open Data (Gupta et al.), converted to TACO. Pixel values and labels are kept as released except where the description below says otherwise. All credit belongs to the original authors: if you use it, please cite them and follow their licence.

original dataset · paper · licence: CC-BY-NC-SA-4.0

Repackaged into TACO by the Image and Signal Processing Group (ISP), Universitat de València, within the ELLIOT project.

Citation

Please cite the original work:

@article{gupta2019xbd,
  title   = {xBD: A Dataset for Assessing Building Damage from Satellite Imagery},
  author  = {Gupta, Ritwik and Hosfelt, Richard and Sajeev, Sandra and Patel, Nirav and Goodman, Bryce and Doshi, Jigar and Heim, Eric and Choset, Howie and Gaston, Matthew},
  journal = {arXiv preprint arXiv:1911.09296},
  year    = {2019}
}

About the data

11034 pre/post-disaster WorldView pairs of 1024x1024 over 19 events, every building outlined and graded on the release's four-level damage scale plus an un-classified grade that is the ignore index. Six hazard types: fire, flooding, wind, earthquake, tsunami and volcano.

11,034 samples · splits: test 1,866 · train 7,467 · validation 1,701 · tasks: instance-segmentation, change-detection

Packaged as TACO v3.

Full description

Targets. Outlines come from the post label, where the grade lives, as flat pixel rings with a per-object vertex count. The release's WGS84 ring is preserved beside them because the PNGs carry no geotransform.

Capture geometry. Kept per sample for both halves -- sensor, GSD, off-nadir angle, sun elevation -- since the two passes differ and that difference is a confound.

Splits.

  • tier-3 is more training data rather than a third split, and is marked release_tier (train 2799, tier3 6369, hold 933, test 933).
  • hold is the challenge holdout, distributed separately by xview2.org and labelled like train and tier3; it and xBD's labelled test archive form this container's test (933 + 933), with the archive name in split_original.
  • val is carved from train + tier3 on whole events.
  • The challenge's unlabelled half is xview2_test.

Scope. xBD's whole named release. The 933 pairs of the anonymised challenge test archive, which carry no disaster and no scene id, are in the held-out half below. PNGs are stored byte-for-byte.

Held-out half

xview2_test.zip holds the 933 samples whose targets the publisher withheld. Same inputs, no target slots: it is there to be predicted on and submitted, and it belongs in no training mixture.

import os
from huggingface_hub import snapshot_download
from taco.ml import Dataset

root = snapshot_download("isp-uv-es/xview2-taco", repo_type="dataset",
                         allow_patterns=["xview2_test.zip", "xview2_test.zip/*", "xview2_test.zip/.tacocat/*"])
ds = Dataset(os.path.join(root, "xview2_test.zip"))

Getting started

git clone --recursive https://github.com/OscarPellicer/taco
pip install -e "taco/python[ml]"     # builds the reader: C++23, CMake, Ninja, pkg-config, libcurl >= 7.83, OpenSSL >= 3

Read it straight from the Hub:

import os
from huggingface_hub import hf_hub_download, snapshot_download
from taco.ml import Dataset, plot_sample

path = hf_hub_download("isp-uv-es/xview2-taco", "xview2.zip", repo_type="dataset")
ds = Dataset(path)
plot_sample(ds[0])

or from a local copy:

ds = Dataset("xview2.zip")
sample = ds[0]                      # {slot name: SlotValue}, arrays decoded
sample["pre"].array.shape

Metadata without decoding anything:

import taco
taco.read("xview2.zip")              # one Arrow table, levels joined

Samples

sample sample sample sample sample

What a sample contains

role slot holds modality detail
input pre raster optical 3 band(s), requantised
input post raster optical 3 band(s), requantised
target buildings polygon
target damage class_sequence 5 classes

Licence

CC-BY-NC-SA-4.0

Terms of use:

Required credits:

  • xBD: Gupta et al. (DIU / CMU SEI)
  • Imagery: Maxar Open Data Program

Providers: DIU / CMU SEI, Maxar Open Data (Gupta et al.)

Acknowledgements

TACO was designed by César Aybar and is specified at https://asterisk.coop/taco/spec/.

Built by Oscar Pellicer within the ELLIOT project at the Image and Signal Processing Group (ISP), Universitat de València.

Downloads last month
62

Paper for isp-uv-es/xview2-taco