nielsr HF Staff commited on
Commit
ea4f6be
·
verified ·
1 Parent(s): 2538520

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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/dfine_x_coco")
49
- model = DFineForObjectDetection.from_pretrained("ustc-community/dfine_x_coco")
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