From a634f2d8492caeb83d042208aa3e30468fa9472c Mon Sep 17 00:00:00 2001 From: Bubbliiiing <3323290568@qq.com> Date: Thu, 7 Jul 2022 10:03:46 +0800 Subject: [PATCH] fix show_config bug --- yolo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yolo.py b/yolo.py index 34a8a02..e49aa7c 100644 --- a/yolo.py +++ b/yolo.py @@ -67,6 +67,7 @@ def __init__(self, **kwargs): self.__dict__.update(self._defaults) for name, value in kwargs.items(): setattr(self, name, value) + self._defaults[name] = value #---------------------------------------------------# # 获得种类和先验框的数量