davidhajdu
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -62,8 +62,8 @@ from transformers import AutoModelForObjectDetection, AutoImageProcessor
|
|
62 |
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
63 |
image = Image.open(requests.get(url, stream=True).raw)
|
64 |
|
65 |
-
image_processor = AutoImageProcessor.from_pretrained("
|
66 |
-
model = AutoModelForObjectDetection.from_pretrained("
|
67 |
|
68 |
inputs = image_processor(images=image, return_tensors="pt")
|
69 |
|
|
|
62 |
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
63 |
image = Image.open(requests.get(url, stream=True).raw)
|
64 |
|
65 |
+
image_processor = AutoImageProcessor.from_pretrained("IDEA-Research/dab-detr-resnet-50")
|
66 |
+
model = AutoModelForObjectDetection.from_pretrained("IDEA-Research/dab-detr-resnet-50")
|
67 |
|
68 |
inputs = image_processor(images=image, return_tensors="pt")
|
69 |
|