In the current Sam3ONNXWrapper implementation, input_ids (derived from the text prompt such as “dog”) is exported as a constant node inside the ONNX file.
Because the tensor is frozen, the only way to switch the prompt to “cat” (or any other text) is to:
Re-build the entire ONNX model with the new prompt.
Re-build the TensorRT engine from the updated ONNX.
it‘s terrible!