tiny-random-Sam2Model / config.json
hf-transformers-bot's picture
Update tiny models for Sam2Model
8ed663a verified
Raw
History Blame Contribute Delete
3.07 kB
{
"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
}
}