File size: 3,131 Bytes
6eb610d |
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 |
{
"module": "keras_hub.src.models.sam.sam_backbone",
"class_name": "SAMBackbone",
"config": {
"name": "sam_backbone",
"trainable": true,
"image_encoder": {
"module": "keras_hub.src.models.vit_det.vit_det_backbone",
"class_name": "ViTDetBackbone",
"config": {
"name": "vi_t_det_backbone",
"trainable": true,
"image_shape": [
1024,
1024,
3
],
"patch_size": 16,
"hidden_size": 1024,
"num_layers": 24,
"intermediate_dim": 4096,
"num_heads": 16,
"num_output_channels": 256,
"use_bias": true,
"use_abs_pos": true,
"use_rel_pos": true,
"window_size": 14,
"global_attention_layer_indices": [
5,
11,
17,
23
],
"layer_norm_epsilon": 1e-06
},
"registered_name": "keras_hub>ViTDetBackbone"
},
"prompt_encoder": {
"module": "keras_hub.src.models.sam.sam_prompt_encoder",
"class_name": "SAMPromptEncoder",
"config": {
"name": "sam_prompt_encoder",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "float32"
},
"registered_name": null
},
"hidden_size": 256,
"image_embedding_size": [
64,
64
],
"input_image_size": [
1024,
1024
],
"mask_in_channels": 16,
"activation": "gelu"
},
"registered_name": "keras_hub>SAMPromptEncoder"
},
"mask_decoder": {
"module": "keras_hub.src.models.sam.sam_mask_decoder",
"class_name": "SAMMaskDecoder",
"config": {
"name": "sam_mask_decoder",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "float32"
},
"registered_name": null
},
"hidden_size": 256,
"num_layers": 2,
"intermediate_dim": 2048,
"num_heads": 8,
"embedding_dim": 256,
"num_multimask_outputs": 3,
"iou_head_depth": 3,
"iou_head_hidden_dim": 256,
"activation": "gelu"
},
"registered_name": "keras_hub>SAMMaskDecoder"
}
},
"registered_name": "keras_hub>SAMBackbone"
} |