Replies: 1 comment 1 reply
-
|
I did get this when i tried printing out the results in line number 88: For this inference i used the COCO model: coco-128-qrc6j/4 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue:
No class_name or predictions attribute in detections— Inference Returns No Valid ResultsSummary
I'm running inference on a video using a Roboflow-trained model via their Python SDK, and although the video opens and processes frame by frame, no detections are returned, and I repeatedly get this warning:
This happens for every frame I've tested so far.
Setup
surgical-instrument-detection-cpjui/2model.infer(frame)[0]"Robotic Lung Cancer Surgery Inside the OR (1).mp4"Code Context
I'm using a Typer-based CLI that processes a video frame-by-frame using a Roboflow model and the
supervisionlibrary:The logic works fine structurally, and
model.infer(frame)does return something—butresultsseems to be either empty or missing the expected keys likepredictionsorclass_name.What I’ve Tried
(H, W, 3).results:resultsstructure for the first frame is either:{}(empty dict), orpredictions,class_name, or bounding box info.Hypotheses
Ask
Could someone on the Roboflow team or anyone experienced with the SDK confirm:
model.infer(frame)[0]should look like?supervision.Detections.from_inference()method support this model output format?Any pointers would be appreciated!
Reference Documentation for this process: https://inference.roboflow.com/quickstart/explore_models/#run-a-private-fine-tuned-model
My inference Script
Beta Was this translation helpful? Give feedback.
All reactions