Semantic_Human_Matting icon indicating copy to clipboard operation
Semantic_Human_Matting copied to clipboard

training problem

Open jack155861 opened this issue 5 years ago • 1 comments

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

jack155861 avatar Sep 30 '19 01:09 jack155861

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.

rainsun1 avatar Oct 06 '19 07:10 rainsun1