ascust / 3DMM-Fitting-Pytorch

A 3DMM fitting framework using Pytorch.
592 stars 94 forks source link

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

Open melrose12138 opened 10 months ago

melrose12138 commented 10 months ago

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 commented 8 months ago

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