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

training problem #33

Open
jack155861 opened this issue Sep 30, 2019 · 1 comment
Open

training problem #33

jack155861 opened this issue Sep 30, 2019 · 1 comment

Comments

@jack155861
Copy link

hi

when i trained the model, it stopped in T_Net
it shows the error
image

and I print, i get the different shape
print(s4_.shape)
#torch.Size([8, 96, 75, 75])
print(s4.shape)
#torch.Size([8, 96, 76, 76])

how to slove it ??

thanks

@rainsun1
Copy link

rainsun1 commented Oct 6, 2019

You should crop the image into size (256, 256) by "image, trimap, alpha = random_scale_and_creat_patch(image, trimap, alpha, patch_size)" as in the code.
Perhaps your image size is 800x600, and 600 cannot be devided by 16 scaled in T-Net.

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