Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_base_ = ['co_dino_5scale_r50_lsj_8xb2_1x_coco.py']

param_scheduler = [dict(milestones=[30])]
param_scheduler = [dict(type='MultiStepLR', milestones=[30])]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be better to do it like in base?

https://github.com/open-mmlab/mmdetection/blob/main/projects/CO-DETR/configs/codino/co_dino_5scale_r50_lsj_8xb2_1x_coco.py#L335

max_epochs = 12
train_cfg = dict(max_epochs=max_epochs)

param_scheduler = [
    dict(
        type='MultiStepLR',
        begin=0,# Defaults to 0.
        end=max_epochs, # Defaults to INF.
        by_epoch=True, # Defaults to True
        milestones=[30],
        gamma=0.1) # gamma=0.1 - default
]

train_cfg = dict(max_epochs=36)
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# model settings
model = dict(backbone=dict(drop_path_rate=0.6))

param_scheduler = [dict(milestones=[30])]
param_scheduler = [dict(type='MultiStepLR', milestones=[30])]
train_cfg = dict(max_epochs=36)