Dataset Viewer
Auto-converted to Parquet Duplicate
image
image
filename
string
pid
int64
visit
float64
lesion
string
multifocal
string
bca
string
class
string
subclass
string
subclass2
string
stage
string
morphology
string
modality
string
has_segmentation
int64
segmentation
dict
d6df5610.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 157, 29 ], [ 141, 42 ], [ 130, 55 ], [ 128, 68 ], [ 126, 91 ], [ 129, 125 ], ...
23a59431.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 112, 34 ], [ 106, 50 ], [ 102, 68 ], [ 118, 112 ], [ 146, 142 ], [ 176, 155 ], ...
afbf2ba7.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 112, 35 ], [ 93, 63 ], [ 83, 90 ], [ 91, 124 ], [ 116, 148 ], [ 152, 159 ], ...
80175344.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 255, 62 ], [ 246, 48 ], [ 240, 37 ], [ 224, 35 ], [ 203, 47 ], [ 189, 59 ], ...
1e77be72.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 249, 47 ], [ 224, 31 ], [ 200, 28 ], [ 178, 34 ], [ 157, 54 ], [ 145, 79 ], ...
e40c12a1.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 138, 49 ], [ 126, 63 ], [ 120, 75 ], [ 123, 88 ], [ 131, 104 ], [ 148, 127 ], ...
e23a0c2a.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 132, 29 ], [ 166, 38 ], [ 188, 53 ], [ 201, 67 ], [ 207, 88 ], [ 208, 102 ], ...
de416f64.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 162, 22 ], [ 178, 35 ], [ 186, 48 ], [ 195, 62 ], [ 195, 85 ], [ 185, 106 ], ...
489f6a5e.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 113, 33 ], [ 118, 38 ], [ 119, 46 ], [ 114, 54 ], [ 104, 65 ], [ 96, 73 ], [ 85...
db33b4b8.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 112, 37 ], [ 126, 43 ], [ 131, 50 ], [ 132, 56 ], [ 131, 66 ], [ 126, 75 ], [ 1...
5617bf54.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 113, 41 ], [ 130, 49 ], [ 133, 56 ], [ 136, 61 ], [ 136, 72 ], [ 127, 86 ], [ 1...
f1f3cb35.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 71, 73 ], [ 80, 74 ], [ 86, 86 ], [ 86, 99 ], [ 81, 111 ], [ 75, 122 ], [ 70, ...
de21b75d.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 79, 62 ], [ 94, 66 ], [ 104, 76 ], [ 105, 88 ], [ 101, 101 ], [ 93, 110 ], [ 77...
abf63f83.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 85, 58 ], [ 100, 61 ], [ 104, 65 ], [ 109, 79 ], [ 110, 91 ], [ 105, 103 ], [ 9...
a677df33.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 84, 57 ], [ 99, 59 ], [ 108, 63 ], [ 112, 72 ], [ 112, 83 ], [ 110, 94 ], [ 99,...
f258bffd.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 93, 54 ], [ 97, 56 ], [ 107, 60 ], [ 114, 67 ], [ 116, 80 ], [ 112, 96 ], [ 105...
d6e97a81.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 137, 24 ], [ 139, 34 ], [ 145, 42 ], [ 154, 48 ], [ 172, 50 ], [ 184, 39 ], [ 1...
c3620fd6.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 145, 19 ], [ 151, 24 ], [ 172, 29 ], [ 184, 28 ], [ 192, 25 ], [ 194, 21 ], [ 1...
dd4505a1.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Right ureteral orifice" ], "points": [ [ [ 88, 115 ], [ 104, 122 ], [ 117, 132 ], [ 123, 137 ], [ 128, 144 ], [ 126, 150 ], ...
42435e89.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Right ureteral orifice" ], "points": [ [ [ 77, 100 ], [ 92, 107 ], [ 105, 114 ], [ 113, 120 ], [ 118, 126 ], [ 113, 134 ], ...
3547ea95.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Right ureteral orifice" ], "points": [ [ [ 87, 112 ], [ 109, 123 ], [ 121, 133 ], [ 127, 140 ], [ 126, 144 ], [ 120, 148 ], ...
a1d4ac4b.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Right ureteral orifice" ], "points": [ [ [ 94, 120 ], [ 110, 131 ], [ 124, 139 ], [ 132, 147 ], [ 130, 151 ], [ 117, 152 ], ...
32219149.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 188, 42 ], [ 164, 58 ], [ 154, 73 ], [ 141, 84 ], [ 130, 92 ], [ 124, 107 ], ...
c71402ae.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 172, 50 ], [ 159, 66 ], [ 146, 81 ], [ 135, 92 ], [ 127, 99 ], [ 122, 110 ], ...
aa27c216.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 165, 55 ], [ 155, 69 ], [ 151, 76 ], [ 138, 90 ], [ 126, 101 ], [ 117, 116 ], ...
f42adbdd.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 206, 50 ], [ 181, 52 ], [ 166, 60 ], [ 155, 68 ], [ 147, 79 ], [ 142, 85 ], ...
119b7591.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 186, 83 ], [ 164, 96 ], [ 141, 112 ], [ 128, 124 ], [ 126, 133 ], [ 132, 158 ], ...
e2eb57cf.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 171, 17 ], [ 186, 34 ], [ 191, 54 ], [ 188, 70 ], [ 170, 95 ], [ 146, 119 ], ...
ada263c9.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 188, 21 ], [ 190, 30 ], [ 188, 57 ], [ 179, 82 ], [ 165, 103 ], [ 143, 124 ], ...
f7f183d3.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 178, 21 ], [ 181, 40 ], [ 175, 62 ], [ 158, 85 ], [ 135, 105 ], [ 117, 119 ], ...
7458e21d.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 174, 19 ], [ 174, 28 ], [ 172, 52 ], [ 163, 69 ], [ 151, 86 ], [ 138, 99 ], ...
142f30ff.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 174, 17 ], [ 171, 57 ], [ 164, 70 ], [ 144, 95 ], [ 123, 110 ], [ 104, 115 ], ...
9940eba5.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 133, 43 ], [ 119, 54 ], [ 108, 63 ], [ 98, 78 ], [ 96, 90 ], [ 94, 98 ], [ ...
7aa1ebee.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 118, 69 ], [ 107, 97 ], [ 99, 114 ], [ 93, 129 ], [ 89, 147 ], [ 91, 159 ], ...
c824bd7d.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 116, 96 ], [ 110, 113 ], [ 106, 131 ], [ 98, 149 ], [ 96, 164 ], [ 99, 176 ], ...
0fad9783.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 119, 90 ], [ 113, 109 ], [ 111, 133 ], [ 104, 155 ], [ 99, 180 ], [ 102, 201 ], ...
15a634ec.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 65, 130 ], [ 79, 127 ], [ 86, 128 ], [ 95, 133 ], [ 105, 144 ], [ 104, 159 ], [ ...
65e142ab.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 87, 133 ], [ 102, 134 ], [ 111, 141 ], [ 117, 149 ], [ 120, 159 ], [ 120, 167 ], [ ...
f0ce26d4.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 115, 141 ], [ 129, 143 ], [ 140, 153 ], [ 145, 166 ], [ 145, 173 ], [ 142, 180 ], [ ...
2c3f4b59.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 132, 162 ], [ 146, 162 ], [ 156, 166 ], [ 164, 173 ], [ 168, 178 ], [ 170, 185 ], [ ...
bca3b572.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 141, 165 ], [ 158, 169 ], [ 165, 179 ], [ 168, 184 ], [ 168, 191 ], [ 165, 197 ], [ ...
9f1a69c7.png
761
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 126, 169 ], [ 152, 171 ], [ 165, 179 ], [ 169, 185 ], [ 170, 193 ], [ 169, 200 ], [ ...
1a83e512.png
761
null
null
null
No
Anatomical landmarks
UreteralOrifice
null
null
null
WLC
1
{ "label": [ "Left ureteral orifice" ], "points": [ [ [ 278, 66 ], [ 267, 66 ], [ 254, 74 ], [ 246, 80 ], [ 238, 89 ], [ 230, 98 ], ...
120914bd.png
962
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 87, 42 ], [ 101, 48 ], [ 121, 50 ], [ 142, 52 ], [ 170, 53 ], [ 191, 54 ], [ 20...
10544b5c.png
962
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 106, 22 ], [ 132, 32 ], [ 159, 37 ], [ 197, 39 ], [ 221, 36 ], [ 241, 31 ], [ 2...
4a69f683.png
962
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 122, 13 ], [ 143, 21 ], [ 181, 24 ], [ 216, 22 ], [ 241, 14 ], [ 245, 9 ], [ 23...
92d9a8a8.png
962
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 120, 18 ], [ 150, 32 ], [ 199, 33 ], [ 229, 25 ], [ 248, 20 ], [ 252, 15 ], [ 2...
0947de45.png
962
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 120, 16 ], [ 160, 21 ], [ 193, 28 ], [ 223, 32 ], [ 245, 31 ], [ 255, 26 ], [ 2...
129b078a.png
962
null
null
null
No
Foreign bodies
AirBubble
null
null
null
WLC
1
{ "label": [ "Air bubble" ], "points": [ [ [ 120, 17 ], [ 145, 21 ], [ 169, 19 ], [ 188, 21 ], [ 199, 28 ], [ 225, 31 ], [ 2...
4e85cfda.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
54a11aa5.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
11cfd7f1.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
7e16d353.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
a1465f85.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
724a1bee.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
cf38dbbe.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
f9b5885d.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
ceb99b78.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
65164b2f.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
8259eed8.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
07147665.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
e6617c79.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
2ed2cdcd.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
d212ff72.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
e3ed398a.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
c415e47f.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
6962ca07.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
6882ff4e.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
9fe8ae69.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
0b9f26f5.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
0786b9ff.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
4de5671e.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
d25a0f1d.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
66a336b1.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
e184ffdc.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
b50141d3.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
06e95b62.png
979
1
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 242, 45 ], [ 241, 57 ], [ 237, 64 ], [ 259, 69 ], [ 268, 87 ], [ 261, 98 ], [ 257, ...
505ccc6d.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
365b79e4.png
979
2
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 436, 372 ], [ 426, 360 ], [ 404, 360 ], [ 390, 371 ], [ 383, 384 ], [ 399, 407 ], [ ...
93e738ae.png
979
2
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 446, 371 ], [ 445, 355 ], [ 425, 346 ], [ 413, 338 ], [ 383, 338 ], [ 383, 357 ], [ ...
6a8d4d5d.png
979
2
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 437, 357 ], [ 437, 338 ], [ 437, 323 ], [ 422, 320 ], [ 413, 305 ], [ 394, 305 ], [ ...
9c017198.png
979
2
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 333, 299 ], [ 373, 311 ], [ 373, 291 ], [ 379, 272 ], [ 383, 261 ], [ 384, 245 ], [ ...
b2bee1c6.png
979
1
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 249, 89 ], [ 249, 96 ], [ 262, 95 ], [ 275, 105 ], [ 285, 114 ], [ 288, 124 ], [ 283...
4721f0e1.png
979
1
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 145, 164 ], [ 138, 174 ], [ 138, 182 ], [ 148, 194 ], [ 155, 199 ], [ 162, 200 ], [ ...
5c5fec6f.png
979
1
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 139, 166 ], [ 141, 183 ], [ 145, 193 ], [ 151, 195 ], [ 152, 201 ], [ 162, 203 ], [ ...
151a0585.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
d7b2f4b1.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
513e5dd7.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
992759a6.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
8bb50551.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
5194faba.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
3a00e07e.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
ec3e8ff6.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
6b00b121.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
37aa72d1.png
979
2
L1
null
Yes
Malignant
LowGradePapillary
null
Ta
Papillary
WLC
1
{ "label": [ "Tumor" ], "points": [ [ [ 293, 187 ], [ 307, 187 ], [ 312, 181 ], [ 312, 167 ], [ 306, 157 ], [ 294, 154 ], [ ...
c60ead24.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
c30e77f0.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
9267bcc7.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
ec167ab7.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
e22e8ac9.png
979
null
null
null
No
Normal mucosa
null
null
null
null
WLC
0
null
End of preview. Expand in Data Studio

CystoDS

Cystoscopic image dataset with lesion annotations, segmentation masks (768 of 8 067 images), and rich clinical metadata (class, subclass, stage, morphology, modality). Flattened into a single train split with one row per image; images are embedded in the Parquet shards as HF Image features and segmentation polygons are stored inline.

Why no splits

This dataset ships one train split only. Use the pid (patient id) column to build your own patient-grouped splits to prevent leakage. 160 unique patients.

Columns

Column Type Description
image Image Decoded PIL image (embedded bytes).
filename string 8-char de-identified PNG filename.
pid int64 Patient id — use this for group-aware splitting.
visit float64 Visit number (often NaN).
lesion string Lesion descriptor (often NaN).
multifocal string Multifocal flag (often NaN).
bca string Bladder cancer association (Yes/No).
class string Top-level class (see distribution below).
subclass string Subclass label.
subclass2 string Secondary subclass.
stage string Tumor stage.
morphology string Morphology descriptor.
modality string Imaging modality (WLC, etc.).
has_segmentation int64 1 if a segmentation polygon exists, else 0.
segmentation struct null when has_segmentation == 0, otherwise {label: list[string], points: list[list[list[float]]]} — each points[i] is a polygon [x, y] list matching label[i].

Class distribution

Class Count
Normal mucosa 6386
Malignant 998
Foreign bodies 251
Non-malignant 221
Anatomical landmarks 211

Segmentation labels

768 images have polygons (807 polygon shapes total). Labels include: Tumor (459), Air bubble (216), Right ureteral orifice (50), Left ureteral orifice (49), Resection scar (30), Flat Tumor (3).

Loading

from datasets import load_dataset
ds = load_dataset("milkyroad/C", split="train")
print(ds[0]["image"])          # PIL.Image
print(ds[0]["class"])
# segmentation
if ds[0]["has_segmentation"]:
    seg = ds[0]["segmentation"]
    for label, poly in zip(seg["label"], seg["points"]):
        print(label, len(poly), "points")

Group-aware split example

import random
ds = load_dataset("milkyroad/C", split="train")
pids = sorted({r["pid"] for r in ds if r["pid"] is not None})
random.Random(42).shuffle(pids)
n_test, n_val = 16, 16
test_pids = set(pids[:n_test])
val_pids = set(pids[n_test:n_test + n_val])
train = ds.filter(lambda r: r["pid"] not in test_pids and r["pid"] not in val_pids)
val   = ds.filter(lambda r: r["pid"] in val_pids)
test  = ds.filter(lambda r: r["pid"] in test_pids)

Notes

  • 160 unique patients (pid). Build splits by patient to prevent leakage.
  • segmentation is null for images without a mask (has_segmentation == 0).
  • Original source: https://osf.io/xvdhy/
Downloads last month
149