Instructions to use aevalone/vit-base-patch16-224-finetuned-forgery with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aevalone/vit-base-patch16-224-finetuned-forgery with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="aevalone/vit-base-patch16-224-finetuned-forgery") 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("aevalone/vit-base-patch16-224-finetuned-forgery") model = AutoModelForImageClassification.from_pretrained("aevalone/vit-base-patch16-224-finetuned-forgery", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files
README.md
CHANGED
|
@@ -23,7 +23,7 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss: 0.
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
@@ -53,22 +53,23 @@ More information needed
|
|
| 53 |
### Training hyperparameters
|
| 54 |
|
| 55 |
The following hyperparameters were used during training:
|
| 56 |
-
- learning_rate:
|
| 57 |
- train_batch_size: 16
|
| 58 |
- eval_batch_size: 8
|
| 59 |
- seed: 42
|
| 60 |
-
- gradient_accumulation_steps:
|
| 61 |
-
- total_train_batch_size:
|
| 62 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
- lr_scheduler_type: linear
|
| 64 |
-
- lr_scheduler_warmup_steps:
|
| 65 |
-
- num_epochs:
|
| 66 |
|
| 67 |
### Training results
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 71 |
-
| 0.
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.9785362420830401
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.0637
|
| 37 |
+
- Accuracy: 0.9785
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 53 |
### Training hyperparameters
|
| 54 |
|
| 55 |
The following hyperparameters were used during training:
|
| 56 |
+
- learning_rate: 3.731166359806411e-05
|
| 57 |
- train_batch_size: 16
|
| 58 |
- eval_batch_size: 8
|
| 59 |
- seed: 42
|
| 60 |
+
- gradient_accumulation_steps: 5
|
| 61 |
+
- total_train_batch_size: 80
|
| 62 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
- lr_scheduler_type: linear
|
| 64 |
+
- lr_scheduler_warmup_steps: 62
|
| 65 |
+
- num_epochs: 2
|
| 66 |
|
| 67 |
### Training results
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 0.29 | 0.9993 | 852 | 0.0717 | 0.9770 |
|
| 72 |
+
| 0.2782 | 1.9993 | 1704 | 0.0637 | 0.9785 |
|
| 73 |
|
| 74 |
|
| 75 |
### Framework versions
|