Image Classification
Transformers
TensorBoard
Safetensors
English
vit
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection") 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("MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection") model = AutoModelForImageClassification.from_pretrained("MattyB95/VIT-ASVspoof2019-Mel_Spectrogram-Synthetic-Voice-Detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
- README.mdAdded+92
- model.safetensors+1-1
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: apache-2.0base_model: google/vit-base-patch16-224-in21ktags:- generated_from_trainerdatasets:- imagefoldermetrics:- accuracy- f1- precision- recallmodel-index:- name: vit-base-patch16-224-in21k results: - task: name: Image Classification type: image-classification dataset: name: imagefolder type: imagefolder config: default split: validation args: default metrics: - name: Accuracy type: accuracy value: 0.9996377394944453 - name: F1 type: f1 value: 0.9997981836528759 - name: Precision type: precision value: 0.9997309296381004 - name: Recall type: recall value: 0.9998654467168999---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# vit-base-patch16-224-in21k
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.0025- Accuracy: 0.9996- F1: 0.9998- Precision: 0.9997- Recall: 0.9999
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 3.0
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|| 0.007 | 1.0 | 3173 | 0.0108 | 0.9972 | 0.9984 | 0.9969 | 1.0 || 0.0015 | 2.0 | 6346 | 0.0022 | 0.9997 | 0.9998 | 0.9999 | 0.9998 || 0.0 | 3.0 | 9519 | 0.0025 | 0.9996 | 0.9998 | 0.9997 | 0.9999 |
### Framework versions
- Transformers 4.36.2- Pytorch 2.1.2+cu121- Datasets 2.15.0- Tokenizers 0.15.0123version https://git-lfs.github.com/spec/v1oid sha256:bab07ec5e36dc74fbfc27561cf2339ec4fc4d1bc8598d82353da61af6ebca838size 343223968123version https://git-lfs.github.com/spec/v1oid sha256:055123c6c460c52166ceea4028cf1fe0778b6e24a63ad16962a5d5c92d612054size 343223968
README.mdAdded+92
model.safetensors+1-1