fix: 🐞 remove class_name from from_moondream return in Detections class

This commit is contained in:
Onuralp SEZER committed 2025-07-10 23:30:33 +03:00
1 parent 399d2efa59
commit e17e7d712f
1 file changed
+2 -3
+2 -3
View File
@@ -1041,9 +1041,8 @@ class Detections:
return cls(xyxy=xyxy, data=data)
if vlm == VLM.MOONDREAM:
xyxy, class_id, class_name = from_moondream(result, **kwargs)
data = {CLASS_NAME_DATA_FIELD: class_name}
return cls(xyxy=xyxy, class_id=class_id, data=data)
xyxy, class_id = from_moondream(result, **kwargs)
return cls(xyxy=xyxy, class_id=class_id)
return cls.empty()