mirror of
https://github.com/JDAI-CV/fast-reid.git
synced 2025-06-03 14:50:47 +08:00
bugfix
Summary: make `deploy` adaptation for other models except repvgg
This commit is contained in:
parent
15c556c43a
commit
9d83550b67
@ -144,7 +144,8 @@ if __name__ == '__main__':
|
|||||||
cfg.MODEL.HEADS.POOL_LAYER = 'avgpool'
|
cfg.MODEL.HEADS.POOL_LAYER = 'avgpool'
|
||||||
model = build_model(cfg)
|
model = build_model(cfg)
|
||||||
Checkpointer(model).load(cfg.MODEL.WEIGHTS)
|
Checkpointer(model).load(cfg.MODEL.WEIGHTS)
|
||||||
model.backbone.deploy(True)
|
if hasattr(model.backbone, 'deploy'):
|
||||||
|
model.backbone.deploy(True)
|
||||||
model.eval()
|
model.eval()
|
||||||
logger.info(model)
|
logger.info(model)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user