mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
* basic support for ConvMixer * simplify * add data pipeine config for timm * Add model readme and metafile * add unittest for convmixer * add copyright * modify * add tests * update model * add conv2dAdaptivePadding replacement * update model index * fix comments * Update checkpoint path Co-authored-by: mzr1996 <mzr1996@163.com>
12 lines
321 B
Python
12 lines
321 B
Python
# Model settings
|
|
model = dict(
|
|
type='ImageClassifier',
|
|
backbone=dict(type='ConvMixer', arch='1536/20'),
|
|
neck=dict(type='GlobalAveragePooling'),
|
|
head=dict(
|
|
type='LinearClsHead',
|
|
num_classes=1000,
|
|
in_channels=1536,
|
|
loss=dict(type='CrossEntropyLoss', loss_weight=1.0),
|
|
))
|