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
File size: 989 Bytes
802c2f4 | 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 | {
"_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"
}
|