Skip to content

Commit c5316cd

Browse files
committed
Make placeholder recognizable; Add a GatingYoloProcessor
1 parent ba5605c commit c5316cd

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

gabrieltool/statemachine-editor-react/src/diagram.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ export class Diagram extends Component {
269269
) {
270270
cell.attr("circle/fill", "yellow");
271271
}
272+
if (state.getProcessorsList()
273+
.map(callableItem => callableItem.getCallableName())
274+
.includes("GatingYoloProcessor")
275+
) {
276+
cell.attr("circle/fill", "yellow");
277+
}
272278
this.addGraphCellWithRef(state.getName(), cell, state);
273279
}
274280
return null;

gabrieltool/statemachine-editor-react/src/processor-zoo.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,25 @@
1616
},
1717
"YoloProcessor": {
1818
"model_path": "",
19-
"conf_threshold": "0.8"
19+
"conf_threshold": "e.g. 0.8"
20+
},
21+
"GatingYoloProcessor": {
22+
"model_path": "",
23+
"conf_threshold": "e.g. 0.8"
2024
},
2125
"TwoStageProcessor": {
2226
"classifier_path": "",
2327
"detector_path": "",
2428
"detector_class_name": "",
25-
"conf_threshold": "0.4"
29+
"conf_threshold": "e.g. 0.4"
2630
},
2731
"GatedTwoStageProcessor": {
2832
"classifier_path": "",
2933
"detector_path": "",
3034
"detector_class_name": "",
31-
"conf_threshold": "0.4",
32-
"thumbs_up_required": "True/False",
33-
"transition_word": "-"
35+
"conf_threshold": "e.g. 0.4",
36+
"thumbs_up_required": "e.g. True/False",
37+
"transition_word": "e.g. -"
3438
},
3539
"DummyProcessor": {
3640
"dummy_input": "dummy_input_value"

0 commit comments

Comments
 (0)