Instructions to use Mooshie/caformer_b36.dbv4-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use Mooshie/caformer_b36.dbv4-full with timm:
import timm model = timm.create_model("hf-hub:Mooshie/caformer_b36.dbv4-full", pretrained=True) - Transformers
How to use Mooshie/caformer_b36.dbv4-full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Mooshie/caformer_b36.dbv4-full") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mooshie/caformer_b36.dbv4-full", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocess.json from Mooshie/caformer_b36.dbv4-full: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/Mooshie/caformer_b36.dbv4-full/resolve/main/preprocess.json
- Command line
-
hf download hf://Mooshie/caformer_b36.dbv4-full/preprocess.json
-
curl -L -o preprocess.json https://huggingface.co/Mooshie/caformer_b36.dbv4-full/resolve/main/preprocess.json
2.13 kB
| { | |
| "pre": [ | |
| { | |
| "background_color": "white", | |
| "interpolation": "bilinear", | |
| "size": [ | |
| 512, | |
| 512 | |
| ], | |
| "type": "pad_to_size" | |
| } | |
| ], | |
| "test": [ | |
| { | |
| "background_color": "white", | |
| "interpolation": "bilinear", | |
| "size": [ | |
| 512, | |
| 512 | |
| ], | |
| "type": "pad_to_size" | |
| }, | |
| { | |
| "antialias": true, | |
| "interpolation": "bicubic", | |
| "max_size": null, | |
| "size": 384, | |
| "type": "resize" | |
| }, | |
| { | |
| "size": [ | |
| 384, | |
| 384 | |
| ], | |
| "type": "center_crop" | |
| }, | |
| { | |
| "type": "maybe_to_tensor" | |
| }, | |
| { | |
| "mean": [ | |
| 0.48500001430511475, | |
| 0.4560000002384186, | |
| 0.4059999883174896 | |
| ], | |
| "std": [ | |
| 0.2290000021457672, | |
| 0.2240000069141388, | |
| 0.22499999403953552 | |
| ], | |
| "type": "normalize" | |
| } | |
| ], | |
| "val": [ | |
| { | |
| "background_color": "white", | |
| "interpolation": "bilinear", | |
| "size": [ | |
| 512, | |
| 512 | |
| ], | |
| "type": "pad_to_size" | |
| }, | |
| { | |
| "antialias": true, | |
| "interpolation": "bicubic", | |
| "max_size": null, | |
| "size": 384, | |
| "type": "resize" | |
| }, | |
| { | |
| "size": [ | |
| 384, | |
| 384 | |
| ], | |
| "type": "center_crop" | |
| }, | |
| { | |
| "type": "maybe_to_tensor" | |
| }, | |
| { | |
| "mean": [ | |
| 0.48500001430511475, | |
| 0.4560000002384186, | |
| 0.4059999883174896 | |
| ], | |
| "std": [ | |
| 0.2290000021457672, | |
| 0.2240000069141388, | |
| 0.22499999403953552 | |
| ], | |
| "type": "normalize" | |
| } | |
| ] | |
| } |