Instructions to use Mooshie/swinv2_base_window8_256.dbv4-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use Mooshie/swinv2_base_window8_256.dbv4-full with timm:
import timm model = timm.create_model("hf_hub:Mooshie/swinv2_base_window8_256.dbv4-full", pretrained=True) - Transformers
How to use Mooshie/swinv2_base_window8_256.dbv4-full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Mooshie/swinv2_base_window8_256.dbv4-full") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mooshie/swinv2_base_window8_256.dbv4-full", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "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": 448, | |
| "type": "resize" | |
| }, | |
| { | |
| "size": [ | |
| 448, | |
| 448 | |
| ], | |
| "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": 448, | |
| "type": "resize" | |
| }, | |
| { | |
| "size": [ | |
| 448, | |
| 448 | |
| ], | |
| "type": "center_crop" | |
| }, | |
| { | |
| "type": "maybe_to_tensor" | |
| }, | |
| { | |
| "mean": [ | |
| 0.48500001430511475, | |
| 0.4560000002384186, | |
| 0.4059999883174896 | |
| ], | |
| "std": [ | |
| 0.2290000021457672, | |
| 0.2240000069141388, | |
| 0.22499999403953552 | |
| ], | |
| "type": "normalize" | |
| } | |
| ] | |
| } |