We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
classes, scores, boxes = model.detect(frames, conf_thd, nms_thd)
其中model这个是来自: net = cv2.dnn.readNetFromDarknet(CONFIG_FILE, WEIGHT_FILE) # 读取权重与配置文件
net = cv2.dnn.readNetFromDarknet(CONFIG_FILE, WEIGHT_FILE) # 读取权重与配置文件
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA) model = cv2.dnn_DetectionModel(net) model.setInputParams(size=(side_width, side_height), scale=1/255, swapRB=True)
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
model = cv2.dnn_DetectionModel(net)
model.setInputParams(size=(side_width, side_height), scale=1/255, swapRB=True)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
classes, scores, boxes = model.detect(frames, conf_thd, nms_thd)
其中model这个是来自:
net = cv2.dnn.readNetFromDarknet(CONFIG_FILE, WEIGHT_FILE) # 读取权重与配置文件
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
model = cv2.dnn_DetectionModel(net)
model.setInputParams(size=(side_width, side_height), scale=1/255, swapRB=True)
The text was updated successfully, but these errors were encountered: