Update README.md
Browse files
README.md
CHANGED
@@ -45,8 +45,8 @@ from transformers import DFineForObjectDetection, AutoImageProcessor
|
|
45 |
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
46 |
image = Image.open(requests.get(url, stream=True).raw)
|
47 |
|
48 |
-
image_processor = AutoImageProcessor.from_pretrained("ustc-community/
|
49 |
-
model = DFineForObjectDetection.from_pretrained("ustc-community/
|
50 |
|
51 |
inputs = image_processor(images=image, return_tensors="pt")
|
52 |
|
|
|
45 |
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
46 |
image = Image.open(requests.get(url, stream=True).raw)
|
47 |
|
48 |
+
image_processor = AutoImageProcessor.from_pretrained("ustc-community/dfine-xlarge-coco")
|
49 |
+
model = DFineForObjectDetection.from_pretrained("ustc-community/dfine-xlarge-coco")
|
50 |
|
51 |
inputs = image_processor(images=image, return_tensors="pt")
|
52 |
|