The Dataset Viewer has been disabled on this dataset.

ShipCross-ID

This repository distributes the complete dataset as a ZIP archive. Download ShipCross-ID_upload.zip (52.4 MB) and extract it to obtain the ShipCross-ID/ directory. The archive contains 1,153 files, including all images, split tables, manifests, and verification tools. The original image files and split assignments are unchanged.

Archive SHA-256: e92557df264332214565c3841c1695158830535d343ea7c12a589a352d9eda33

ShipCross-ID is a vessel re-identification dataset connecting Sentinel-2 multispectral observations with Gaofen-3 synthetic aperture radar (SAR) crops from FUSAR-Ship. Vessel identities are linked using Maritime Mobile Service Identity (MMSI) identifiers from Automatic Identification System (AIS) records. The dataset is part of the OpenSensor-ReID benchmark.

This package contains the 1,136 images used by the fixed benchmark split, with 228 vessel identities. Images retain their original TIFF bytes, pixel values, dimensions, and channels.

Split note: this snapshot preserves the existing benchmark assignments, including 7 validation and 3 test MS-to-Mixed query files that also appear in the shared gallery. Read DATASET_NOTES.md inside the extracted directory before evaluation.

Contents

The following files and directories are inside the archive.

Split Identities Multispectral images SAR images Image files
Train 163 788 225 1,013
Validation 29 26 26 52
Test 36 39 32 71
Total 228 853 283 1,136

Identities are disjoint across train, validation, and test. Validation/test image totals count the union of selected query and gallery file paths once. Twelve pairs of training SAR files have identical contents and are retained to preserve the original training split. The source collection contains additional crops that are not part of these selected benchmark rows and are not included here.

images/
  multispectral/<mmsi>/<original_filename>.tif
  sar/<mmsi>/<original_filename>.tiff
manifests/
  train.jsonl
  val.jsonl
  test.jsonl
splits/
  train.csv
  val_query.csv
  val_gallery.csv
  test_query.csv
  test_gallery.csv
  fusarS2_benchmark_split_v1.xlsx
metadata/
  query_gallery_overlaps.csv
  training_duplicate_content.csv
dataset_summary.json
DATASET_NOTES.md
SHA256SUMS
scripts/verify_dataset.py

All paths in the public manifests and split tables are relative to the extracted ShipCross-ID/ directory. The images occupy 98,260,551 bytes, approximately 98.3 MB.

Image formats

  • Multispectral: 853 TIFF files, each with 10 channels, 64 pixels in height and 32 in width, stored as unsigned 16-bit integers. The collection uses Sentinel-2 bands B02, B03, B04, B05, B06, B07, B08, B8A, B11, and B12.
  • SAR: 283 TIFF files, each with one unsigned 8-bit channel. There are 248 images of size 512 × 512 and 35 images of size 256 × 256.

Use a multiband TIFF reader such as Rasterio. Multispectral images are not ordinary three-channel RGB images. This package does not normalize, resize, reorder bands, repeat SAR channels, or apply model-specific preprocessing.

Splits and evaluation

The CSV files preserve every row and every non-path field from the training, query, and gallery sheets of fusarS2_benchmark_split_v1.xlsx. manifests/*.jsonl provides one record per unique image; these image manifests do not replace the query/gallery protocol tables.

The provided query modes are:

  • Multispectral->SAR
  • SAR->Multispectral
  • Multispectral->Mixed

Each evaluation split has one shared mixed-modality gallery. There is no SAR->Mixed query set in this version.

Split Query mode Known queries Unknown queries Gallery images
Validation MS→SAR 5 3 36
Validation SAR→MS 5 3 36
Validation MS→Mixed 7 3 36
Test MS→SAR 7 4 42
Test SAR→MS 7 4 42
Test MS→Mixed 10 4 42

The query tables include mode, mmsi, modality, path, bucket, is_open_set, and expected_positive_modalities. is_open_set=1 identifies an unknown query whose MMSI does not occur in that split's shared gallery. Gallery-only distractors remain included. Some unknown queries occur in more than one mode; keep those mode-specific rows when reproducing the protocol. Store MMSI as an identifier, not a continuous numerical feature.

The workbook retains its original seven worksheets. TrainRows, QueryRows, and GalleryRows define the effective benchmark. PlanningMatrix and the crop-count fields in IdentityBuckets describe the larger source inventory. See the notes for the small ancillary-path cleanup made during packaging.

Download and read an image

pip install huggingface_hub rasterio
import json
from pathlib import Path

import rasterio
from huggingface_hub import hf_hub_download
from zipfile import ZipFile

archive = hf_hub_download(
    repo_id="akhosrovyan/ShipCross-ID",
    repo_type="dataset",
    filename="ShipCross-ID_upload.zip",
)
output_dir = Path("shipcross_data")
with ZipFile(archive) as package:
    package.extractall(output_dir)
root = output_dir / "ShipCross-ID"
with (root / "manifests/train.jsonl").open() as f:
    sample = json.loads(next(f))

with rasterio.open(root / sample["path"]) as image:
    pixels = image.read()  # (channels, height, width), original stored values

Read the evaluation assignments separately:

import csv

with (root / "splits/test_query.csv").open(newline="") as f:
    queries = list(csv.DictReader(f))
with (root / "splits/test_gallery.csv").open(newline="") as f:
    gallery = list(csv.DictReader(f))

ms_to_sar_queries = [
    row for row in queries if row["mode"] == "Multispectral->SAR"
]
query_image = root / ms_to_sar_queries[0]["path"]

Image-manifest records are available as JSON Lines in manifests/ after extraction. Each path is relative to the extracted dataset directory. The TIFF files must be downloaded and extracted before reading those paths.

An existing loader that interprets workbook paths relative to the process working directory must run with the dataset root as that working directory, or prepend the dataset root to each path.

Verify the downloaded package

python shipcross_data/ShipCross-ID/scripts/verify_dataset.py shipcross_data/ShipCross-ID

The verifier checks checksums, selected-image counts, identity disjointness, and the agreement between the image manifests and protocol tables. It also reports the documented query/gallery file overlaps.

Source attribution and license

SAR imagery comes from FUSAR-Ship (Gaofen-3). Multispectral imagery comes from Sentinel-2. ShipCross-ID supplies the cross-sensor identity associations and the fixed benchmark assignments.

No dataset license has been specified for this prepared release. A license has therefore not been assigned in the Hugging Face metadata.

Contact

Anna Khosrovyan — anna@yerevann.com

Downloads last month
13