mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-30 02:37:26 +02:00
[nodes] ImageSegmentation: ChoiceParam instead of StringParam for classe names
This commit is contained in:
parent
7a20d27365
commit
d4d5169d15
1 changed files with 15 additions and 2 deletions
|
@ -30,11 +30,24 @@ Generate a mask with segmented labels for each pixel.
|
||||||
),
|
),
|
||||||
|
|
||||||
desc.ListAttribute(
|
desc.ListAttribute(
|
||||||
elementDesc=desc.StringParam(
|
elementDesc=desc.ChoiceParam(
|
||||||
name="className",
|
name="className",
|
||||||
label="Class Name",
|
label="Class Name",
|
||||||
description="Class name to be added to the mask.",
|
description="Class name to be added to the mask.",
|
||||||
value="classname",
|
value="person",
|
||||||
|
values=[
|
||||||
|
"__background__",
|
||||||
|
"aeroplane",
|
||||||
|
"bicycle", "bird", "boat", "bottle", "bus",
|
||||||
|
"car", "cat", "chair", "cow",
|
||||||
|
"diningtable", "dog",
|
||||||
|
"horse",
|
||||||
|
"motorbike",
|
||||||
|
"person", "pottedplant",
|
||||||
|
"sheep", "sofa",
|
||||||
|
"train", "tvmonitor"
|
||||||
|
],
|
||||||
|
exclusive=True,
|
||||||
uid=[0]),
|
uid=[0]),
|
||||||
name="validClasses",
|
name="validClasses",
|
||||||
label="Classes",
|
label="Classes",
|
||||||
|
|
Loading…
Add table
Reference in a new issue