Fix KeyError:line_thickness (#2852)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
single_channel
setwgx 2 years ago committed by GitHub
parent ef1eff8830
commit 0c62f85750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -197,7 +197,7 @@ class Results(SimpleClass):
conf = kwargs['show_conf'] conf = kwargs['show_conf']
assert type(conf) == bool, '`show_conf` should be of boolean type, i.e, show_conf=True/False' assert type(conf) == bool, '`show_conf` should be of boolean type, i.e, show_conf=True/False'
if 'show_conf' in kwargs: if 'line_thickness' in kwargs:
deprecation_warn('line_thickness', 'line_width') deprecation_warn('line_thickness', 'line_width')
line_width = kwargs['line_thickness'] line_width = kwargs['line_thickness']
assert type(line_width) == int, '`line_width` should be of int type, i.e, line_width=3' assert type(line_width) == int, '`line_width` should be of int type, i.e, line_width=3'

Loading…
Cancel
Save