Spaces:
Runtime error
Runtime error
File size: 684 Bytes
f549064 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
_base_ = [
'../_base_/models/resnet50.py',
'../_base_/datasets/cub_bs8_448.py',
'../_base_/schedules/cub_bs64.py',
'../_base_/default_runtime.py',
]
# model settings
# use pre-train weight converted from https://github.com/Alibaba-MIIL/ImageNet21K # noqa
pretrained = 'https://download.openmmlab.com/mmclassification/v0/resnet/resnet50_3rdparty-mill_in21k_20220331-faac000b.pth' # noqa
model = dict(
type='ImageClassifier',
backbone=dict(
init_cfg=dict(
type='Pretrained', checkpoint=pretrained, prefix='backbone')),
head=dict(num_classes=200, ))
# runtime settings
default_hooks = dict(logger=dict(type='LoggerHook', interval=20))
|