hf-transformers-bot
commited on
Commit
•
3a3ba58
1
Parent(s):
74daa9f
Upload tiny models for Swinv2Backbone
Browse files- config.json +56 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Swinv2Backbone"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0.0,
|
6 |
+
"depths": [
|
7 |
+
1,
|
8 |
+
2,
|
9 |
+
1
|
10 |
+
],
|
11 |
+
"drop_path_rate": 0.1,
|
12 |
+
"embed_dim": 16,
|
13 |
+
"encoder_stride": 8,
|
14 |
+
"hidden_act": "gelu",
|
15 |
+
"hidden_dropout_prob": 0.0,
|
16 |
+
"hidden_size": 64,
|
17 |
+
"image_size": 32,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"layer_norm_eps": 1e-05,
|
20 |
+
"mlp_ratio": 2.0,
|
21 |
+
"model_type": "swinv2",
|
22 |
+
"num_channels": 3,
|
23 |
+
"num_heads": [
|
24 |
+
2,
|
25 |
+
2,
|
26 |
+
4
|
27 |
+
],
|
28 |
+
"num_layers": 3,
|
29 |
+
"out_features": [
|
30 |
+
"stage1",
|
31 |
+
"stage2"
|
32 |
+
],
|
33 |
+
"out_indices": [
|
34 |
+
1,
|
35 |
+
2
|
36 |
+
],
|
37 |
+
"patch_size": 2,
|
38 |
+
"path_norm": true,
|
39 |
+
"pretrained_window_sizes": [
|
40 |
+
0,
|
41 |
+
0,
|
42 |
+
0,
|
43 |
+
0
|
44 |
+
],
|
45 |
+
"qkv_bias": true,
|
46 |
+
"stage_names": [
|
47 |
+
"stem",
|
48 |
+
"stage1",
|
49 |
+
"stage2",
|
50 |
+
"stage3"
|
51 |
+
],
|
52 |
+
"torch_dtype": "float32",
|
53 |
+
"transformers_version": "4.37.0.dev0",
|
54 |
+
"use_absolute_embeddings": false,
|
55 |
+
"window_size": 2
|
56 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6cfe89bce1bcfffcfcdec471b660e2e0e728c2a1def04c80b79ecd30dd4a329
|
3 |
+
size 308280
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": 32,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 32,
|
21 |
+
"width": 32
|
22 |
+
}
|
23 |
+
}
|