hf-transformers-bot commited on
Commit
38ecebf
·
verified ·
1 Parent(s): b398535

Update tiny models for Sam2VisionModel

Browse files
config.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Sam2VisionModel"
4
+ ],
5
+ "backbone_channel_list": [
6
+ 96,
7
+ 48,
8
+ 24,
9
+ 12
10
+ ],
11
+ "backbone_config": {
12
+ "blocks_per_stage": [
13
+ 1,
14
+ 2,
15
+ 7,
16
+ 2
17
+ ],
18
+ "embed_dim_per_stage": [
19
+ 12,
20
+ 24,
21
+ 48,
22
+ 96
23
+ ],
24
+ "global_attention_blocks": [
25
+ 5,
26
+ 7,
27
+ 9
28
+ ],
29
+ "hidden_act": "gelu",
30
+ "hidden_size": 12,
31
+ "image_size": 128,
32
+ "initializer_range": 0.02,
33
+ "layer_norm_eps": 1e-06,
34
+ "mlp_ratio": 4.0,
35
+ "model_type": "sam2_hiera_det_model",
36
+ "num_attention_heads": 1,
37
+ "num_attention_heads_per_stage": [
38
+ 1,
39
+ 2,
40
+ 4,
41
+ 8
42
+ ],
43
+ "num_channels": 3,
44
+ "num_query_pool_stages": 3,
45
+ "patch_kernel_size": 7,
46
+ "patch_padding": 3,
47
+ "patch_stride": 4,
48
+ "query_stride": [
49
+ 2,
50
+ 2
51
+ ],
52
+ "window_positional_embedding_background_size": [
53
+ 7,
54
+ 7
55
+ ],
56
+ "window_size_per_stage": [
57
+ 8,
58
+ 4,
59
+ 14,
60
+ 7
61
+ ]
62
+ },
63
+ "backbone_feature_sizes": [
64
+ [
65
+ 32,
66
+ 32
67
+ ],
68
+ [
69
+ 16,
70
+ 16
71
+ ],
72
+ [
73
+ 8,
74
+ 8
75
+ ]
76
+ ],
77
+ "dtype": "float32",
78
+ "fpn_hidden_size": 32,
79
+ "fpn_kernel_size": 1,
80
+ "fpn_padding": 0,
81
+ "fpn_stride": 1,
82
+ "fpn_top_down_levels": [
83
+ 2,
84
+ 3
85
+ ],
86
+ "hidden_act": "gelu",
87
+ "initializer_range": 0.02,
88
+ "layer_norm_eps": 1e-06,
89
+ "model_type": "sam2_vision_model",
90
+ "num_feature_levels": 3,
91
+ "transformers_version": "5.16.0.dev0"
92
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a67c58a944843939511b55ea311f9dd79feb60b20d502ccbbce1995e0349edb1
3
+ size 1755328
preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_format": "channels_first",
3
+ "default_to_square": true,
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "Sam2ImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "mask_size": {
20
+ "height": 256,
21
+ "width": 256
22
+ },
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 1024,
27
+ "width": 1024
28
+ }
29
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_format": "channels_first",
3
+ "default_to_square": true,
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "resample": 2,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "return_metadata": false,
21
+ "size": {
22
+ "height": 1024,
23
+ "width": 1024
24
+ },
25
+ "video_processor_type": "Sam2VideoVideoProcessor"
26
+ }