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

MambaSCD训练时出现错误grad can be implicitly created only for scalar outputs #26

Closed
regainOWO opened this issue May 13, 2024 · 5 comments

Comments

@regainOWO
Copy link

regainOWO commented May 13, 2024

我发现在自己的数据集上训练MambaSCD时,计算lovasz_softmax会返回一个空的列表,我发先标签文件都是背景,这个有什么办法解决吗?数据集当中不能有负样本吗?
image

@ChenHongruixuan
Copy link
Owner

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,

@regainOWO
Copy link
Author

用的是自己的数据集;格式和SECOND的格式是一致的;标签中背景是0;

@ChenHongruixuan
Copy link
Owner

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,

@ChenHongruixuan
Copy link
Owner

Hi,

May I ask if you have solved this problem?

Best,

@regainOWO
Copy link
Author

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,

@ChenHongruixuan i changed loss, now it works fine!

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

2 participants