sam2_hiera_small / kf_config.json
IMvision12's picture
Upgrade kf_config.json to v2 (nested config + weight_dtype)
5ce3a46 verified
Raw
History Blame Contribute Delete
1.04 kB
{
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.sam2",
"model_class": "SAM2PromptableSegment",
"variant": "sam2_hiera_small",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "sam2",
"vision_config": {
"hidden_dim": 96,
"blocks_per_stage": [
1,
2,
11,
2
],
"embed_dim_per_stage": [
96,
192,
384,
768
],
"num_attention_heads_per_stage": [
1,
2,
4,
8
],
"window_size_per_stage": [
8,
4,
14,
7
],
"global_attention_blocks": [
7,
10,
13
],
"backbone_channel_list": [
768,
384,
192,
96
],
"window_pos_embed_bg_size": null,
"num_multimask_outputs": 3,
"include_box_input": false,
"include_mask_input": false,
"multimask_output": true,
"image_size": 1024
}
}