Skip to content

v1.6.4 Wrong predicted class names #988

@nickjyj

Description

@nickjyj

Search before asking

  • I have searched the RF-DETR issues and found no similar bug report.

Bug

from rfdetr import RFDETRSegSmall

model = RFDETRSegSmall()

detections = model.predict("https://media.roboflow.com/dog.jpg", threshold=0.5)
print(detections.data["class_name"])

It output: ['sheep' 'tie' 'motorcycle']. However, it supposed to output "dog".

Environment

RF-DETR 1.6.4

Minimal Reproducible Example

from rfdetr import RFDETRSegSmall

model = RFDETRSegSmall()

detections = model.predict("https://media.roboflow.com/dog.jpg", threshold=0.5)
print(detections.data["class_name"])

Additional

No response

Are you willing to submit a PR?

  • Yes, I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions