fix: 🐞 update Detections class to remove class_id return from from_moondream function

This commit is contained in:
Onuralp SEZER 2025-07-11 18:10:50 +03:00
parent 99415f1da1
commit c613005f69
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 2 additions and 2 deletions

View File

@ -1101,8 +1101,8 @@ class Detections:
return cls(xyxy=xyxy, data=data)
if vlm == VLM.MOONDREAM:
xyxy, class_id = from_moondream(result, **kwargs)
return cls(xyxy=xyxy, class_id=class_id)
xyxy = from_moondream(result, **kwargs)
return cls(xyxy=xyxy)
return cls.empty()