Instructions to use samadhi1/insurance_ai_detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samadhi1/insurance_ai_detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="samadhi1/insurance_ai_detector") 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("samadhi1/insurance_ai_detector") model = AutoModelForImageClassification.from_pretrained("samadhi1/insurance_ai_detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
insurance_ai_detector
This model is a fine-tuned version of google/vit-base-patch16-224 on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.0694
- Accuracy: 1.0
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: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.5125 | 1.0 | 15 | 0.3521 | 0.8333 |
| 0.0868 | 2.0 | 30 | 0.1880 | 0.9 |
| 0.0293 | 3.0 | 45 | 0.0960 | 1.0 |
| 0.009 | 4.0 | 60 | 0.0717 | 1.0 |
| 0.0075 | 5.0 | 75 | 0.0694 | 1.0 |
Framework versions
- Transformers 4.57.6
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 12
Model tree for samadhi1/insurance_ai_detector
Base model
google/vit-base-patch16-224Evaluation results
- Accuracy on imagefolderself-reported1.000