-
Notifications
You must be signed in to change notification settings - Fork 7
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
MambaSCD训练时出现错误grad can be implicitly created only for scalar outputs #26
Comments
Hi, Thank you for your question. You are training on your own SCD dataset, not SECOND right? Then you need to keep the dataset in the same format as the SECOND dataset. Also, I would like to remind you that in the land cover map in the SECOND dataset, class 0 is the background class, is it the same for your dataset? Best, |
用的是自己的数据集;格式和SECOND的格式是一致的;标签中背景是0; |
Hi, Could you try removing the lovasz loss and see the situation? Everything works fine with the current code on the SECOND dataset. However, other datasets may have problems, I haven't tested it on other SCD datasets. Best, |
Hi, May I ask if you have solved this problem? Best, |
@ChenHongruixuan i changed loss, now it works fine! |
我发现在自己的数据集上训练MambaSCD时,计算lovasz_softmax会返回一个空的列表,我发先标签文件都是背景,这个有什么办法解决吗?数据集当中不能有负样本吗?
The text was updated successfully, but these errors were encountered: