-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
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
Labels
No labels