IMvision12 commited on
Commit
21b07a4
·
verified ·
1 Parent(s): 5aefffb

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

Browse files
Files changed (1) hide show
  1. kf_config.json +29 -25
kf_config.json CHANGED
@@ -1,33 +1,37 @@
1
  {
2
  "library_name": "kerasformers",
3
- "kerasformers_version": "1.1.3",
4
  "model_module": "kerasformers.models.mask2former",
5
  "model_class": "Mask2FormerUniversalSegment",
6
  "variant": "mask2former-swin-tiny-coco-instance",
7
  "weights": "model.weights.h5",
 
 
8
  "model_type": "mask2former",
9
- "backbone_embed_dim": 96,
10
- "backbone_depths": [
11
- 2,
12
- 2,
13
- 6,
14
- 2
15
- ],
16
- "backbone_num_heads": [
17
- 3,
18
- 6,
19
- 12,
20
- 24
21
- ],
22
- "backbone_window_size": 7,
23
- "hidden_dim": 256,
24
- "mask_feature_size": 256,
25
- "encoder_num_layers": 6,
26
- "encoder_ffn_dim": 1024,
27
- "decoder_num_layers": 9,
28
- "decoder_ffn_dim": 2048,
29
- "num_heads": 8,
30
- "num_queries": 100,
31
- "num_classes": 80,
32
- "image_size": 384
 
 
33
  }
 
1
  {
2
  "library_name": "kerasformers",
3
+ "kerasformers_version": "1.2.1",
4
  "model_module": "kerasformers.models.mask2former",
5
  "model_class": "Mask2FormerUniversalSegment",
6
  "variant": "mask2former-swin-tiny-coco-instance",
7
  "weights": "model.weights.h5",
8
+ "schema_version": 2,
9
+ "dtype": "float32",
10
  "model_type": "mask2former",
11
+ "vision_config": {
12
+ "backbone_embed_dim": 96,
13
+ "backbone_depths": [
14
+ 2,
15
+ 2,
16
+ 6,
17
+ 2
18
+ ],
19
+ "backbone_num_heads": [
20
+ 3,
21
+ 6,
22
+ 12,
23
+ 24
24
+ ],
25
+ "backbone_window_size": 7,
26
+ "hidden_dim": 256,
27
+ "mask_feature_size": 256,
28
+ "encoder_num_layers": 6,
29
+ "encoder_ffn_dim": 1024,
30
+ "decoder_num_layers": 9,
31
+ "decoder_ffn_dim": 2048,
32
+ "num_heads": 8,
33
+ "num_queries": 100,
34
+ "num_classes": 80,
35
+ "image_size": 384
36
+ }
37
  }