Instructions to use facebook/detr-resnet-101-dc5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/detr-resnet-101-dc5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="facebook/detr-resnet-101-dc5")# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("facebook/detr-resnet-101-dc5") model = AutoModelForObjectDetection.from_pretrained("facebook/detr-resnet-101-dc5") - Notebooks
- Google Colab
- Kaggle
Help Needed: Import Error with DETR ResNet-101-DC5 on Hugging Face
#3
by ThibautMELEN - opened
Hi everyone,
I'm encountering a technical hitch with DETR (DEtection TRansformer) using ResNet-101-DC5 on the Hugging Face platform. When I try to run a test, I get the following error message:
Failed to import transformers.models.detr.modeling_detr because of the following error (look up to see its traceback): mutable default <class 'timm.models.maxxvit.MaxxVitConvCfg'> for field conv_cfg is not allowed: use default_factory.
I'm not quite sure what's causing this or how to fix it. Has anyone else faced this issue or can offer some guidance on how to resolve it? Any advice or suggestions would be greatly appreciated!
Thanks a lot in advance for your help!