Skip to content

RuntimeError: tensor.H is only supported on matrices (2-D tensors). Got 4-D tensor. #30

@melrose12138

Description

@melrose12138

I am going to render the face by BFM09ReconModel, using the following code,
pred_dict = self.recon_model(D3D_coeff, render=True)
where D3D_coeff is a tensor whose size is (1,257).
However, pred_dict['rendered_img'] that I finally get is a tensor whose elements are all 0, with H traceback "RuntimeError: tensor.H is only supported on matrices (2-D tensors). Got 4-D tensor."
I wonder what mistake I might make. I'd appreciate it if you could give me some advice...

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