29 lines
691 B
Python
29 lines
691 B
Python
_base_ = [
|
|
'../_base_/datasets/imagenet_bs32_pil_bicubic.py',
|
|
'../_base_/schedules/imagenet_bs1024_adamw_swin.py',
|
|
'../_base_/default_runtime.py',
|
|
'../_base_/models/tinyvit/tinyvit-21m.py',
|
|
]
|
|
|
|
# model settings
|
|
model = dict(
|
|
backbone=dict(
|
|
img_size=(512, 512),
|
|
window_size=[16, 16, 32, 16],
|
|
drop_path_rate=0.1,
|
|
))
|
|
# data settings
|
|
test_pipeline = [
|
|
dict(type='LoadImageFromFile'),
|
|
dict(
|
|
type='Resize',
|
|
scale=(512, 512),
|
|
backend='pillow',
|
|
interpolation='bicubic'),
|
|
dict(type='PackInputs'),
|
|
]
|
|
|
|
val_dataloader = dict(batch_size=16, dataset=dict(pipeline=test_pipeline))
|
|
|
|
test_dataloader = val_dataloader
|