
报错解决
编程副本
重启试试
展开
-
YOLOv5接口报错
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.cuda.HalfTensor) should be the same个人分析报错原因是在使用单GPU的时候Yolov5会开启半精度,但是我在数据处理的时候漏掉了这种情况。临时解决方式:由于时间有限,暂时把单GPU开启半精度的功能注释掉了更好的方式:在数据处理阶段增加使用半精度模式时img = img.half()...原创 2021-05-17 18:02:43 · 1042 阅读 · 2 评论 -
Ubuntu 20.04 WARNING笔记(长期更新,欢迎交流)
记录使用Ubuntu 20.04过程的报错 以及解决========================================输入 pip list报错WARNING: Keyring is skipped due to an exception: Failed to unlock the collection!解决参考https://stackoverflow.com/questions/60366119/pip-requires-password-after-upgrading-out原创 2021-05-04 19:12:34 · 5480 阅读 · 3 评论 -
yolov5 常见报错及解决方案
ValueError: zero-size array to reduction operation maximum which has no identity解决方案: label问题,检查一下label生成的对不对OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方案:报错代码里加上import osos.environ["KMP_DUPLICATE_LIB_O原创 2021-04-11 14:32:49 · 17470 阅读 · 21 评论