Skip to content

RuntimeError: Sizes of tensors must match except in dimension 0 #21

@wonyoungtae

Description

@wonyoungtae

Hi, I'm trying to run model using an example file, but there's an error.
$ ../run_RF2.sh rcsb_pdb_8HBN.fasta -o 7UGF

Running HHblits
 -> Running command: /home/yt/RoseTTAFold2/input_prep/make_protein_msa.sh 7UGF/rcsb_pdb_8HBN_1.fa 7UGF rcsb_pdb_8HBN_1 8 64
Running HHblits
 -> Running command: /home/yt/RoseTTAFold2/input_prep/make_protein_msa.sh 7UGF/rcsb_pdb_8HBN_2.fa 7UGF rcsb_pdb_8HBN_2 8 64
Running RoseTTAFold2 to predict structures
 -> Running command: python /home/yt/RoseTTAFold2/network/predict.py -inputs 7UGF/rcsb_pdb_8HBN_1.msa0.a3m 7UGF/rcsb_pdb_8HBN_2.msa0.a3m  -prefix 7UGF/models/model -model /home/yt/RoseTTAFold2/network/weights/RF2_apr23.pt -db /home/yt/RoseTTAFold2/pdb100_2021Mar03/pdb100_2021Mar03 -symm C1
/home/yt/RoseTTAFold2/network/weights/RF2_apr23.pt
Running on GPU
Traceback (most recent call last):
  File "/home/yt/RoseTTAFold2/network/predict.py", line 493, in <module>
    pred.predict(
  File "/home/yt/RoseTTAFold2/network/predict.py", line 218, in predict
    msa_orig = merge_a3m_hetero(msa_orig, {'msa':msas[i],'ins':inss[i]}, [sum(Ls_blocked[:i]),Ls_blocked[i]])
  File "/home/yt/RoseTTAFold2/network/data_loader.py", line 531, in merge_a3m_hetero
    msa = torch.cat(msa, dim=0)
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 783 but got size 2647 for tensor number 1 in the list.

How can I solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions