---
# System prepended metadata

title: YOLO v7 debug紀錄
tags: [python]

---

# YOLO v7 debug紀錄
1. yolo安裝成功，但結果圖片中一個框框都沒有
解決:https://github.com/WongKinYiu/yolov7/issues/1215
![](https://i.imgur.com/WWKgn4A.png)
把half變數改為false
![](https://i.imgur.com/l0uvJUQ.png)
![](https://i.imgur.com/fFhuiAG.png)


2. labelImg閃退
![](https://i.imgur.com/VO7IIX6.png)
解決:https://stackoverflow.com/questions/70894942/i-cant-label-images-using-labelimg
python 3.10版本問題，降回3.9即可

3. no label
![](https://i.imgur.com/txreGHd.png)
解決:labelimg中沒有把模式切成yolo，導致生成的檔案是.xml而不是.txt。切回yolo模式重新建模。

4. Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
![](https://i.imgur.com/LZpGEVH.png)
解決:https://github.com/WongKinYiu/yolov7/issues/189
刪除Anaconda3\envs \my_yolov7\Library\bin\libiomp5md.dll
![](https://i.imgur.com/UeNy7hk.png)

經歷一堆波折，終於生出來模型了，但是模型還是很可憐
