From 443de01526a1c7108934990c4b646ed992f0bce8 Mon Sep 17 00:00:00 2001 From: WenmuZhou <572459439@qq.com> Date: Fri, 7 Jan 2022 08:00:59 +0000 Subject: [PATCH] fux bug --- ppocr/optimizer/regularizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/optimizer/regularizer.py b/ppocr/optimizer/regularizer.py index d48831fc..2ce68f71 100644 --- a/ppocr/optimizer/regularizer.py +++ b/ppocr/optimizer/regularizer.py @@ -45,7 +45,7 @@ class L2Decay(object): def __init__(self, factor=0.0): super(L2Decay, self).__init__() - self.coeff = factor + self.coeff = float(factor) def __call__(self): return self.coeff \ No newline at end of file -- GitLab