Skip to content

Prompt-specific input_ids baked into ONNX graph forces re-export when changing from “dog” to “cat” #11

Description

@yogurfrul

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions