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

Train issue #86

Open
LeoMyMe opened this issue Jul 22, 2023 · 3 comments
Open

Train issue #86

LeoMyMe opened this issue Jul 22, 2023 · 3 comments

Comments

@LeoMyMe
Copy link

LeoMyMe commented Jul 22, 2023

image
Why warped_cloth and it's mask missing after 294000.

And there is also an another problem that I must change the train code.↓
Traceback (most recent call last):
File "train_PBAFN_stage1.py", line 116, in
loss_vgg = criterionVGG(x_all[num], cur_person_clothes.cuda())
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Leo\Desktop\PF-AFN\PF-AFN_train\models\networks.py", line 164, in forward
x_vgg, y_vgg = self.vgg(x), self.vgg(y)
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Leo\Desktop\PF-AFN\PF-AFN_train\models\networks.py", line 150, in forward
h_relu5 = self.slice5(h_relu4)
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\modules\container.py", line 204, in forward
input = module(input)
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\modules\pooling.py", line 166, in forward
return F.max_pool2d(input, self.kernel_size, self.stride,
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch_jit_internal.py", line 485, in fn
return if_false(*args, **kwargs)
File "C:\Users\Leo\anaconda3\envs\PMC2D\lib\site-packages\torch\nn\functional.py", line 782, in _max_pool2d
return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)
RuntimeError: Given input size: (512x2x1). Calculated output size: (512x1x0). Output size is too small

@LeoMyMe
Copy link
Author

LeoMyMe commented Jul 22, 2023

--niter 100 --niter_decay 100

1 similar comment
@LeoMyMe
Copy link
Author

LeoMyMe commented Jul 22, 2023

--niter 100 --niter_decay 100

@Rockdow
Copy link

Rockdow commented Dec 26, 2023

@LeoMyMe Hi, I'm facing the same problem. Have you found out the reason?

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