Instructions to use microsoft/swinv2-base-patch4-window12-192-22k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/swinv2-base-patch4-window12-192-22k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="microsoft/swinv2-base-patch4-window12-192-22k") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("microsoft/swinv2-base-patch4-window12-192-22k") model = AutoModelForImageClassification.from_pretrained("microsoft/swinv2-base-patch4-window12-192-22k") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
6ffc911
1
Parent(s): d5ba054
Add updated weights
Browse files- config.json +7 -1
- pytorch_model.bin +2 -2
config.json
CHANGED
|
@@ -43716,9 +43716,15 @@
|
|
| 43716 |
"num_layers": 4,
|
| 43717 |
"patch_size": 4,
|
| 43718 |
"path_norm": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43719 |
"qkv_bias": true,
|
| 43720 |
"torch_dtype": "float32",
|
| 43721 |
-
"transformers_version": "4.
|
| 43722 |
"use_absolute_embeddings": false,
|
| 43723 |
"window_size": 12
|
| 43724 |
}
|
|
|
|
| 43716 |
"num_layers": 4,
|
| 43717 |
"patch_size": 4,
|
| 43718 |
"path_norm": true,
|
| 43719 |
+
"pretrained_window_sizes": [
|
| 43720 |
+
0,
|
| 43721 |
+
0,
|
| 43722 |
+
0,
|
| 43723 |
+
0
|
| 43724 |
+
],
|
| 43725 |
"qkv_bias": true,
|
| 43726 |
"torch_dtype": "float32",
|
| 43727 |
+
"transformers_version": "4.21.0.dev0",
|
| 43728 |
"use_absolute_embeddings": false,
|
| 43729 |
"window_size": 12
|
| 43730 |
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a928b9553eb27eea3fccb2d5714f77382f4530117ed40627d8411bf08586ac7d
|
| 3 |
+
size 437281999
|