Datasets:
name stringlengths 11 11 | image imagewidth (px) 174 500 | masks images listlengths 1 3 | instances 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"
] |
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 |
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 two tasks on the test
split. Higher is better for both:
test_iou: intersection over union between the predicted and ground-truth binary masks. CascadePSP'seval_post.pyadds up intersections and unions over all masks before dividing, which gives one dataset-level IoU.test_mba: mean Boundary Accuracy, introduced in the CascadePSP paper. IoU barely moves when only edges improve, so mBA scores just a band around the GT boundary. For each of five radii between 1 px and(w + h) / 300, it takes the morphological gradient of the GT with a disk of that radius, then measures pixel accuracy of the prediction inside that band. These accuracies are averaged over the radii and then over masks (util/compute_boundary_acc.pyin the CascadePSP repo).
In the usual protocol, a refinement model receives the image plus a coarse mask from a segmentation network (CascadePSP provides DeepLabV3+, RefineNet, PSPNet and FCN-8s outputs for this set) and is scored on the refined mask.
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 RGBimageand a coarse mask for that object, and outputs one refined binary mask at the full resolution ofimage. Coarse masks are not stored in this repo. The standard inputs are the "Segmentation input" downloads (DeepLabV3+, RefineNet, PSPNet, FCN-8s) in CascadePSP'sdocs/dataset.md. State which input model you used. - 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 objectsk. - mBA (
*_mba): for each object, withh, wits mask size andR = (w + h) / 300, use 5 radiir_i = 1 + int((R - 1) * i / 5)fori = 0..4(Pythonint(), 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, not0.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_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
- 136