Rename
This layer (rename) re-maps existing classes.
Provide object classes_mapping, where keys are existing classes and values are new classes of annotations.
1
{
2
"action": "rename",
3
"src": ["$input"],
4
"dst": "$output",
5
"settings": {
6
"classes_mapping": {
7
"old": "new"
8
}
9
}
10
}
Copied!

Example

Assign class vehicle to annotations of class bus.
1
[
2
{
3
"dst": "$data",
4
"src": [
5
"example/*"
6
],
7
"action": "data",
8
"settings": {
9
"classes_mapping": "default"
10
}
11
},
12
{
13
"action": "rename",
14
"src": ["$data"],
15
"dst": "$output",
16
"settings": {
17
"classes_mapping": {
18
"bus": "vehicle"
19
}
20
}
21
},
22
{
23
"dst": "example_rename",
24
"src": [
25
"$output"
26
],
27
"action": "supervisely",
28
"settings": {}
29
}
30
]
Copied!
Last modified 1yr ago
Copy link
Contents
Example