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

Getting strange results when using pretrained settings #41

Open
DinosaurusAlbert opened this issue Jul 19, 2023 · 0 comments
Open

Getting strange results when using pretrained settings #41

DinosaurusAlbert opened this issue Jul 19, 2023 · 0 comments

Comments

@DinosaurusAlbert
Copy link

Hi, I am new to image segmentation. Your method seems very promising but when I try loading your pretrained weights I get strange results. It does not seem to detect the shadows. I've downloaded the iter10000.pth file and load it using
net = build_model() checkpoint = torch.load('iter_10000.pth',map_location=torch.device('cpu')) net.load_state_dict(checkpoint)
then I run
xxx=net(img_var)[0][0] res = torch.sigmoid(xxx)
However, the masked images it is outputting are off. Please compare the ground truth image, input, and my result. It is doing some sort of segmentation, but it is not accurately finding the shadows. I am sure I am loading the wrong model or doing something wrong in the settings. Do you have any pointers to what I am doing wrong? Thanks very much!

13191932324_cb403f5c0e jpg_ground_truth
13191932324_cb403f5c0e jpg_original
13191932324_cb403f5c0e jpg_mask2ed

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