Fix code example
Browse files
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-
|
| 49 |
-
model = SwinForImageClassification.from_pretrained("microsoft/swin-
|
| 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)
|