From 54f96ba78ad087c7110bafe2132a91536f0b5a01 Mon Sep 17 00:00:00 2001 From: liaoxingyu Date: Mon, 31 May 2021 17:36:56 +0800 Subject: [PATCH] fix for lint_python --- fastreid/modeling/meta_arch/distiller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastreid/modeling/meta_arch/distiller.py b/fastreid/modeling/meta_arch/distiller.py index fc68f3c5..9812143d 100644 --- a/fastreid/modeling/meta_arch/distiller.py +++ b/fastreid/modeling/meta_arch/distiller.py @@ -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: