{"record":{"id":"5c78ce2a499a67ed","repo":"odysseus-dev/odysseus","slug":"no-visible-object-matched-query","errorCode":null,"errorMessage":"No visible object matched '{query}'","messagePattern":"No visible object matched '(.+?)'","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"routes/gallery/gallery_routes.py","lineNumber":188,"sourceCode":"                outputs=outputs,\n                target_sizes=target_sizes,\n                threshold=float(threshold),\n            )\n        elif hasattr(processor, \"post_process_grounded_object_detection\"):\n            results = processor.post_process_grounded_object_detection(\n                outputs=outputs,\n                target_sizes=target_sizes,\n                threshold=float(threshold),\n                text_labels=[labels],\n            )\n        else:\n            raise HTTPException(500, \"Installed Transformers does not expose OWL-ViT object detection post-processing\")\n        boxes = results[0].get(\"boxes\")\n        scores = results[0].get(\"scores\")\n        labels_idx = results[0].get(\"labels\")\n        text_labels = results[0].get(\"text_labels\") or results[0].get(\"labels_text\")\n        if boxes is None or scores is None or len(boxes) == 0:\n            raise HTTPException(404, f\"No visible object matched '{query}'\")\n        idx = int(torch.argmax(scores).item())\n        box = [float(v) for v in boxes[idx].detach().cpu().tolist()]\n        label_idx = int(labels_idx[idx].detach().cpu().item()) if labels_idx is not None and len(labels_idx) else 0\n        label = labels[min(label_idx, len(labels) - 1)]\n        if text_labels and len(text_labels) > idx:\n            label = str(text_labels[idx])\n        return {\n            \"box\": box,\n            \"score\": float(scores[idx].detach().cpu().item()),\n            \"label\": label,\n            \"model\": backend[\"model_id\"],\n        }\n    except HTTPException:\n        raise\n    except Exception as exc:\n        logger.exception(\"ground_text_to_box failed\")\n        raise HTTPException(500, f\"Object mask failed: {exc}\") from exc\n","sourceCodeStart":170,"sourceCodeEnd":206,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/gallery/gallery_routes.py#L170-L206","documentation":"Error \"No visible object matched '{query}'\" thrown in odysseus-dev/odysseus.","triggerScenarios":"Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.","commonSituations":"See trigger scenarios.","solutions":["Rephrase the object description to match something visible in the image.","Try a simpler or more general query term."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}