Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
image
imagewidth (px)
268
1.6k
mask
imagewidth (px)
268
1.6k
End of preview. Expand in Data Studio

NC4K

The NC4K camouflaged-object test set — 4121 images with binary masks, as one test split, which is how the benchmark is published and scored.

from datasets import load_dataset

ds = load_dataset("nobg/NC4K", split="test")   # 4121 rows
ds[0]["image"]   # PIL, original resolution
ds[0]["mask"]    # PIL, the binary mask

Why this mirror exists

NC4K is the largest camouflaged-object test set and is published test-only: every paper that reports it reports it over all 4121 images. The upstream mirror PassbyGrocer/NC4K had split it 2884 / 618 / 619 into train / validation / test — a partition invented by the mirror, not present in the benchmark. Scoring its test split yields a number over 619 images that no published result is comparable to, while looking like a valid NC4K score.

This mirror concatenates the three back into one test split and drops the invented boundary. Image and mask bytes are bit-identical to the source (verified by SHA-256 on all 4121 rows of both columns, in order — nothing is decoded or re-encoded); gt is renamed to mask for uniformity with the other nobg sets, and the per-object instance column is dropped.

The source also ships a fourth, single-row valid-00000-of-00001.parquet that its own dataset config does not reference. It is not a 4122th image: the row is a 352×352 resize — the standard COD training resolution — whereas all 4121 real rows are at original resolution across 1 878 distinct sizes, none of them 352×352. It is a preprocessing artifact and is excluded.

Licensing

No license is declared — not by NC4K's authors and not by the upstream mirror. It is left unset here rather than guessed; check with the original authors before any use beyond research. Same posture as nobg/COD10K.

Evaluation protocol

The tasks score the test split (all 4121 images).

Each task ID in eval.yaml is one leaderboard and takes a single number computed over the whole split. Predictions are grayscale maps resized to the ground-truth (GT) resolution and min-max normalized to [0, 1]; GT is binarized at 128. All values are in [0, 1], typically reported with 3 decimals. Reference implementation: PySODMetrics (Smeasure, WeightedFmeasure, Fmeasure, Emeasure, MAE) with default arguments. Note that its beta argument is beta^2: Fmeasure defaults to 0.3 and WeightedFmeasure to 1.

Task ID Metric and definition Better
test_s_measure S-measure (Fan et al. ICCV 2017), alpha = 0.5, averaged over images higher
test_weighted_f Weighted F-measure (Margolin et al. CVPR 2014), beta^2 = 1, averaged over images higher
test_mean_f Mean F-measure, beta^2 = 0.3: F at 256 thresholds (0 to 255) per image, averaged over images, then averaged over thresholds higher
test_mean_e Mean E-measure (Fan et al. IJCAI 2018): E at 256 thresholds per image, averaged over images, then averaged over thresholds higher
test_mae MAE between the normalized prediction and the binary GT, per image, averaged over images lower

The NC4K paper (Lv et al. CVPR 2021) reported S-measure, mean F, mean E-measure and MAE, without weighted F. The five-metric set above follows ZoomNet, FSPNet and BiRefNet.

Example entry for a model repo's .eval_results/<name>.yaml (the value is illustrative):

- dataset:
    id: nobg/NC4K
    task_id: test_s_measure
  value: 0.850

Citation

@inproceedings{lv2021simultaneously,
  title={Simultaneously Localize, Segment and Rank the Camouflaged Objects},
  author={Lv, Yunqiu and Zhang, Jing and Dai, Yuchao and Li, Aixuan and Liu, Bowen and Barnes, Nick and Fan, Deng-Ping},
  booktitle={CVPR},
  year={2021}
}
Downloads last month
497

Collection including nobg/NC4K