IMvision12 commited on
Commit
edf6ba8
·
verified ·
1 Parent(s): abdfe19

Upgrade kf_config.json to v2 (nested config + dtype)

Browse files
Files changed (1) hide show
  1. kf_config.json +20 -16
kf_config.json CHANGED
@@ -1,24 +1,28 @@
1
  {
2
  "library_name": "kerasformers",
3
- "kerasformers_version": "1.1.3",
4
  "model_module": "kerasformers.models.sam",
5
  "model_class": "SAMPromptableSegment",
6
  "variant": "sam_vit_base",
7
  "weights": "model.weights.h5",
 
 
8
  "model_type": "sam",
9
- "vision_hidden_size": 768,
10
- "vision_num_hidden_layers": 12,
11
- "vision_num_attention_heads": 12,
12
- "vision_mlp_dim": 3072,
13
- "vision_global_attn_indexes": [
14
- 2,
15
- 5,
16
- 8,
17
- 11
18
- ],
19
- "num_multimask_outputs": 3,
20
- "multimask_output": true,
21
- "enable_boxes": false,
22
- "enable_masks": false,
23
- "image_size": 1024
 
 
24
  }
 
1
  {
2
  "library_name": "kerasformers",
3
+ "kerasformers_version": "1.2.1",
4
  "model_module": "kerasformers.models.sam",
5
  "model_class": "SAMPromptableSegment",
6
  "variant": "sam_vit_base",
7
  "weights": "model.weights.h5",
8
+ "schema_version": 2,
9
+ "dtype": "float32",
10
  "model_type": "sam",
11
+ "vision_config": {
12
+ "vision_hidden_size": 768,
13
+ "vision_num_hidden_layers": 12,
14
+ "vision_num_attention_heads": 12,
15
+ "vision_mlp_dim": 3072,
16
+ "vision_global_attn_indexes": [
17
+ 2,
18
+ 5,
19
+ 8,
20
+ 11
21
+ ],
22
+ "num_multimask_outputs": 3,
23
+ "multimask_output": true,
24
+ "enable_boxes": false,
25
+ "enable_masks": false,
26
+ "image_size": 1024
27
+ }
28
  }