Instructions to use mezattn/eva02_base_patch14_448_moderation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mezattn/eva02_base_patch14_448_moderation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="mezattn/eva02_base_patch14_448_moderation") 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("mezattn/eva02_base_patch14_448_moderation") model = AutoModelForImageClassification.from_pretrained("mezattn/eva02_base_patch14_448_moderation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from mezattn/eva02_base_patch14_448_moderation: direct link, hf CLI and curl.
- Browser
- Download file 989 Bytes
-
https://huggingface.co/mezattn/eva02_base_patch14_448_moderation/resolve/main/config.json
- Command line
-
hf download hf://mezattn/eva02_base_patch14_448_moderation/config.json
-
curl -L -o config.json https://huggingface.co/mezattn/eva02_base_patch14_448_moderation/resolve/main/config.json
989 Bytes
| { | |
| "_name_or_path": "timm/eva02_base_patch14_448.mim_in22k_ft_in22k_in1k", | |
| "architecture": "eva02_base_patch14_448", | |
| "architectures": [ | |
| "TimmWrapperForImageClassification" | |
| ], | |
| "do_pooling": true, | |
| "global_pool": "avg", | |
| "initializer_range": 0.02, | |
| "label_names": [ | |
| "neutral", | |
| "low", | |
| "medium", | |
| "high" | |
| ], | |
| "model_type": "timm_wrapper", | |
| "num_classes": 4, | |
| "num_features": 768, | |
| "pretrained_cfg": { | |
| "classifier": "head", | |
| "crop_mode": "squash", | |
| "crop_pct": 1.0, | |
| "custom_load": false, | |
| "first_conv": "patch_embed.proj", | |
| "fixed_input_size": true, | |
| "input_size": [ | |
| 3, | |
| 448, | |
| 448 | |
| ], | |
| "interpolation": "bicubic", | |
| "license": "mit", | |
| "mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "pool_size": null, | |
| "std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "tag": "mim_in22k_ft_in22k_in1k" | |
| }, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.48.1" | |
| } | |