We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a3bfb commit b8ac59aCopy full SHA for b8ac59a
motrackers/detectors/yolo.py
@@ -23,7 +23,7 @@ def __init__(self, weights_path, configfile_path, labels_path, confidence_thresh
23
object_names = load_labelsjson(labels_path)
24
25
layer_names = self.net.getLayerNames()
26
- if cv.__version__ == '4.6.0':
+ if cv.__version__ >= '4.6.0':
27
self.layer_names = [layer_names[i - 1] for i in self.net.getUnconnectedOutLayers()]
28
else:
29
self.layer_names = [layer_names[i[0] - 1] for i in self.net.getUnconnectedOutLayers()]
0 commit comments