Skip to content

Commit

Permalink
align weight decay to the mmdet2
Browse files Browse the repository at this point in the history
  • Loading branch information
Noietch committed Feb 24, 2024
1 parent e93f8d9 commit 8dc3901
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/dp/datasets/coco_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)
]
train_dataloader = dict(
batch_size=4,
batch_size=2,
num_workers=2,
persistent_workers=True,
sampler=dict(type='DefaultSampler', shuffle=True),
Expand Down
2 changes: 1 addition & 1 deletion configs/dp/schedules/2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# optimizer
optim_wrapper = dict(
type='OptimWrapper',
optimizer=dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer=dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=2.5e-5)
)

# Default setting for scaling LR automatically
Expand Down
2 changes: 1 addition & 1 deletion configs/dp/schedules/40k.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# optimizer
optim_wrapper = dict(
type='OptimWrapper',
optimizer=dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001)
optimizer=dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=2.5e-5)
)
# Default setting for scaling LR automatically
# - `enable` means enable scaling LR automatically
Expand Down
1 change: 1 addition & 0 deletions oadp/dp/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

BLOCK_BBOXES_FLAG = 2
OBJECT_BBOXES_FLAG = 3
np.float = np.float32 # type: ignore


class DebugMixin(BaseDetDataset):
Expand Down

0 comments on commit 8dc3901

Please sign in to comment.