File size: 3,066 Bytes
8ed663a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
  "architectures": [
    "Sam2Model"
  ],
  "dtype": "float32",
  "image_size": 128,
  "initializer_range": 0.02,
  "mask_decoder_config": {
    "attention_downsample_rate": 2,
    "dynamic_multimask_stability_delta": 0.05,
    "dynamic_multimask_stability_thresh": 0.98,
    "dynamic_multimask_via_stability": true,
    "hidden_act": "relu",
    "hidden_size": 32,
    "iou_head_depth": 3,
    "iou_head_hidden_dim": 32,
    "mlp_dim": 64,
    "model_type": "",
    "num_attention_heads": 4,
    "num_hidden_layers": 2,
    "num_multimask_outputs": 3
  },
  "mask_downsampler_embed_dim": 32,
  "memory_attention_feed_forward_hidden_size": 32,
  "memory_attention_hidden_size": 12,
  "memory_attention_num_layers": 1,
  "memory_encoder_hidden_size": 32,
  "memory_fuser_embed_dim": 32,
  "model_type": "sam2",
  "prompt_encoder_config": {
    "hidden_act": "gelu",
    "hidden_size": 32,
    "image_size": 128,
    "layer_norm_eps": 1e-06,
    "mask_input_channels": 8,
    "model_type": "",
    "num_point_embeddings": 4,
    "patch_size": 16,
    "scale": 1
  },
  "transformers_version": "5.16.0.dev0",
  "vision_config": {
    "backbone_channel_list": [
      96,
      48,
      24,
      12
    ],
    "backbone_config": {
      "_name_or_path": "",
      "architectures": null,
      "blocks_per_stage": [
        1,
        2,
        7,
        2
      ],
      "chunk_size_feed_forward": 0,
      "dtype": null,
      "embed_dim_per_stage": [
        12,
        24,
        48,
        96
      ],
      "global_attention_blocks": [
        5,
        7,
        9
      ],
      "hidden_act": "gelu",
      "hidden_size": 12,
      "id2label": {
        "0": "LABEL_0",
        "1": "LABEL_1"
      },
      "image_size": 128,
      "initializer_range": 0.02,
      "is_encoder_decoder": false,
      "label2id": {
        "LABEL_0": 0,
        "LABEL_1": 1
      },
      "layer_norm_eps": 1e-06,
      "mlp_ratio": 4.0,
      "model_type": "sam2_hiera_det_model",
      "num_attention_heads": 1,
      "num_attention_heads_per_stage": [
        1,
        2,
        4,
        8
      ],
      "num_channels": 3,
      "num_query_pool_stages": 3,
      "output_attentions": false,
      "output_hidden_states": false,
      "patch_kernel_size": 7,
      "patch_padding": 3,
      "patch_stride": 4,
      "problem_type": null,
      "query_stride": [
        2,
        2
      ],
      "return_dict": true,
      "window_positional_embedding_background_size": [
        7,
        7
      ],
      "window_size_per_stage": [
        8,
        4,
        14,
        7
      ]
    },
    "backbone_feature_sizes": [
      [
        32,
        32
      ],
      [
        16,
        16
      ],
      [
        8,
        8
      ]
    ],
    "fpn_hidden_size": 32,
    "fpn_kernel_size": 1,
    "fpn_padding": 0,
    "fpn_stride": 1,
    "fpn_top_down_levels": [
      2,
      3
    ],
    "hidden_act": "gelu",
    "initializer_range": 0.02,
    "layer_norm_eps": 1e-06,
    "model_type": "sam2_vision_model",
    "num_feature_levels": 3
  }
}