Skip to content

Commit

Permalink
permit to test with parsed config files
Browse files Browse the repository at this point in the history
  • Loading branch information
MendelXu committed Nov 29, 2021
1 parent 4a0553f commit 70f6989
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ def main():
# set cudnn_benchmark
if cfg.get("cudnn_benchmark", False):
torch.backends.cudnn.benchmark = True

cfg.model.pretrained = None
# fix issue mentioned in https://github.com/microsoft/SoftTeacher/issues/111
if "pretrained" in cfg.model:
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 70f6989

Please sign in to comment.