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

mask all black #7

Open
wangzhichao123 opened this issue Oct 20, 2023 · 3 comments
Open

mask all black #7

wangzhichao123 opened this issue Oct 20, 2023 · 3 comments

Comments

@wangzhichao123
Copy link

作者,您好!为什么经过预处理的ACDC的mask是全黑的?

@zqfffforward
Copy link

您好,请问您解决mask全黑的这个温问题了吗?mask是否可以将其各类别进行可视化呢?

@wangzhichao123
Copy link
Author

您好,请问您解决mask全黑的这个温情问题了吗?mask网站上将其各类别进行可视化呢?

暂且没有解决。建议你可以仿照TransUNet所提供的将三维数据切成二维数据,重写DataLoader。
如果你还是想要保存成png或者jpg文件,可以建议你读取一下nii文件,查看label数值。
如果里面的值仅仅是0-2,那么有Mask就是黑色的。因为正常图片的数值范围是0-255。值大代表白色,值小代表黑色

@zqfffforward
Copy link

感谢您的回答。请问如果按照作者所给的mask的话,是否可以读取其数值来生成ground truth的彩色分割图呢?
gt
Uploading gt.png…

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