mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
* init * fix * add config * add meta * add unittest * fix for comments * Imporvee docstring and support custom arch. * Update README * Update windows CI Co-authored-by: mzr1996 <mzr1996@163.com>
13 lines
342 B
Python
13 lines
342 B
Python
# model settings
|
|
model = dict(
|
|
type='ImageClassifier',
|
|
backbone=dict(type='MobileViT', arch='xx_small'),
|
|
neck=dict(type='GlobalAveragePooling'),
|
|
head=dict(
|
|
type='LinearClsHead',
|
|
num_classes=1000,
|
|
in_channels=320,
|
|
loss=dict(type='CrossEntropyLoss', loss_weight=1.0),
|
|
topk=(1, 5),
|
|
))
|