ViT
Collection
ViT For Real Fake Image Classification • 4 items • Updated
How to use date3k2/vit-real-fake-classification-v3 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="date3k2/vit-real-fake-classification-v3")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("date3k2/vit-real-fake-classification-v3")
model = AutoModelForImageClassification.from_pretrained("date3k2/vit-real-fake-classification-v3")This model is a fine-tuned version of google/vit-base-patch16-224 on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Recall | Precision |
|---|---|---|---|---|---|---|---|
| 0.2481 | 1.0 | 233 | 0.0846 | 0.9667 | 0.9699 | 0.9737 | 0.9662 |
| 0.1881 | 2.0 | 466 | 0.0773 | 0.9726 | 0.9756 | 0.9912 | 0.9604 |
| 0.1036 | 3.0 | 699 | 0.0691 | 0.9774 | 0.9796 | 0.9815 | 0.9777 |
| 0.0007 | 4.0 | 932 | 0.0698 | 0.9817 | 0.9835 | 0.9854 | 0.9816 |
| 0.0029 | 5.0 | 1165 | 0.0541 | 0.9817 | 0.9834 | 0.9834 | 0.9834 |
Base model
google/vit-base-patch16-224