R-YOLOv4 icon indicating copy to clipboard operation
R-YOLOv4 copied to clipboard

训练

Open PJPomPom opened this issue 3 years ago • 18 comments

![Snipaste_2021-11-25_15-17-15](https://user-images.githubusercontent.com/77728649/143396711-7c37b453-ab8d-4988-b1e9-dca767ac068e.png Snipaste_2021-11-25_15-17-01 Snipaste_2021-11-25_15-00-46 ) image

大佬,我将我找的数据集的xml转化为txt格式如下,然后train.py出现了问题:文件为空,请您帮我解答一下,谢谢

PJPomPom avatar Nov 25 '21 07:11 PJPomPom

你的資料夾裡面有yolov4.pth這個檔案嗎

yingkunwu avatar Nov 25 '21 07:11 yingkunwu

image 有喔

PJPomPom avatar Nov 25 '21 07:11 PJPomPom

我可以看一下yolov4.pth的檔案大小嗎

yingkunwu avatar Nov 25 '21 07:11 yingkunwu

0字节哦,大概是没下载好,我再试试

PJPomPom avatar Nov 25 '21 07:11 PJPomPom

Snipaste_2021-11-25_15-42-53 Snipaste_2021-11-25_15-47-05

write函数只能写str格式嘛,报错说我格式错误,唉

PJPomPom avatar Nov 25 '21 07:11 PJPomPom

Have you solved your problems?

yingkunwu avatar Dec 14 '21 02:12 yingkunwu

没呀,我不知道这个load.py如何使用,他的作用是利用我自己xml产生的txt,然后将其转化为ryolov4训练需要的txt嘛?

PJPomPom avatar Dec 14 '21 03:12 PJPomPom

不是,它的作用是讀取已經從xml中轉化成txt的檔案,把txt中的資訊獨進dataloader裏面。關於如何把xml轉化成txt可以參考我的程式碼

yingkunwu avatar Dec 14 '21 03:12 yingkunwu

好的,谢谢大佬

PJPomPom avatar Dec 14 '21 08:12 PJPomPom

image 大佬,这是我生成的txt,然后train报错了,是哪里的问题呢

PJPomPom avatar Dec 15 '21 04:12 PJPomPom

模型在訓練時只能將數字納入運算,請將Label的類別以Integer代替,替換後應該就能運算了。

yingkunwu avatar Dec 15 '21 04:12 yingkunwu

大佬,我改了标签,出现了如下错误 image 其次,使用detect.py后outputs文件夹无输出 image

PJPomPom avatar Dec 15 '21 05:12 PJPomPom

第一個狀況我沒有遇過,有可能是python和opencv版本不一樣的關係。可以問一下你的python和opencv版本嗎? 另外你嘗試把augments.py裡面的第44, 45, 46行都改成像這種寫法-> hsv[1] = hsv[1] * sat 試試看

關於第二個狀況,可不可以幫我把這行的output_path變數print出來給我看,感謝。

yingkunwu avatar Dec 17 '21 03:12 yingkunwu

大佬你好,augments.py已修改,仍报错 Snipaste_2021-12-17_11-26-05

其次,我调试output_path变量输出无结果,不知道我做的对吗,恳请指正 Snipaste_2021-12-17_12-35-58

PJPomPom avatar Dec 17 '21 04:12 PJPomPom

I am sorry that you couldn't run my code properly. I need some time to fix your errors. In the meantime, could you try to solve it yourself? You are still welcome to report your questions anytime.

yingkunwu avatar Dec 20 '21 08:12 yingkunwu

I think I have solved your problems. Please pull the latest version code and run it again. Thanks!

yingkunwu avatar Dec 22 '21 08:12 yingkunwu

感謝大佬的回復,這將給我提供很大的幫助! 👍👍👍

PJPomPom avatar Dec 22 '21 10:12 PJPomPom

感謝大佬的回復,這將給我提供很大的幫助! 👍👍👍

大佬可以把你下载的权重给我发一份吗?

yuxin7 avatar Mar 29 '22 09:03 yuxin7