mmpretrain/configs/resnet/resnet50_b32x8_label_smooth...

13 lines
306 B
Python

_base_ = ['./resnet50_imagenet_bs256.py']
model = dict(
head=dict(
type='LinearHead',
num_classes=1000,
in_channels=2048,
loss=dict(
type='LabelSmoothLoss',
loss_weight=1.0,
label_smooth_val=0.1,
num_classes=1000),
))