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

Tensor Size Mismatch #9

Open
sakmalh opened this issue Mar 26, 2023 · 1 comment
Open

Tensor Size Mismatch #9

sakmalh opened this issue Mar 26, 2023 · 1 comment

Comments

@sakmalh
Copy link

sakmalh commented Mar 26, 2023

Traceback (most recent call last):
  File "/home/akmal/APIIT/FYP Code/houseganpp/train.py", line 194, in <module>
    visualizeSingleBatch(fp_loader_test, opt, exp_folder, batches_done)
  File "/home/akmal/APIIT/FYP Code/houseganpp/train.py", line 76, in visualizeSingleBatch
    gen_mks = generator(z, given_masks_in, given_nds, given_eds)
  File "/home/akmal/APIIT/FYP Code/houseganpp/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/akmal/APIIT/FYP Code/houseganpp/models/models.py", line 156, in forward
    f = torch.cat([f, m], 1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 14 but got size 125 for tensor number 1 in the list.
@MalikHaroonKhokhar
Copy link

were you able to solve it?

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