Instructions to use TTNVXX/CartoonOrNot2H5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TTNVXX/CartoonOrNot2H5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="TTNVXX/CartoonOrNot2H5") 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("TTNVXX/CartoonOrNot2H5") model = AutoModelForImageClassification.from_pretrained("TTNVXX/CartoonOrNot2H5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_params.json from TTNVXX/CartoonOrNot2H5: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/TTNVXX/CartoonOrNot2H5/resolve/main/training_params.json
- Command line
-
hf download hf://TTNVXX/CartoonOrNot2H5/training_params.json
-
curl -L -o training_params.json https://huggingface.co/TTNVXX/CartoonOrNot2H5/resolve/main/training_params.json
807 Bytes
| { | |
| "data_path": "CartoonOrNot2H5/autotrain-data", | |
| "model": "google/vit-base-patch16-224", | |
| "username": "TTNVXX", | |
| "lr": 5e-05, | |
| "epochs": 3, | |
| "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": "validation", | |
| "logging_steps": -1, | |
| "project_name": "CartoonOrNot2H5", | |
| "auto_find_batch_size": false, | |
| "mixed_precision": null, | |
| "save_total_limit": 1, | |
| "save_strategy": "epoch", | |
| "push_to_hub": true, | |
| "repo_id": "TTNVXX/CartoonOrNot2H5", | |
| "evaluation_strategy": "epoch", | |
| "image_column": "autotrain_image", | |
| "target_column": "autotrain_label", | |
| "log": "none" | |
| } |