Skip to content

type object 'Detections' has no attribute 'from_vlm' #2002

@jaiaggarwal1403

Description

@jaiaggarwal1403

Search before asking

  • I have searched the Supervision issues and found no similar bug report.

Bug

System Info:

tokenizers-0.22.1 transformers-4.57.1
Python 3.12.3
supervision-0.20.0

Reproduction:

I follow model instructions from here

  1. On running this :
import supervision as sv

detections = sv.Detections.from_vlm(
    vlm=sv.VLM.QWEN_2_5_VL,
    result=response,
    input_wh=input_wh,
    resolution_wh=resolution_wh
)
image = annotate_image(image=image, detections=detections)
image.thumbnail((800, 800))
image
  1. it raise exception:
    type object 'Detections' has no attribute 'from_vlm'

Expected behavior

It should have run at the last command

Environment

No response

Minimal Reproducible Example

No response

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions