TexasInstruments / edgeai-yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite. Forked from https://ultralytics.com/yolov5
https://github.com/TexasInstruments/edgeai
GNU General Public License v3.0
644 stars 120 forks source link

detect.py TypeError: 'int' object is not subscriptable #108

Open GreenTeaHua opened 1 year ago

GreenTeaHua commented 1 year ago

❔Question

python .\detect.py --weights last.pt --source 0 --kpt-label edgeai-yolov5-yolo-pose\detect.py", line 65, in detect model(torch.zeros(1, 3, imgsz[0], imgsz[0]).to(device).type_as(next(model.parameters()))) # run once TypeError: 'int' object is not subscriptable

Additional context

?