hf-transformers-bot commited on
Commit
d1c79d9
1 Parent(s): a46fc92

Upload tiny models for PvtV2Model

Browse files
Files changed (3) hide show
  1. config.json +82 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +40 -0
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "PvtV2Model"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "depths": [
7
+ 2,
8
+ 2,
9
+ 2,
10
+ 2
11
+ ],
12
+ "drop_path_rate": 0.0,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_sizes": [
16
+ 16,
17
+ 32,
18
+ 64,
19
+ 128
20
+ ],
21
+ "image_size": [
22
+ 64,
23
+ 64
24
+ ],
25
+ "initializer_range": 0.02,
26
+ "layer_norm_eps": 1e-06,
27
+ "linear_attention": false,
28
+ "mlp_ratios": [
29
+ 8,
30
+ 8,
31
+ 4,
32
+ 4
33
+ ],
34
+ "model_type": "pvt_v2",
35
+ "num_attention_heads": [
36
+ 1,
37
+ 2,
38
+ 4,
39
+ 8
40
+ ],
41
+ "num_channels": 3,
42
+ "num_encoder_blocks": 4,
43
+ "out_features": [
44
+ "stage1",
45
+ "stage2",
46
+ "stage3",
47
+ "stage4"
48
+ ],
49
+ "out_indices": [
50
+ 0,
51
+ 1,
52
+ 2,
53
+ 3
54
+ ],
55
+ "patch_sizes": [
56
+ 7,
57
+ 3,
58
+ 3,
59
+ 3
60
+ ],
61
+ "qkv_bias": true,
62
+ "sr_ratios": [
63
+ 8,
64
+ 4,
65
+ 2,
66
+ 1
67
+ ],
68
+ "stage_names": [
69
+ "stage1",
70
+ "stage2",
71
+ "stage3",
72
+ "stage4"
73
+ ],
74
+ "strides": [
75
+ 4,
76
+ 2,
77
+ 2,
78
+ 2
79
+ ],
80
+ "torch_dtype": "float32",
81
+ "transformers_version": "4.39.0.dev0"
82
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31d222c2a79ccd91a586a0d90d8b3afba6c5b3d7c3292b11af7e6f8f53ffbbf6
3
+ size 3108048
preprocessor_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "crop_size": [
17
+ 64,
18
+ 64
19
+ ],
20
+ "do_normalize": true,
21
+ "do_rescale": true,
22
+ "do_resize": true,
23
+ "image_mean": [
24
+ 0.485,
25
+ 0.456,
26
+ 0.406
27
+ ],
28
+ "image_processor_type": "PvtImageProcessor",
29
+ "image_std": [
30
+ 0.229,
31
+ 0.224,
32
+ 0.225
33
+ ],
34
+ "resample": 2,
35
+ "rescale_factor": 0.00392156862745098,
36
+ "size": {
37
+ "height": 64,
38
+ "width": 64
39
+ }
40
+ }