hf-transformers-bot commited on
Commit
a376c70
·
verified ·
1 Parent(s): 52867d5

Update tiny models for SamModel

Browse files
Files changed (3) hide show
  1. config.json +67 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +39 -0
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SamModel"
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": 2,
18
+ "num_multimask_outputs": 3
19
+ },
20
+ "model_type": "sam",
21
+ "prompt_encoder_config": {
22
+ "hidden_act": "gelu",
23
+ "hidden_size": 32,
24
+ "image_embedding_size": 12,
25
+ "image_size": 24,
26
+ "layer_norm_eps": 1e-06,
27
+ "mask_input_channels": 4,
28
+ "model_type": "",
29
+ "num_point_embeddings": 4,
30
+ "patch_size": 2
31
+ },
32
+ "tie_word_embeddings": true,
33
+ "transformers_version": "5.16.0.dev0",
34
+ "vision_config": {
35
+ "attention_dropout": 0.0,
36
+ "dropout": 0.0,
37
+ "global_attn_indexes": [
38
+ 2,
39
+ 5,
40
+ 8,
41
+ 11
42
+ ],
43
+ "hidden_act": "gelu",
44
+ "hidden_size": 36,
45
+ "image_size": 24,
46
+ "initializer_factor": 1.0,
47
+ "initializer_range": 0.02,
48
+ "intermediate_size": 72,
49
+ "layer_norm_eps": 1e-06,
50
+ "mlp_dim": 144,
51
+ "mlp_ratio": 4.0,
52
+ "model_type": "sam_vision_model",
53
+ "num_attention_heads": 4,
54
+ "num_channels": 3,
55
+ "num_hidden_layers": 2,
56
+ "num_pos_feats": 16,
57
+ "output_channels": 32,
58
+ "patch_size": 2,
59
+ "projection_dim": 62,
60
+ "qkv_bias": true,
61
+ "rel_pos_zero_init": false,
62
+ "scale": 18,
63
+ "use_abs_pos": true,
64
+ "use_rel_pos": true,
65
+ "window_size": 14
66
+ }
67
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdd7c223e8fd7d147517aaf761c907914b50490d70c69e9549ab10eb5a8f6ce8
3
+ size 380772
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
+ }