roboflow/supervision · error · RuntimeError
Unimplemented task: {task}
Error message
Unimplemented task: {task} What it means
Error "Unimplemented task: {task}" thrown in roboflow/supervision.
Source
Thrown at src/supervision/detection/vlm.py:607
if result == "No object detected.":
return np.empty((0, 4), dtype=np.float32), np.array([]), None, None
pattern = re.compile(r"<loc_(\d+)><loc_(\d+)><loc_(\d+)><loc_(\d+)>")
match = pattern.search(result)
if match is None:
raise ValueError(
f"Expected string to end in location tags, but got {result}"
)
w, h = _validate_resolution(resolution_wh)
xyxy = np.array([match.groups()], dtype=np.float32)
xyxy *= np.array([w, h, w, h]) / 1000
result_string = result[: match.start()]
labels = np.array([result_string])
return xyxy, labels, None, None
raise RuntimeError(f"Unimplemented task: {task}")
def _recover_gemini_json_objects(text: str) -> list[Any]:
"""
Salvage individual JSON objects from a malformed Gemini JSON array.
Scans for balanced `{...}` spans and parses each independently, keeping the
ones that decode into a `dict` and skipping the rest. This recovers the valid
entries from an array that a single `json.loads` would reject wholesale, such
as one whose objects contain a mid-array syntax error or a missing key.
Args:
text: The (fence-stripped) response text that failed `json.loads`.
Returns:
The list of successfully parsed objects, which may be empty.
"""
objects: list[Any] = []View on GitHub (pinned to 7f254d9784)
Solutions
- Use a task supported by this VLM connector; check the supported tasks list in the documentation.
- If the task is valid for the model but unimplemented here, pre-process the raw model output yourself and use the appropriate from_* connector.
When it happens
Trigger: Thrown at src/supervision/detection/vlm.py:607 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of roboflow/supervision@7f254d9784 (2026-08-15).
Data as JSON: /api/errors/3309054a05cded81.
Report an issue: GitHub.