XuJiacong / PIDNet

This is the official repository for our recent work: PIDNet
MIT License
577 stars 107 forks source link

Training on cityscapes dataset #68

Closed xianxingChen closed 1 year ago

xianxingChen commented 1 year ago

您好!我使用camvid数据集训练时没有发生问题 但使用cityscapes数据集训练时,验证损失为0,训练1个epoch就中断了,显示“IndexError: index -1 is out of bounds for dimension 0 with size 0”。 image image 请问是什么原因呢

xianxingChen commented 12 months ago

你可以debug一下,我debug后发现cityscapes.py里的class_weights都没加载上,所以损失函数一直是0 你可以看看是不是也是这个问题

在 2023-10-17 13:00:09,"jinleihu" @.***> 写道:

您好!我的问题跟您一样,请问您解决了吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

jinleihu commented 12 months ago

是这样的,改掉之后可以了,谢谢您

Lv595 commented 10 months ago

您好!我使用camvid数据集训练时没有发生问题 但使用cityscapes数据集训练时,验证损失为0,训练1个epoch就中断了,显示“IndexError: index -1 is outout of bounds for dimension 0 with size 0”。 image image 请问是什么原因呢

你好,请问你最后具体是怎么解决的的?

jinleihu commented 10 months ago

看上面那个老哥说的地方,我是直接把class_weights隐掉了

Lv595 commented 10 months ago

看上面那个老哥说的地方,我是直接把class_weights隐掉了

感谢你的回复,问题我已经解决了。