Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training on cityscapes dataset #68

Closed
xianxingChen opened this issue Oct 12, 2023 · 5 comments
Closed

Training on cityscapes dataset #68

xianxingChen opened this issue Oct 12, 2023 · 5 comments

Comments

@xianxingChen
Copy link

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

@xianxingChen
Copy link
Author

xianxingChen commented Oct 17, 2023 via email

@jinleihu
Copy link

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

@Lv595
Copy link

Lv595 commented Nov 19, 2023

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

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

@jinleihu
Copy link

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

@Lv595
Copy link

Lv595 commented Nov 24, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants