From 18dae5420270efd9d012135b5f018753a6fde8fc Mon Sep 17 00:00:00 2001 From: Krishna Shah <85193239+DragonflyRobotics@users.noreply.github.com> Date: Wed, 26 Jul 2023 13:03:54 -0500 Subject: [PATCH] Imported warnings in common.py There was an error: "NameError: name 'warnings' is not defined". The solution was to simply import the module. --- models/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/common.py b/models/common.py index e8d2efd..0b884a6 100644 --- a/models/common.py +++ b/models/common.py @@ -12,6 +12,8 @@ from utils.general import non_max_suppression, make_divisible, scale_coords, xyxy2xywh from utils.plots import color_list +import warnings + def autopad(k, p=None): # kernel, padding # Pad to 'same' if p is None: