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

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

Open
melrose12138 opened this issue Nov 2, 2023 · 1 comment

Comments

@melrose12138
Copy link

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...

@ascust
Copy link
Owner

ascust commented Jan 2, 2024

Could you provide more details? what is tensor.H in your case?

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