Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported warnings in common.py #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Imported warnings in common.py
There was an error: "NameError: name 'warnings' is not defined". The solution was to simply import the module.
  • Loading branch information
DragonflyRobotics authored Jul 26, 2023
commit 18dae5420270efd9d012135b5f018753a6fde8fc
2 changes: 2 additions & 0 deletions models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down