Instructions to use liedson0509/lesoes-bucais-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use liedson0509/lesoes-bucais-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="liedson0509/lesoes-bucais-classifier") 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("liedson0509/lesoes-bucais-classifier") model = AutoModelForImageClassification.from_pretrained("liedson0509/lesoes-bucais-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_params.json from liedson0509/lesoes-bucais-classifier: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/liedson0509/lesoes-bucais-classifier/resolve/main/training_params.json
- Command line
-
hf download hf://liedson0509/lesoes-bucais-classifier/training_params.json
-
curl -L -o training_params.json https://huggingface.co/liedson0509/lesoes-bucais-classifier/resolve/main/training_params.json
787 Bytes
| { | |
| "data_path": "/content/meu_dataset/Dataset", | |
| "model": "google/vit-base-patch16-224", | |
| "username": "liedson0509", | |
| "lr": 2e-05, | |
| "epochs": 10, | |
| "batch_size": 8, | |
| "warmup_ratio": 0.1, | |
| "gradient_accumulation": 1, | |
| "optimizer": "adamw_torch", | |
| "scheduler": "linear", | |
| "weight_decay": 0.0, | |
| "max_grad_norm": 1.0, | |
| "seed": 42, | |
| "train_split": "train", | |
| "valid_split": null, | |
| "logging_steps": -1, | |
| "project_name": "lesoes-bucais-classifier", | |
| "auto_find_batch_size": false, | |
| "mixed_precision": null, | |
| "save_total_limit": 1, | |
| "push_to_hub": true, | |
| "eval_strategy": "epoch", | |
| "image_column": "image", | |
| "target_column": "label", | |
| "log": "none", | |
| "early_stopping_patience": 5, | |
| "early_stopping_threshold": 0.01 | |
| } |