Hubert bcca619066
[Feature] Support MobileViT backbone. (#1068)
* 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>
2022-10-18 17:05:59 +08:00

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