Skip to content

Commit

Permalink
move init_cfg into model.update
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyuanyin committed Jul 31, 2023
1 parent 57c59fe commit 7840fb5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .._base_.schedules.imagenet_bs1024_adamw_swin import *

model.update(
backbone=dict(drop_rate=0, drop_path_rate=0.1),
backbone=dict(drop_rate=0, drop_path_rate=0.1, init_cfg=None),
head=dict(loss=dict(mode='original')),
init_cfg=[
dict(type=TruncNormalInit, layer='Linear', std=.02),
Expand All @@ -23,7 +23,6 @@
train_cfg=dict(
augments=[dict(type=Mixup, alpha=0.8),
dict(type=CutMix, alpha=1.0)]))
model.backbone.init_cfg = []

# dataset settings
train_dataloader.update(batch_size=128)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
backbone=dict(patch_size=32),
head=dict(
hidden_dim=3072,
# loss=dict(type=CrossEntropyLoss, loss_weight=1.0),
topk=(1, 5),
),
train_cfg=dict(augments=dict(type=Mixup, alpha=0.2)),
Expand Down

0 comments on commit 7840fb5

Please sign in to comment.