Skip to content

An error occurred when I was running denoise_contact.py . Could you tell me how to solve it? #5

@HappyLife-together

Description

@HappyLife-together

Traceback (most recent call last):
File "MATCHA-master/Code/denoise_contact.py", line 154, in
proba = predict(classifier_model, pair_wise).reshape((-1))
File "MATCHA-master/Code/denoise_contact.py", line 85, in predict
x = pad_sequence(x, batch_first=True, padding_value=0).to(device)
File "anaconda3/envs/lib/python3.9/site-packages/torch/nn/utils/rnn.py", line 363, in pad_sequence
return torch._C._nn.pad_sequence(sequences, batch_first, padding_value)
TypeError: pad_sequence(): argument 'sequences' (position 1) must be tuple of Tensors, not Tensor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions