MCPcopy Create free account
hub / github.com/IDEA-Research/T-Rex / convert_visual_prompt

Method convert_visual_prompt

trex/model_wrapper.py:91–110  ·  view source on GitHub ↗

Convert the prompt to the format required by the API

(
        self,
        target_image: Union[str, Image.Image],
        prompts: List[Dict],
        return_type: List[str] = ["bbox"],
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

encode_imageFunction · 0.85

Tested by

no test coverage detected