mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +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(
|
||||
elementDesc=desc.StringParam(
|
||||
elementDesc=desc.ChoiceParam(
|
||||
name="className",
|
||||
label="Class Name",
|
||||
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]),
|
||||
name="validClasses",
|
||||
label="Classes",
|
||||
|
|
Loading…
Add table
Reference in a new issue