Dataset Viewer
Auto-converted to Parquet Duplicate
name
stringlengths
11
11
image
imagewidth (px)
174
500
masks
images listlengths
1
3
instances
listlengths
1
3
coarse_fcn8s
images listlengths
1
3
coarse_refinenet
images listlengths
1
3
coarse_deeplabv3plus
images listlengths
1
3
coarse_pspnet
images listlengths
1
3
2007_000033
[ "01" ]
2007_000042
[ "19" ]
2007_000061
[ "04" ]
2007_000123
[ "19" ]
2007_000187
[ "20" ]
2007_000323
[ "15" ]
2007_000332
[ "13" ]
2007_000346
[ "05", "15" ]
2007_000529
[ "04" ]
2007_000559
[ "05", "20" ]
2007_000629
[ "19" ]
2007_000636
[ "19" ]
2007_000661
[ "16" ]
2007_000676
[ "17" ]
2007_000783
[ "13", "15" ]
2007_000799
[ "15" ]
2007_000837
[ "04" ]
2007_000847
[ "11" ]
2007_000862
[ "04" ]
2007_000925
[ "17" ]
2007_000999
[ "05", "15" ]
2007_001154
[ "18" ]
2007_001175
[ "15", "20" ]
2007_001239
[ "12" ]
2007_001288
[ "01" ]
2007_001289
[ "03" ]
2007_001311
[ "02" ]
2007_001321
[ "07" ]
2007_001408
[ "15", "16" ]
2007_001423
[ "15" ]
2007_001430
[ "15", "16", "20" ]
2007_001457
[ "18" ]
2007_001458
[ "18" ]
2007_001526
[ "15" ]
2007_001585
[ "15", "18" ]
2007_001586
[ "13", "15" ]
2007_001594
[ "15" ]
2007_001677
[ "09" ]
2007_001678
[ "15" ]
2007_001717
[ "20" ]
2007_001733
[ "17" ]
2007_001761
[ "01" ]
2007_001763
[ "08", "12", "18" ]
2007_001774
[ "08" ]
2007_001884
[ "01" ]
2007_002046
[ "13" ]
2007_002094
[ "03" ]
2007_002119
[ "20" ]
2007_002260
[ "14" ]
2007_002268
[ "08", "12" ]
2007_002284
[ "16" ]
2007_002400
[ "03" ]
2007_002412
[ "03" ]
2007_002426
[ "15" ]
2007_002427
[ "18" ]
2007_002470
[ "08" ]
2007_002565
[ "15" ]
2007_002597
[ "08", "12" ]
2007_002618
[ "17" ]
2007_002619
[ "01" ]
2007_002643
[ "07", "14" ]
2007_002648
[ "17" ]
2007_002728
[ "15", "19" ]
2007_002823
[ "14", "15" ]
2007_002824
[ "15" ]
2007_002852
[ "12" ]
2007_002903
[ "10" ]
2007_003011
[ "11" ]
2007_003020
[ "15" ]
2007_003051
[ "07" ]
2007_003101
[ "06" ]
2007_003106
[ "15" ]
2007_003134
[ "15" ]
2007_003137
[ "06" ]
2007_003143
[ "07" ]
2007_003195
[ "06" ]
2007_003201
[ "10" ]
2007_003349
[ "03" ]
2007_003367
[ "14" ]
2007_003499
[ "19" ]
2007_003503
[ "06" ]
2007_003506
[ "16" ]
2007_003530
[ "15", "18" ]
2007_003587
[ "19" ]
2007_003621
[ "02" ]
2007_003682
[ "03" ]
2007_003711
[ "06" ]
2007_003714
[ "17" ]
2007_003786
[ "06" ]
2007_003872
[ "12" ]
2007_003917
[ "07" ]
2007_003991
[ "08" ]
2007_004052
[ "01" ]
2007_004121
[ "15" ]
2007_004143
[ "03" ]
2007_004189
[ "12" ]
2007_004190
[ "20" ]
2007_004193
[ "09", "20" ]
2007_004241
[ "04" ]
2007_004281
[ "15", "19" ]
End of preview. Expand in Data Studio

Relabeled PASCAL VOC 2012

The CascadePSP relabeled PASCAL VOC 2012 evaluation set: PASCAL VOC 2012 images whose object masks were re-annotated by the CascadePSP authors "to have more accurate boundaries". It is the standard low-resolution benchmark for segmentation refinement, the task of taking a coarse mask and sharpening its edges. It is published here as one test split of 424 images with 501 binary masks.

from datasets import load_dataset

ds = load_dataset("nobg/Relabeled-PASCAL-VOC-2012", split="test")   # 424 rows
row = ds[0]
row["name"]        # '2007_000033', the PASCAL VOC image ID
row["image"]       # PIL RGB
row["masks"]       # list of PIL 'L' masks, one per annotated class
row["instances"]   # ['01'], VOC class code for each mask (01 = aeroplane)

Columns

column type description
name string PASCAL VOC image ID, e.g. 2007_000033
image image RGB image, original VOC resolution
masks list of image binary ground-truth masks (mode L, values 0/255), same size as image
instances list of string two-digit VOC class index for each entry of masks, aligned by position
coarse_fcn8s, coarse_refinenet, coarse_deeplabv3plus, coarse_pspnet list of image official CascadePSP single-scale coarse input for each object, aligned with masks

Each mask covers one class: it is the union of every object of that class in the image. For example, the 01 mask of 2007_000033 includes the large aeroplane and the small ones in the background. No image has two masks with the same code. The field is called instances, but it holds class codes, not instance IDs.

The codes are the standard PASCAL VOC class indices. CascadePSP's own evaluation script (eval_post.py) parses the trailing number of each GT file name as this_class. Spot checks agree with this reading: 15 masks show people, 01 aeroplanes, 05 a bottle, 08 a cat (next to a 12 dog), 19 trains, 20 a monitor.

code class masks code class masks
01 aeroplane 26 11 diningtable 16
02 bicycle 5 12 dog 40
03 bird 26 13 horse 33
04 boat 10 14 motorbike 12
05 bottle 15 15 person 124
06 bus 11 16 pottedplant 13
07 car 20 17 sheep 20
08 cat 32 18 sofa 24
09 chair 14 19 train 18
10 cow 19 20 tvmonitor 23

Statistics

split test only
images (distinct VOC IDs) 424
masks 501
masks per image 1 (355 images), 2 (61), 3 (8)
classes 20 (all VOC object classes; no background mask)
image width 174 to 500 px
median image size 500 × 375

The CascadePSP documentation says "We have relabeled 500 images from PASCAL VOC 2012". This repo has 424 distinct images and 501 masks, so the "500" is closer to the mask count than to the image count.

Evaluation

eval.yaml registers this set as a benchmark with eight tasks on the test split, one IoU and one mBA leaderboard per input model. Higher is better for both. A refinement model receives the image and the coarse mask from the matching column, and is scored on its refined mask:

IoU task mBA task input model coarse-mask column
test_fcn8s_iou test_fcn8s_mba FCN-8s coarse_fcn8s
test_refinenet_iou test_refinenet_mba RefineNet coarse_refinenet
test_deeplabv3plus_iou test_deeplabv3plus_mba DeepLabV3+ coarse_deeplabv3plus
test_pspnet_iou test_pspnet_mba PSPNet coarse_pspnet

IoU is pooled over all masks; mBA (mean Boundary Accuracy, from the CascadePSP paper) scores only a band around the ground-truth boundary. Exact definitions are in the next section.

Scoring the coarse inputs themselves, unrefined, with this protocol reproduces the "input" rows of CascadePSP Table 3 exactly. Use these as a sanity check for your evaluation code:

input model IoU (%) mBA (%)
FCN-8s 68.85 54.05
RefineNet 86.21 62.61
DeepLabV3+ 87.13 61.68
PSPNet 90.92 60.51

Evaluation protocol

Scores follow the official CascadePSP code: eval_post.py and util/compute_boundary_acc.py. Use exactly this protocol so that leaderboard numbers are comparable.

  • What is scored. One object is one entry of masks (501 masks, each the union of one class in the image). The model receives the RGB image and a coarse mask for that object, and outputs one refined binary mask at the full resolution of image. The coarse mask comes from the coarse_<model> column named by the task (for example coarse_pspnet for test_pspnet_iou). These are the single-scale "Segmentation input" files from CascadePSP's docs/dataset.md, the ones behind the paper's Table 3.
  • Binarization. Read the prediction and the ground truth as 8-bit grayscale (0 to 255) and threshold both at > 128. A prediction of a different size is first resized to the ground-truth size (bilinear).
  • IoU (*_iou): pooled over the split, not averaged per object: sum_k |P_k AND G_k| / sum_k |P_k OR G_k| over all objects k.
  • mBA (*_mba): for each object, with h, w its mask size and R = (w + h) / 300, use 5 radii r_i = 1 + int((R - 1) * i / 5) for i = 0..4 (Python int(), truncation toward zero). For each radius, the band is the morphological gradient (dilation minus erosion) of the ground truth with a (2r+1) x (2r+1) elliptical kernel (cv2.MORPH_ELLIPSE), and the score is the fraction of band pixels where prediction and ground truth agree. The object's mBA is the mean over the 5 radii; the split's mBA is the unweighted mean over objects. The paper describes the radii as "5 radii in [3, (w+h)/300]"; the code starts at 1 and is authoritative here.
  • Units. Submit both metrics in percent (0 to 100), as in the paper's tables: 93.5, not 0.935.
  • Splits. The masks are relabeled PASCAL VOC 2012 validation data, exposed here as the only split, test.

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

- dataset:
    id: nobg/Relabeled-PASCAL-VOC-2012
    task_id: test_pspnet_iou
  value: 93.5

Source and credit

  • Annotations: Ho Kei Cheng, Jihoon Chung, Yu-Wing Tai, Chi-Keung Tang, CascadePSP: Toward Class-Agnostic and Very High-Resolution Segmentation via Global and Local Refinement, CVPR 2020 (arXiv:2005.02551). Released through hkchengrex/CascadePSP (docs/dataset.md).
  • Images: PASCAL VOC 2012, Everingham et al.
@inproceedings{cheng2020cascadepsp,
  title={{CascadePSP}: Toward Class-Agnostic and Very High-Resolution Segmentation via Global and Local Refinement},
  author={Cheng, Ho Kei and Chung, Jihoon and Tai, Yu-Wing and Tang, Chi-Keung},
  booktitle={CVPR},
  year={2020}
}

@article{everingham2010pascal,
  title={The {PASCAL} Visual Object Classes ({VOC}) Challenge},
  author={Everingham, Mark and Van Gool, Luc and Williams, Christopher K. I. and Winn, John and Zisserman, Andrew},
  journal={International Journal of Computer Vision},
  volume={88},
  number={2},
  pages={303--338},
  year={2010}
}

License

Set to other because no single license covers this data. The CascadePSP code is MIT-licensed, but that license does not cover the dataset, and the authors say "We do not hold the license for the RGB images." The images come from PASCAL VOC 2012 and are subject to its terms, which defer to the Flickr terms of use. No separate license has been stated for the relabeled masks. Treat this set as research-only, and check the original terms before any other use.

Downloads last month
165

Collection including nobg/Relabeled-PASCAL-VOC-2012

Paper for nobg/Relabeled-PASCAL-VOC-2012