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 spacenet4-taco@a09cb9e2faecaba8ba4db3170fd623c4042cbc9b
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 spacenet4-taco@a09cb9e2faecaba8ba4db3170fd623c4042cbc9b

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

SpaceNet 4 Off-Nadir Buildings

This is a repackaging, not a new dataset. It is SpaceNet 4 Off-Nadir Buildings by SpaceNet LLC / Maxar / CosmiQ Works, 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-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:

@inproceedings{weir2019spacenet,
  title     = {SpaceNet MVOI: A Multi-View Overhead Imagery Dataset},
  author    = {Weir, Nicholas and Lindenbaum, David and Bastidas, Alexei and Van Etten, Adam and McPherson, Sean and Shermeyer, Jacob and Kumar, Varun and Tang, Hanlin},
  booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
  pages     = {992--1001},
  year      = {2019},
  doi       = {10.1109/ICCV.2019.00108}
}

About the data

1064 ground tiles over Atlanta, each imaged by WorldView-2 at five look angles: 7 deg, 19 deg, 29 deg, 42 deg, 53 deg off nadir, spanning SpaceNet's nadir, off-nadir and very-off-nadir bands. The ground truth is one shared set of building footprints per tile, as both a mask and polygons.

1,064 samples · splits: test 213 · train 609 · validation 242 · tasks: semantic-segmentation, instance-segmentation

Packaged as TACO v3.

Full description

Layout. All five collects are orthorectified onto the same 900x900 grid at 0.5 m, so a tile is one sample holding ten rasters: the 8-band 2 m multispectral cube and the 0.5 m panchromatic band per angle. Viewing geometry is the only thing that varies across them.

Products. The released pan-sharpened products are dropped as a fusion of those two.

Empty tiles. 45 tiles carry no buildings, cross-checked against the release's own summaryData CSVs because their GeoJSON files are zero bytes rather than empty collections.

Splits. The challenge test imagery ships without labels, so there is no official split to keep. The split here is geographic, by easting: 609 train, 242 val, 213 test.

Held-out half

spacenet4_test.zip holds the 906 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/spacenet4-taco", repo_type="dataset",
                         allow_patterns=["spacenet4_test.zip", "spacenet4_test.zip/*", "spacenet4_test.zip/.tacocat/*"])
ds = Dataset(os.path.join(root, "spacenet4_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/spacenet4-taco", "spacenet4.zip", repo_type="dataset")
ds = Dataset(path)
plot_sample(ds[0])

or from a local copy:

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

Metadata without decoding anything:

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

Samples

sample sample sample sample sample

What a sample contains

role slot holds modality detail
input pan_nadir07 raster optical 1 band(s), digital_number
input ms_nadir07 raster multispectral 8 band(s), digital_number
input pan_nadir19 raster optical 1 band(s), digital_number
input ms_nadir19 raster multispectral 8 band(s), digital_number
input pan_nadir29 raster optical 1 band(s), digital_number
input ms_nadir29 raster multispectral 8 band(s), digital_number
input pan_nadir42 raster optical 1 band(s), digital_number
input ms_nadir42 raster multispectral 8 band(s), digital_number
input pan_nadir53 raster optical 1 band(s), digital_number
input ms_nadir53 raster multispectral 8 band(s), digital_number
target buildings mask label_raster 2 classes
target footprints polygon unit m

Licence

CC-BY-SA-4.0

Terms of use:

  • Adapted material must be shared under CC-BY-SA-4.0.

Required credits:

  • The SpaceNet Dataset by SpaceNet Partners is licensed under CC-BY-SA-4.0
  • Imagery: Maxar WorldView-2

Providers: SpaceNet LLC / Maxar / CosmiQ Works

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
56