ultralytics 8.1.40 search in Python sets {} for speed (#9450)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
30484d5925
commit
ea527507fe
41 changed files with 97 additions and 93 deletions
|
|
@ -153,7 +153,7 @@ class Heatmap:
|
|||
self.cls_txtdisplay_gap = cls_txtdisplay_gap
|
||||
|
||||
# shape of heatmap, if not selected
|
||||
if self.shape not in ["circle", "rect"]:
|
||||
if self.shape not in {"circle", "rect"}:
|
||||
print("Unknown shape value provided, 'circle' & 'rect' supported")
|
||||
print("Using Circular shape now")
|
||||
self.shape = "circle"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue