hf-transformers-bot HF Staff commited on
Commit
b3b85d4
·
verified ·
1 Parent(s): dc8d4d8

Update tiny models for SamHQModel

Browse files
Files changed (3) hide show
  1. config.json +68 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +39 -0
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SamHQModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_range": 0.02,
7
+ "mask_decoder_config": {
8
+ "attention_downsample_rate": 2,
9
+ "hidden_act": "relu",
10
+ "hidden_size": 32,
11
+ "iou_head_depth": 3,
12
+ "iou_head_hidden_dim": 32,
13
+ "layer_norm_eps": 1e-06,
14
+ "mlp_dim": 64,
15
+ "model_type": "",
16
+ "num_attention_heads": 4,
17
+ "num_hidden_layers": 12,
18
+ "num_multimask_outputs": 3,
19
+ "vit_dim": 36
20
+ },
21
+ "model_type": "sam_hq",
22
+ "prompt_encoder_config": {
23
+ "hidden_act": "gelu",
24
+ "hidden_size": 32,
25
+ "image_embedding_size": 12,
26
+ "image_size": 24,
27
+ "layer_norm_eps": 1e-06,
28
+ "mask_input_channels": 4,
29
+ "model_type": "",
30
+ "num_point_embeddings": 4,
31
+ "patch_size": 2
32
+ },
33
+ "tie_word_embeddings": true,
34
+ "transformers_version": "5.16.0.dev0",
35
+ "vision_config": {
36
+ "attention_dropout": 0.0,
37
+ "dropout": 0.0,
38
+ "global_attn_indexes": [
39
+ 2,
40
+ 5,
41
+ 8,
42
+ 11
43
+ ],
44
+ "hidden_act": "gelu",
45
+ "hidden_size": 36,
46
+ "image_size": 24,
47
+ "initializer_factor": 1.0,
48
+ "initializer_range": 0.02,
49
+ "intermediate_size": 72,
50
+ "layer_norm_eps": 1e-06,
51
+ "mlp_dim": 144,
52
+ "mlp_ratio": 4.0,
53
+ "model_type": "sam_hq_vision_model",
54
+ "num_attention_heads": 4,
55
+ "num_channels": 3,
56
+ "num_hidden_layers": 12,
57
+ "num_pos_feats": 16,
58
+ "output_channels": 32,
59
+ "patch_size": 2,
60
+ "projection_dim": 62,
61
+ "qkv_bias": true,
62
+ "rel_pos_zero_init": false,
63
+ "scale": 18,
64
+ "use_abs_pos": true,
65
+ "use_rel_pos": true,
66
+ "window_size": 14
67
+ }
68
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a60a385fb16fac2f788611c9e6e18b8906a7002341fc08195f9d075097e2b1f3
3
+ size 1656604
preprocessor_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "longest_edge": 24,
4
+ "shortest_edge": 24
5
+ },
6
+ "do_convert_rgb": true,
7
+ "do_normalize": true,
8
+ "do_pad": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.485,
13
+ 0.456,
14
+ 0.406
15
+ ],
16
+ "image_processor_type": "SamImageProcessor",
17
+ "image_std": [
18
+ 0.229,
19
+ 0.224,
20
+ 0.225
21
+ ],
22
+ "mask_pad_size": {
23
+ "height": 256,
24
+ "width": 256
25
+ },
26
+ "mask_size": {
27
+ "longest_edge": 256
28
+ },
29
+ "pad_size": {
30
+ "height": 1024,
31
+ "width": 1024
32
+ },
33
+ "resample": 2,
34
+ "rescale_factor": 0.00392156862745098,
35
+ "size": {
36
+ "longest_edge": 24,
37
+ "shortest_edge": 24
38
+ }
39
+ }