Tianxiaomo / pytorch-YOLOv4

PyTorch ,ONNX and TensorRT implementation of YOLOv4
Apache License 2.0
4.47k stars 1.49k forks source link

Bug fix in camera.py #461

Open Manusha17 opened 3 years ago

Manusha17 commented 3 years ago

@Tianxiaomo @KelvinCPChiu @wenh06 can anyone please check and accept this commit.

C-popKingJames commented 2 years ago

yes, i also find this problem,your fix is bigger than help me a lot. if I not fixed ,i will meet this problem

Traceback (most recent call last): File "E:/DeepLearning/pytorch-YOLOv4-master/camera.py", line 69, in orig_im = plot_boxes_cv2(frame, boxes, class_names=class_names) File "E:\DeepLearning\pytorch-YOLOv4-master\tool\utils.py", line 116, in plot_boxes_cv2 x1 = int(box[0] * width) TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'