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

A mistake occurred while training cyclegan #829

Closed
infororange opened this issue Nov 8, 2019 · 5 comments
Closed

A mistake occurred while training cyclegan #829

infororange opened this issue Nov 8, 2019 · 5 comments

Comments

@infororange
Copy link

when i use
python train.py --dataroot ./datasets/horse2zebra --name horse2zebra --model cycle_gan
There will be errors :
NotSupportedError: slicing multiple dimensions at the same time isn't supported yet
proposals (Tensor): boxes to be encoded
"""
# perform some unpacking to make it JIT-fusion friendly
wx = weights[0]
wy = weights[1]
ww = weights[2]
wh = weights[3]

proposals_x1 = proposals[:, 0].unsqueeze(1)
               ~~~~~~~~~ <--- HERE
proposals_y1 = proposals[:, 1].unsqueeze(1)
proposals_x2 = proposals[:, 2].unsqueeze(1)
proposals_y2 = proposals[:, 3].unsqueeze(1)

reference_boxes_x1 = reference_boxes[:, 0].unsqueeze(1)
reference_boxes_y1 = reference_boxes[:, 1].unsqueeze(1)
reference_boxes_x2 = reference_boxes[:, 2].unsqueeze(1)
reference_boxes_y2 = reference_boxes[:, 3].unsqueeze(1)

How should this be solved?thank you so much!

@junyanz
Copy link
Owner

junyanz commented Nov 13, 2019

Not sure if it is relevant to our repo. We didn't use reference_boxes in this codebase.

@zhihaoWang1994
Copy link

你好 我们也遇到了这个问题 请问您解决了么

@mojoee
Copy link

mojoee commented Apr 9, 2020

Same Problem right here even when training with the standard configurations as described in the github

@junyanz
Copy link
Owner

junyanz commented Apr 9, 2020

It might be caused by the incompatibility between your PyTorch version and torchvision version.

@mojoee
Copy link

mojoee commented Apr 10, 2020

@junyanz that's right. I fixed it by uninstalling the pytorch libraries and reinstalling it with another version. Now the code is running.

@junyanz junyanz closed this as completed Apr 10, 2020
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

4 participants