forked from open-mmlab/mmdetection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ubuntu
committed
Dec 1, 2023
1 parent
fe3f809
commit 50a8002
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
projects/CO-DETR/configs/codino/co_dino_5scale_swin_l_16xb1_16e_o365tococo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
projects/CO-DETR/configs/codino/co_dino_5scale_swin_l_16xb1_16e_o365tococo_deephome.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
_base_ = ['co_dino_5scale_swin_l_16xb1_16e_o365tococo.py'] | ||
|
||
# Modify dataset related settings | ||
data_root = '/media/deephome/data/' | ||
metainfo = { | ||
'classes': [str(i) for i in range(151)], | ||
'palette': [(i, i, i) for i in range(151)], | ||
} | ||
|
||
train_dataloader = dict( | ||
batch_size=1, | ||
dataset=dict( | ||
data_root=data_root, | ||
metainfo=metainfo, | ||
ann_file='deephome_train_labels.json', | ||
data_prefix=dict(img='train_images/'))) | ||
val_dataloader = dict( | ||
dataset=dict( | ||
data_root=data_root, | ||
metainfo=metainfo, | ||
ann_file='deephome_train_labels.json', | ||
data_prefix=dict(img='train_images/'))) | ||
test_dataloader = val_dataloader | ||
|
||
# Modify metric related settings | ||
val_evaluator = dict(ann_file=data_root + 'deephome_train_labels.json') | ||
test_evaluator = val_evaluator | ||
|
||
train_cfg = dict(val_interval=999) # No Validation |