Skip to content

Commit

Permalink
fix for lint_python
Browse files Browse the repository at this point in the history
  • Loading branch information
L1aoXingyu committed May 31, 2021
1 parent 6300bd7 commit 54f96ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastreid/modeling/meta_arch/distiller.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, cfg):
for param in model_self.parameters():
param.requires_grad_(False)

if cfg_self.MODEL.WEIGHTS is not '':
if cfg_self.MODEL.WEIGHTS != '':
logger.info("Loading self distillation model weights ...")
Checkpointer(model_self).load(cfg_self.MODEL.WEIGHTS)
else:
Expand Down

0 comments on commit 54f96ba

Please sign in to comment.