Skip to content

DFine not available on transformers? #4

@Nanayeb34

Description

@Nanayeb34

I run into the error below when trying to run inference on DFine. I understand it is newly released but it would be helpful if you could add the transformer version which supports it. I am running the latest stable transformer version 4.51.3

ImportError                               Traceback (most recent call last)
[<ipython-input-1-6d17dfaa3cb2>](https://localhost:8080/#) in <cell line: 0>()
      1 import torch
      2 from transformers.image_utils import load_image
----> 3 from transformers import DFineForObjectDetection, AutoImageProcessor
      4 image_processor = AutoImageProcessor.from_pretrained("ustc-community/dfine-medium-obj2coco")
      5 model = DFineForObjectDetection.from_pretrained("ustc-community/dfine-medium-obj2coco")

ImportError: cannot import name 'DFineForObjectDetection' from 'transformers' (/usr/local/lib/python3.11/dist-packages/transformers/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions