/yolov5/detect.py", line 158, in run s += f"{n} {names[int(c)]}{'s' * (n > 1)}, " # add to string KeyError: 94

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

Detection

Bug

python detect.py --weights ~/Downloads/yolov5s-seg.pt

got

Environment

YOLOv5 🚀 v7.0-4-g7398d2d Python-3.10.6 torch-1.14.0.dev20221107 CPU

Minimal Reproducible Example

No response

Additional

yolov5/detect.py", line 158, in run s += f"{n} {names[int(c)]}{'s' * (n > 1)}, " # add to string KeyError: 94

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!