From 1e267637bfac2fb57c5985379c906ca0133c753f Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Fri, 1 Apr 2022 17:19:39 +0800 Subject: [PATCH] fix --- ppocr/metrics/kie_metric.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ppocr/metrics/kie_metric.py b/ppocr/metrics/kie_metric.py index 761965cf..5510a9bf 100644 --- a/ppocr/metrics/kie_metric.py +++ b/ppocr/metrics/kie_metric.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# The code is refer from: https://github.com/open-mmlab/mmocr/blob/main/mmocr/core/evaluation/kie_metric.py from __future__ import absolute_import from __future__ import division @@ -35,8 +36,6 @@ class KIEMetric(object): gts = gts[:tag[0], :1].reshape([-1]) self.node.append(nodes.numpy()) self.gt.append(gts) - # result = self.compute_f1_score(nodes, gts) - # self.results.append(result) def compute_f1_score(self, preds, gts): ignores = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 25] -- GitLab