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

Method visual_prompt_inference

trex/model_wrapper.py:112–218  ·  view source on GitHub ↗

Visual prompt inference for both interactive and generic workflow. Args: target_image (Union[str, Image.Image]): The image to upload. Can be a file path or PIL.Image prompts (List[dict]): A list of prompt dict. Each dict is for one prompt image: # Bo

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

inferenceFunction · 0.80

Calls 3

convert_visual_promptMethod · 0.95
call_apiMethod · 0.95
postprocessMethod · 0.95

Tested by

no test coverage detected