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

Some questions #3

Open
Bellahanxi01 opened this issue Dec 11, 2024 · 1 comment
Open

Some questions #3

Bellahanxi01 opened this issue Dec 11, 2024 · 1 comment

Comments

@Bellahanxi01
Copy link

What a great work!Your work has been a great inspiration to me. I encountered three issues during my experiments:

1.Pretrained weights: I couldn’t find the segformerb4_512x512ade160k.pth file, but I found segformerb4.pth. Can I rename it to segformerb4_512x512ade160k.pth and use it in your code?
2.If this is possible, does the image size need to be set to 512x512?
3.I’m doing binary classification, and I noticed that the output prediction image is completely black. What could be the reason? My images are in PNG format with 3 channels, and the masks are PNG format with a single channel and 8-bit values (only 0 and 255). I’ve set num_classes = 2 to match your code, and I’ve named my dataset "polyp" to directly use your code.

Thank you very much for your response!

@Bellahanxi01
Copy link
Author

Sorry to bother you,I've found that the output from the model is all negative for pred = predictions[0, 1, :, :], is that normal?

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

1 participant