Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:Fix two of the CO-DETR config files #11809

Open
wants to merge 1 commit into
base: dev-3.x
Choose a base branch
from
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)