Open VladMVLX opened 1 year ago
Yes, you can give multiple input bboxes to Onnx mask decoder. You can do it in two ways:
point_coords
and point_labels
batchable to do that use below dictionary here dynamic_axes = { "point_coords": {0: "batch_size",1: "num_points"}, "point_labels": {0: "batch_size",1: "num_points"} }
. Then you can pass each bbox and label as different inputs in a batch. This works like a charm.
I am experimenting with onnx decoder trying to run it with multiple boxes as:
where index is index of a box, rect is the box by index in "post transform to longest side" space point_coords and point_labels are tensors which will be passed to inference session. when running inference with single box everything works fine and generated masks are good, trying to add at least 1 additional box leads to masks being mostly black with some white artifacts in it.
Do ONNX decoder supports multi-box input at the moment? If it does how do I need to put labels on boxes properly?