Spaces:
Running
on
Zero
Running
on
Zero
File size: 317 Bytes
b213d84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from __future__ import absolute_import
from SCHP.networks.AugmentCE2P import resnet101
__factory = {
"resnet101": resnet101,
}
def init_model(name, *args, **kwargs):
if name not in __factory.keys():
raise KeyError("Unknown model arch: {}".format(name))
return __factory[name](*args, **kwargs)
|