mirror of
https://github.com/open-mmlab/mmclassification.git
synced 2025-06-03 21:53:55 +08:00
* [Refactor] Move transforms in mmselfsup to mmpretrain. * Update transform docs and configs. And register some mmcv transforms in mmpretrain. * Fix missing transform wrapper. * update selfsup transforms * Fix UT * Fix UT * update gaussianblur inconfigs --------- Co-authored-by: fangyixiao18 <fangyx18@hotmail.com>
22 lines
679 B
Python
22 lines
679 B
Python
_base_ = ['./efficientnetv2-b0_8xb32_in1k.py']
|
|
|
|
# model setting
|
|
model = dict(backbone=dict(arch='b1'), head=dict(in_channels=1280, ))
|
|
|
|
train_pipeline = [
|
|
dict(type='LoadImageFromFile'),
|
|
dict(type='EfficientNetRandomCrop', scale=192),
|
|
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
|
|
dict(type='PackInputs'),
|
|
]
|
|
|
|
test_pipeline = [
|
|
dict(type='LoadImageFromFile'),
|
|
dict(type='EfficientNetCenterCrop', crop_size=240, crop_padding=0),
|
|
dict(type='PackInputs'),
|
|
]
|
|
|
|
train_dataloader = dict(dataset=dict(pipeline=train_pipeline))
|
|
val_dataloader = dict(dataset=dict(pipeline=test_pipeline))
|
|
test_dataloader = dict(dataset=dict(pipeline=test_pipeline))
|