mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
* [Improve] Speed up data preprocessor. * Add ClsDataSample serialization override functions. * Add unit tests * Modify configs to fit new mixup args. * Fix `num_classes` of the ImageNet-21k config. * Update docs.
16 lines
398 B
Python
16 lines
398 B
Python
_base_ = [
|
|
'../_base_/models/vit-base-p32.py',
|
|
'../_base_/datasets/imagenet_bs64_pil_resize_autoaug.py',
|
|
'../_base_/schedules/imagenet_bs4096_AdamW.py',
|
|
'../_base_/default_runtime.py'
|
|
]
|
|
|
|
# model setting
|
|
model = dict(
|
|
head=dict(hidden_dim=3072),
|
|
train_cfg=dict(augments=dict(type='Mixup', alpha=0.2)),
|
|
)
|
|
|
|
# schedule setting
|
|
optim_wrapper = dict(clip_grad=dict(max_norm=1.0))
|