From 6fd6ada6d764999843e5a2a14dbf74c6f8b5609d Mon Sep 17 00:00:00 2001 From: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> Date: Tue, 22 Jun 2021 22:02:42 +0800 Subject: [PATCH] [Fix] Delete warning report (#1126) --- mmcv/cnn/utils/weight_init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mmcv/cnn/utils/weight_init.py b/mmcv/cnn/utils/weight_init.py index 2dac36a2f..36303a22c 100644 --- a/mmcv/cnn/utils/weight_init.py +++ b/mmcv/cnn/utils/weight_init.py @@ -115,9 +115,7 @@ class BaseInit(object): but got a {type(layer)}') else: layer = [] - warnings.warn( - 'init_cfg without layer key, if you do not define override' - ' key either, this init_cfg will do nothing') + if bias_prob is not None: self.bias = bias_init_with_prob(bias_prob) else: