-
Notifications
You must be signed in to change notification settings - Fork 4
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
how can i use this code to two-category yolov5.trt #2
Comments
i use this code without docker |
`import cv2 engine_path = '/home/o/zrl/models/short/ki67.trt' wrapper = Yolov5TRTWrapper(engine_path, labels=labels, conf_thresh=conf_th) # See additional options in trt/examples/yolov5_detect.py images_paths = ["/home/o/zrl/test/2100868-20211012124523_11_8_0.jpg", "/home/o/zrl/test/2101192C-20211012124324_11_13.jpg"] # Path to images _images_paths = images_paths.split(',')images_batch = [cv2.imread(image_path) for image_path in images_paths] # read images batch for image, bboxes in wrapper.detect_from_itterator(images_batch): # Gets detection and image from the itterator my code is here |
@little-siskin Hello, you are do not provide an example of the model wrong output. |
i use this code but i got wrong resuit
The text was updated successfully, but these errors were encountered: