ai-photo-gallery / configs /_base_ /models /mlp_mixer_large_patch16.py
KyanChen's picture
init
f549064
raw
history blame
611 Bytes
# model settings
model = dict(
type='ImageClassifier',
backbone=dict(
type='MlpMixer',
arch='l',
img_size=224,
patch_size=16,
drop_rate=0.1,
init_cfg=[
dict(
type='Kaiming',
layer='Conv2d',
mode='fan_in',
nonlinearity='linear')
]),
neck=dict(type='GlobalAveragePooling', dim=1),
head=dict(
type='LinearClsHead',
num_classes=1000,
in_channels=1024,
loss=dict(type='CrossEntropyLoss', loss_weight=1.0),
topk=(1, 5),
),
)