Fix typo
Browse files
README.md
CHANGED
@@ -46,7 +46,7 @@ outputs = model(**inputs)
|
|
46 |
logits = outputs.logits
|
47 |
# model predicts one of the 1000 ImageNet classes
|
48 |
predicted_class_idx = logits.argmax(-1).item()
|
49 |
-
print("Predicted class:", model.config.
|
50 |
```
|
51 |
|
52 |
Currently, both the feature extractor and model support PyTorch. Tensorflow and JAX/FLAX are coming soon, and the API of ViTFeatureExtractor might change.
|
|
|
46 |
logits = outputs.logits
|
47 |
# model predicts one of the 1000 ImageNet classes
|
48 |
predicted_class_idx = logits.argmax(-1).item()
|
49 |
+
print("Predicted class:", model.config.id2label[predicted_class_idx])
|
50 |
```
|
51 |
|
52 |
Currently, both the feature extractor and model support PyTorch. Tensorflow and JAX/FLAX are coming soon, and the API of ViTFeatureExtractor might change.
|