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

Shape Mismatch with batch_size=2 #513

Open
jong3 opened this issue Dec 7, 2024 · 0 comments
Open

Shape Mismatch with batch_size=2 #513

jong3 opened this issue Dec 7, 2024 · 0 comments

Comments

@jong3
Copy link

jong3 commented Dec 7, 2024

Hi,

When I set batch_size: 2 in config.py , the following error occurs during execution:

File "/home/ganjh/data/openfold/openfold/model/model.py", line 568, in forward
    outputs, m_1_prev, z_prev, x_prev, early_stop = self.iteration(
  File "/home/ganjh/data/openfold/openfold/model/model.py", line 325, in iteration
    template_embeds = self.embed_templates(
  File "/home/ganjh/data/openfold/openfold/model/model.py", line 142, in embed_templates
    template_embeds = self.template_embedder(
  File "/home/ganjh/mambaforge/envs/openfold_env/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/ganjh/data/openfold/openfold/model/embedders.py", line 943, in forward
    pair_act = self.template_pair_embedder(
  File "/home/ganjh/mambaforge/envs/openfold_env/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/ganjh/data/openfold/openfold/model/embedders.py", line 791, in forward
    pseudo_beta_mask_2d *= multichain_mask_2d
RuntimeError: output with shape [2, 1, 200, 200] doesn't match the broadcast shape [2, 2, 200, 200]

Also, I set the crop_size: 200 in config.py

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

1 participant