matejpekar commited on
Commit
9c78786
·
verified ·
1 Parent(s): ce546e5

Upload model

Browse files
Files changed (2) hide show
  1. config.json +11 -0
  2. configuration.py +4 -0
config.json CHANGED
@@ -7,6 +7,15 @@
7
  "AutoModelForObjectDetection": "modeling.LSPDetrModel"
8
  },
9
  "backbone": "microsoft/swinv2-tiny-patch4-window16-256",
 
 
 
 
 
 
 
 
 
10
  "depths": [
11
  6,
12
  2,
@@ -31,5 +40,7 @@
31
  ],
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.51.3",
 
 
34
  "window_size": 16
35
  }
 
7
  "AutoModelForObjectDetection": "modeling.LSPDetrModel"
8
  },
9
  "backbone": "microsoft/swinv2-tiny-patch4-window16-256",
10
+ "backbone_config": null,
11
+ "backbone_kwargs": {
12
+ "out_features": [
13
+ "stage1",
14
+ "stage2",
15
+ "stage3",
16
+ "stage4"
17
+ ]
18
+ },
19
  "depths": [
20
  6,
21
  2,
 
40
  ],
41
  "torch_dtype": "float32",
42
  "transformers_version": "4.51.3",
43
+ "use_pretrained_backbone": true,
44
+ "use_timm_backbone": false,
45
  "window_size": 16
46
  }
configuration.py CHANGED
@@ -37,7 +37,11 @@ class LSPDetrConfig(PretrainedConfig):
37
  backbone_kwargs=backbone_kwargs,
38
  )
39
 
 
 
40
  self.backbone = backbone
 
 
41
  self.dim = dim
42
  self.num_classes = num_classes
43
  self.depths = depths
 
37
  backbone_kwargs=backbone_kwargs,
38
  )
39
 
40
+ self.use_timm_backbone = use_timm_backbone
41
+ self.use_pretrained_backbone = use_pretrained_backbone
42
  self.backbone = backbone
43
+ self.backbone_config = backbone_config
44
+ self.backbone_kwargs = backbone_kwargs
45
  self.dim = dim
46
  self.num_classes = num_classes
47
  self.depths = depths