mirror of
https://github.com/JDAI-CV/fast-reid.git
synced 2025-06-03 14:50:47 +08:00
14 lines
289 B
Python
14 lines
289 B
Python
|
# encoding: utf-8
|
||
|
"""
|
||
|
@author: sherlock
|
||
|
@contact: sherlockliao01@gmail.com
|
||
|
"""
|
||
|
|
||
|
from .baseline import Baseline
|
||
|
|
||
|
|
||
|
def build_model(cfg, num_classes):
|
||
|
if cfg.MODEL.NAME == 'resnet50':
|
||
|
model = Baseline(num_classes, cfg.MODEL.LAST_STRIDE, cfg.MODEL.PRETRAIN_PATH)
|
||
|
return model
|