nielsr HF staff commited on
Commit
a089dd5
1 Parent(s): f5c5a23

Fix code example

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -45,8 +45,8 @@ import requests
45
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
46
  image = Image.open(requests.get(url, stream=True).raw)
47
 
48
- feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/swin-tiny-patch4-window7-224")
49
- model = SwinForImageClassification.from_pretrained("microsoft/swin-tiny-patch4-window7-224")
50
 
51
  inputs = feature_extractor(images=image, return_tensors="pt")
52
  outputs = model(**inputs)
 
45
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
46
  image = Image.open(requests.get(url, stream=True).raw)
47
 
48
+ feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/swin-large-patch4-window12-384-in22k")
49
+ model = SwinForImageClassification.from_pretrained("microsoft/swin-large-patch4-window12-384-in22k")
50
 
51
  inputs = feature_extractor(images=image, return_tensors="pt")
52
  outputs = model(**inputs)