Instructions to use AashishKumar/AIvisionGuard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AashishKumar/AIvisionGuard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="AashishKumar/AIvisionGuard") 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("AashishKumar/AIvisionGuard") model = AutoModelForImageClassification.from_pretrained("AashishKumar/AIvisionGuard", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,239 Bytes
2ac81de | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | {
"best_metric": 0.04810093343257904,
"best_model_checkpoint": "AIvisionGuard/checkpoint-1688",
"epoch": 1.0,
"eval_steps": 500,
"global_step": 1688,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.3,
"grad_norm": 5.197747707366943,
"learning_rate": 2.175824175824176e-06,
"loss": 0.0429,
"step": 500
},
{
"epoch": 0.59,
"grad_norm": 3.6927614212036133,
"learning_rate": 1.26007326007326e-06,
"loss": 0.0382,
"step": 1000
},
{
"epoch": 0.89,
"grad_norm": 0.3490743637084961,
"learning_rate": 3.443223443223443e-07,
"loss": 0.0383,
"step": 1500
},
{
"epoch": 1.0,
"eval_accuracy": 0.9820833333333333,
"eval_loss": 0.04810093343257904,
"eval_runtime": 119.5303,
"eval_samples_per_second": 100.393,
"eval_steps_per_second": 3.137,
"step": 1688
}
],
"logging_steps": 500,
"max_steps": 1688,
"num_input_tokens_seen": 0,
"num_train_epochs": 1,
"save_steps": 500,
"total_flos": 8.369134878375936e+18,
"train_batch_size": 64,
"trial_name": null,
"trial_params": null
}
|