Update README.md
Browse files
README.md
CHANGED
@@ -39,8 +39,8 @@ from transformers import DFineForObjectDetection, AutoImageProcessor
|
|
39 |
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
40 |
image = Image.open(requests.get(url, stream=True).raw)
|
41 |
|
42 |
-
image_processor = AutoImageProcessor.from_pretrained("
|
43 |
-
model = DFineForObjectDetection.from_pretrained("
|
44 |
|
45 |
inputs = image_processor(images=image, return_tensors="pt")
|
46 |
|
|
|
39 |
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
40 |
image = Image.open(requests.get(url, stream=True).raw)
|
41 |
|
42 |
+
image_processor = AutoImageProcessor.from_pretrained("ustc-community/dfine_x_coco")
|
43 |
+
model = DFineForObjectDetection.from_pretrained("ustc-community/dfine_x_coco")
|
44 |
|
45 |
inputs = image_processor(images=image, return_tensors="pt")
|
46 |
|