Instructions to use DataScienceProject/Vit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DataScienceProject/Vit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="DataScienceProject/Vit") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DataScienceProject/Vit", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update vit_model_test.py
Browse files- vit_model_test.py +1 -0
vit_model_test.py
CHANGED
|
@@ -96,3 +96,4 @@ if __name__ == "__main__":
|
|
| 96 |
plt.ylabel('True Labels')
|
| 97 |
plt.title('Confusion Matrix')
|
| 98 |
plt.show()
|
|
|
|
|
|
| 96 |
plt.ylabel('True Labels')
|
| 97 |
plt.title('Confusion Matrix')
|
| 98 |
plt.show()
|
| 99 |
+
.
|