How to use Shebrain/detr-resnet-50_finetuned_cppe5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="Shebrain/detr-resnet-50_finetuned_cppe5")
# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("Shebrain/detr-resnet-50_finetuned_cppe5") model = AutoModelForObjectDetection.from_pretrained("Shebrain/detr-resnet-50_finetuned_cppe5")
What is a pickle import?
How to fix it?
Create images in seconds. No sign-up, no paywall, no setup.