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

RuntimeError: enc_img and enc_segs_sum do not match expect dimension 1 in networks.py #3

Closed
hblflybird opened this issue Jan 6, 2019 · 1 comment

Comments

@hblflybird
Copy link

If we set opt.batch_size > 1, feat = torch.cat([enc_img, enc_segs_sum], dim=1) raise RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1

@sangwoomo
Copy link
Owner

Hello hblflybird, currently our code only supports a single batch for one GPU.
For multi-batch experiments, you may use multi-GPUs, by using --gpu_ids 0,1,2,3.
As we used as large images as possible, we could load at most one image in our GPU (of 12GB).
We may fix this issue later. Thanks!

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