Instructions to use SABR22/ViT-threat-classification-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SABR22/ViT-threat-classification-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SABR22/ViT-threat-classification-v2") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("SABR22/ViT-threat-classification-v2") model = AutoModelForImageClassification.from_pretrained("SABR22/ViT-threat-classification-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature77182d2 -
Update README.md
Verified signature523f071
-
Update README.md
Verified signaturef6b29bb -
End of training
Verified signature32dfeeb -
Training in progress, epoch 4
Verified signatureec65c78 -
Training in progress, epoch 4
Verified signature694cc49 -
Training in progress, epoch 2
Verified signature6b17496 -
Training in progress, epoch 2
Verified signature925699f -
Training in progress, epoch 0
Verified signaturedf97baa -
initial commit
Verified signature3067081