jagennath-hari commited on
Commit
eee9495
·
1 Parent(s): 28b71e3

update json

Browse files
Files changed (3) hide show
  1. config.json +1 -1
  2. config.yaml +0 -41
  3. configuration_dfine.py +1 -1
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "model_type": "dfine",
3
  "architectures": ["DFineModel"],
4
  "auto_map": {
5
  "AutoConfig": "Laudando-Associates-LLC/d-fine-small--configuration_dfine.DFineConfig",
 
1
  {
2
+ "model_type": "d_fine",
3
  "architectures": ["DFineModel"],
4
  "auto_map": {
5
  "AutoConfig": "Laudando-Associates-LLC/d-fine-small--configuration_dfine.DFineConfig",
config.yaml DELETED
@@ -1,41 +0,0 @@
1
- task: detection
2
-
3
- evaluator:
4
- type: CocoEvaluator
5
- iou_types: ['bbox', ]
6
-
7
- num_classes: 3 # your dataset classes
8
- remap_mscoco_category: False
9
-
10
- train_dataloader:
11
- type: DataLoader
12
- dataset:
13
- type: CocoDetection
14
- img_folder: /dataset/images/train
15
- ann_file: /dataset/annotations/instances_train.json
16
- return_masks: False
17
- transforms:
18
- type: Compose
19
- ops: ~
20
- shuffle: True
21
- num_workers: 4
22
- drop_last: True
23
- collate_fn:
24
- type: BatchImageCollateFunction
25
-
26
-
27
- val_dataloader:
28
- type: DataLoader
29
- dataset:
30
- type: CocoDetection
31
- img_folder: /dataset/images/val
32
- ann_file: /dataset/annotations/instances_val.json
33
- return_masks: False
34
- transforms:
35
- type: Compose
36
- ops: ~
37
- shuffle: False
38
- num_workers: 4
39
- drop_last: False
40
- collate_fn:
41
- type: BatchImageCollateFunction
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
configuration_dfine.py CHANGED
@@ -1,7 +1,7 @@
1
  from transformers import PretrainedConfig
2
 
3
  class DFineConfig(PretrainedConfig):
4
- model_type = "dfine"
5
 
6
  def __init__(
7
  self,
 
1
  from transformers import PretrainedConfig
2
 
3
  class DFineConfig(PretrainedConfig):
4
+ model_type = "d_fine"
5
 
6
  def __init__(
7
  self,