Skip to content

Commit

Permalink
fix undesired assignment to pretrained key
Browse files Browse the repository at this point in the history
  • Loading branch information
gaotongxiao committed Aug 10, 2021
1 parent 084f8b2 commit c38a4d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def main():
# set cudnn_benchmark
if cfg.get('cudnn_benchmark', False):
torch.backends.cudnn.benchmark = True
cfg.model.pretrained = None
if cfg.model.get('pretrained'):
cfg.model.pretrained = None
if cfg.model.get('neck'):
if isinstance(cfg.model.neck, list):
for neck_cfg in cfg.model.neck:
Expand Down

0 comments on commit c38a4d9

Please sign in to comment.