The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: UnicodeDecodeError
Message: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/csv/csv.py", line 196, in _generate_tables
csv_file_reader = pd.read_csv(file, iterator=True, dtype=dtype, **self.config.pd_read_csv_kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/streaming.py", line 73, in wrapper
return function(*args, download_config=download_config, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1279, in xpandas_read_csv
return pd.read_csv(xopen(filepath_or_buffer, "rb", download_config=download_config), **kwargs)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1026, in read_csv
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 620, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1620, in __init__
self._engine = self._make_engine(f, self.engine)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1898, in _make_engine
return mapping[engine](f, **self.options)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 93, in __init__
self._reader = parsers.TextReader(src, **kwds)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "pandas/_libs/parsers.pyx", line 574, in pandas._libs.parsers.TextReader.__cinit__
File "pandas/_libs/parsers.pyx", line 663, in pandas._libs.parsers.TextReader._get_header
File "pandas/_libs/parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
File "pandas/_libs/parsers.pyx", line 2053, in pandas._libs.parsers.raise_parser_error
File "<frozen codecs>", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
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 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
filename string | class string | bbox string |
|---|---|---|
img086351.jpg | smart_1 | [311, 183, 415, 657] |
img083734.jpg | smart_1 | [352, 361, 716, 479] |
img081317.jpg | smart_1 | [16, 163, 785, 905] |
img089140.jpg | smart_1 | [427, 188, 573, 499] |
img082379.jpg | smart_1 | [462, 152, 605, 1024] |
img089707.jpg | smart_1 | [308, 590, 779, 666] |
img080704.jpg | smart_1 | [0, 328, 1024, 549] |
img088364.jpg | smart_1 | [554, 400, 770, 647] |
img089629.jpg | smart_1 | [693, 192, 802, 466] |
img088990.jpg | smart_1 | [289, 661, 639, 735] |
img087083.jpg | smart_1 | [184, 588, 495, 657] |
img080647.jpg | smart_1 | [0, 351, 1024, 791] |
img089951.jpg | smart_1 | [485, 63, 651, 676] |
img084706.jpg | smart_1 | [413, 285, 685, 699] |
img086719.jpg | smart_1 | [376, 394, 708, 597] |
img080260.jpg | smart_1 | [749, 364, 1024, 1024] |
img084546.jpg | smart_1 | [347, 345, 866, 846] |
img084187.jpg | smart_1 | [305, 245, 659, 883] |
img081165.jpg | smart_1 | [352, 0, 629, 1024] |
img083103.jpg | smart_1 | [85, 255, 1024, 426] |
img084943.jpg | smart_1 | [285, 386, 839, 600] |
img080483.jpg | smart_1 | [0, 549, 1024, 974] |
img081117.jpg | smart_1 | [0, 305, 760, 871] |
img080652.jpg | smart_1 | [0, 150, 1024, 724] |
img086670.jpg | smart_1 | [513, 451, 601, 865] |
img089438.jpg | smart_1 | [655, 644, 805, 1024] |
img089674.jpg | smart_1 | [378, 626, 463, 773] |
img084173.jpg | smart_1 | [304, 80, 649, 682] |
img088513.jpg | smart_1 | [325, 307, 581, 426] |
img081727.jpg | smart_1 | [190, 272, 964, 950] |
img088960.jpg | smart_1 | [354, 379, 615, 472] |
img089286.jpg | smart_1 | [276, 576, 441, 874] |
img085016.jpg | smart_1 | [171, 411, 712, 681] |
img089526.jpg | smart_1 | [307, 539, 575, 601] |
img083851.jpg | smart_1 | [419, 225, 533, 705] |
img089439.jpg | smart_1 | [475, 481, 701, 684] |
img081726.jpg | smart_1 | [0, 607, 876, 837] |
img089910.jpg | smart_1 | [542, 298, 604, 514] |
img089753.jpg | smart_1 | [80, 191, 580, 436] |
img089402.jpg | smart_1 | [255, 427, 444, 729] |
img086680.jpg | smart_1 | [216, 687, 418, 787] |
img082277.jpg | smart_1 | [288, 325, 842, 1024] |
img080100.jpg | smart_1 | [0, 352, 1024, 880] |
img089326.jpg | smart_1 | [509, 534, 597, 1024] |
img084238.jpg | smart_1 | [338, 632, 991, 721] |
img089186.jpg | smart_1 | [103, 721, 558, 856] |
img084738.jpg | smart_1 | [394, 390, 887, 807] |
img087874.jpg | smart_1 | [574, 400, 653, 554] |
img089824.jpg | smart_1 | [369, 236, 983, 302] |
img083607.jpg | smart_1 | [207, 407, 692, 820] |
img082943.jpg | smart_1 | [198, 9, 606, 989] |
img088671.jpg | smart_1 | [470, 382, 671, 682] |
img083496.jpg | smart_1 | [484, 348, 618, 627] |
img080242.jpg | smart_1 | [132, 0, 474, 1024] |
img085482.jpg | smart_1 | [532, 365, 596, 628] |
img085824.jpg | smart_1 | [401, 492, 571, 830] |
img088521.jpg | smart_1 | [636, 329, 793, 440] |
img088643.jpg | smart_1 | [367, 549, 503, 864] |
img086992.jpg | smart_1 | [368, 536, 610, 847] |
img088735.jpg | smart_1 | [123, 564, 445, 793] |
img085905.jpg | smart_1 | [405, 408, 760, 770] |
img086486.jpg | smart_1 | [108, 283, 476, 663] |
img086737.jpg | smart_1 | [394, 404, 776, 593] |
img087596.jpg | smart_1 | [500, 361, 721, 711] |
img088365.jpg | smart_1 | [182, 533, 410, 869] |
img084467.jpg | smart_1 | [21, 357, 951, 530] |
img087173.jpg | smart_1 | [498, 230, 536, 511] |
img087901.jpg | smart_1 | [537, 432, 815, 580] |
img085220.jpg | smart_1 | [339, 309, 417, 618] |
img082376.jpg | smart_1 | [246, 549, 447, 703] |
img080788.jpg | smart_1 | [0, 0, 1024, 897] |
img084531.jpg | smart_1 | [582, 98, 710, 820] |
img086117.jpg | smart_1 | [445, 412, 783, 484] |
img088662.jpg | smart_1 | [367, 525, 753, 612] |
img082116.jpg | smart_1 | [256, 217, 1024, 717] |
img087500.jpg | smart_1 | [479, 390, 607, 744] |
img084104.jpg | smart_1 | [405, 296, 836, 1024] |
img085370.jpg | smart_1 | [376, 421, 493, 531] |
img080273.jpg | smart_1 | [271, 0, 693, 917] |
img086988.jpg | smart_1 | [517, 253, 590, 610] |
img087785.jpg | smart_1 | [443, 322, 505, 403] |
img081844.jpg | smart_1 | [0, 387, 769, 1024] |
img083679.jpg | smart_1 | [320, 294, 956, 628] |
img080013.jpg | smart_1 | [45, 53, 1024, 1024] |
img081753.jpg | smart_1 | [488, 0, 932, 1024] |
img084221.jpg | smart_1 | [479, 0, 564, 766] |
img089957.jpg | smart_1 | [289, 239, 653, 516] |
img082051.jpg | smart_1 | [144, 0, 1024, 747] |
img080395.jpg | smart_1 | [0, 314, 1024, 742] |
img089809.jpg | smart_1 | [369, 217, 752, 360] |
img082772.jpg | smart_1 | [510, 0, 948, 1024] |
img080139.jpg | smart_1 | [375, 0, 664, 1024] |
img086939.jpg | smart_1 | [671, 174, 745, 490] |
img081638.jpg | smart_1 | [0, 371, 1024, 1024] |
img085742.jpg | smart_1 | [224, 522, 613, 671] |
img082891.jpg | smart_1 | [336, 143, 666, 748] |
img085834.jpg | smart_1 | [489, 514, 853, 726] |
img086294.jpg | smart_1 | [448, 686, 953, 767] |
img082120.jpg | smart_1 | [0, 443, 1024, 851] |
img080816.jpg | smart_1 | [0, 479, 1024, 915] |
SPARK 2022 — Stream 1 (Spacecraft Detection)
Stream 1 of the SPARK 2022 dataset (SPAcecraft Recognition leveraging Knowledge of the space environment): space-borne imagery of 10 spacecraft plus a debris class, for object detection and classification. Each image contains exactly one target annotated with a single bounding box and class label.
Dataset summary
| Images | 110,000 JPEG, 1024 × 1024, RGB |
| Annotations | 1 bounding box + class per image |
| Classes | 11 (10 spacecraft + debris) |
| Splits | train 66,000 · val 22,000 · test 22,000 |
| Class balance | fully balanced (6,000 / 2,000 / 2,000 per class per split) |
Dataset structure
├── labels/
│ ├── train.csv
│ ├── val.csv
│ └── test.csv
├── train/ # 66,000 .jpg images
├── val/ # 22,000 .jpg images
├── test/ # 22,000 .jpg images
└── visualize_labels.py
Label format
Each CSV has the header filename,class,bbox:
filename,class,bbox
img057676.jpg,lisa_pathfinder,"[633, 120, 789, 279]"
- filename matches the image file in the corresponding split folder.
- bbox is
[xmin, ymin, xmax, ymax]in absolute pixel coordinates, with the origin at the top-left corner of the image (x = column, y = row). - class is the class name; see the index mapping below.
Classes
| Class | Name | Index |
|---|---|---|
| Proba 2 | proba_2 |
0 |
| Cheops | cheops |
1 |
| Debris | debris |
2 |
| Double star | double_star |
3 |
| Earth Observation Sat 1 | earth_observation_sat_1 |
4 |
| Lisa Pathfinder | lisa_pathfinder |
5 |
| Proba 3 CSC | proba_3_csc |
6 |
| Proba 3 OCS | proba_3_ocs |
7 |
| Smart 1 | smart_1 |
8 |
| Soho | soho |
9 |
| Xmm Newton | xmm_newton |
10 |
Usage
import ast
from pathlib import Path
import pandas as pd
from PIL import Image
CLASS_TO_INDEX = {
"proba_2": 0, "cheops": 1, "debris": 2, "double_star": 3,
"earth_observation_sat_1": 4, "lisa_pathfinder": 5, "proba_3_csc": 6,
"proba_3_ocs": 7, "smart_1": 8, "soho": 9, "xmm_newton": 10,
}
root = Path(".")
split = "train"
df = pd.read_csv(root / "labels" / f"{split}.csv")
df["bbox"] = df["bbox"].apply(ast.literal_eval) # [xmin, ymin, xmax, ymax]
df["label"] = df["class"].map(CLASS_TO_INDEX)
row = df.iloc[0]
image = Image.open(root / split / row["filename"])
xmin, ymin, xmax, ymax = row["bbox"]
For a PyTorch object-detection pipeline (e.g. torchvision), targets follow
directly since the boxes are already in xyxy format:
import torch
target = {
"boxes": torch.tensor([row["bbox"]], dtype=torch.float32), # (1, 4) xyxy
"labels": torch.tensor([row["label"]], dtype=torch.int64),
}
Visual inspection
The bundled script plots random or specific samples with their boxes drawn:
python3 visualize_labels.py val --num 6 --seed 42
python3 visualize_labels.py train --class debris
python3 visualize_labels.py test --filenames img057676.jpg
Dataset origin
The SPARK dataset was created by the CVI² group at SnT, University of Luxembourg, for the SPARK challenge on spacecraft detection and recognition.
Citation
If you use this dataset, please use the citation below:
@dataset{rathinam_2022,
author = {Rathinam, Arunkumar and
Gaudilliere, Vincent and
Mohamed Ali, Mohamed Adel and
Ortiz Del Castillo, Miguel and
Pauly, Leo and
Aouada, Djamila},
title = {SPARK 2022 Dataset : Spacecraft Detection and
Trajectory Estimation},
month = jun,
year = 2022,
publisher = {Zenodo},
doi = {10.5281/zenodo.6599762},
url = {https://doi.org/10.5281/zenodo.6599762},
}
- Downloads last month
- -