mmclassification/configs/imagenet/resnet50_batch256_label_smooth.py

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),
))