Skip to content

Commit 54f96ba

Browse files
committed
fix for lint_python
1 parent 6300bd7 commit 54f96ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastreid/modeling/meta_arch/distiller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, cfg):
6060
for param in model_self.parameters():
6161
param.requires_grad_(False)
6262

63-
if cfg_self.MODEL.WEIGHTS is not '':
63+
if cfg_self.MODEL.WEIGHTS != '':
6464
logger.info("Loading self distillation model weights ...")
6565
Checkpointer(model_self).load(cfg_self.MODEL.WEIGHTS)
6666
else:

0 commit comments

Comments
 (0)