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

变化检测任务忽略像素训练 #212

Open
labiao opened this issue Jan 15, 2025 · 5 comments
Open

变化检测任务忽略像素训练 #212

labiao opened this issue Jan 15, 2025 · 5 comments
Assignees

Comments

@labiao
Copy link

labiao commented Jan 15, 2025

您好,请问下现在是否支持变化检测损失计算中,标签中值为255被忽略?

@github-actions github-actions bot added triage new issue/PR waiting to be dealed and removed triage new issue/PR waiting to be dealed labels Jan 15, 2025
@Bobholamovic
Copy link
Member

你好,是支持的哈

@labiao
Copy link
Author

labiao commented Jan 15, 2025

好的,那请问如何设置呢,或者需要做什么改动呢?目前来看,从训练文件得知 binarize_labels=True后,大于127的像素都是变化前景。

@Bobholamovic
Copy link
Member

实际上,binarize_labels和这个功能是冲突的:前者主要用来处理图中用0表示不变、255表示变化的情况;后者用来处理0表示不变、1表示变化、255表示“忽略”的情况。如果希望使用255表示“忽略”,那么不应该再使用255表示变化,即不应该使用binarize_labels功能~

@labiao
Copy link
Author

labiao commented Jan 15, 2025

好的,意思是我将标签中背景设置为0,变化设置为1,忽略像素设置为255,并且binarize_labels设置为False,就能实现这个目的?

@Bobholamovic
Copy link
Member

是的,这样做应该是没问题的

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