mmpretrain/configs/mobilevit/mobilevit-xsmall_8xb128_in1k.py
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

31 lines
732 B
Python

_base_ = [
'../_base_/models/mobilevit/mobilevit_xs.py',
'../_base_/datasets/imagenet_bs32.py',
'../_base_/default_runtime.py',
'../_base_/schedules/imagenet_bs256.py',
]
# no normalize for original implements
data_preprocessor = dict(
# RGB format normalization parameters
mean=[0, 0, 0],
std=[255, 255, 255],
# use bgr directly
to_rgb=False,
)
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='ResizeEdge', scale=288, edge='short'),
dict(type='CenterCrop', crop_size=256),
dict(type='PackClsInputs'),
]
train_dataloader = dict(batch_size=128)
val_dataloader = dict(
batch_size=128,
dataset=dict(pipeline=test_pipeline),
)
test_dataloader = val_dataloader