GIF icon indicating copy to clipboard operation
GIF copied to clipboard

run fail

Open vicdxxx opened this issue 3 years ago • 3 comments

I not sure it is model version or code version issue?

File "generate_random_samples.py", line 162, in flm_batch = position_to_given_location(flame_decoder, flm_batch) File "../my_utils/eye_centering.py", line 39, in position_to_given_location verts, _, _ = deca_flame_decoder(shape_params=shape, expression_params=expression, pose_params=pose) File "/home/ubuntu/.conda/envs/gif/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "../my_utils/photometric_optimization/models/FLAME.py", line 204, in forward self.lbs_weights, dtype=self.dtype) File "../my_utils/photometric_optimization/models/lbs.py", line 211, in lbs J_transformed, A = batch_rigid_transform(rot_mats, J, parents, dtype=dtype) File "../my_utils/photometric_optimization/models/lbs.py", line 353, in batch_rigid_transform rel_joints.view(-1, 3, 1)).view(-1, joints.shape[1], 4, 4) RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

vicdxxx avatar Dec 30 '21 11:12 vicdxxx

Perhaps something changed between python versions because of which memory is fragmented. Can you try using .reshape() as suggested?

ParthaEth avatar Feb 04 '22 14:02 ParthaEth

just change ".view()" into ".contiguous().view()" can fix this

lyhdtc avatar Mar 18 '22 12:03 lyhdtc

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

vicdxxx avatar Mar 18 '22 12:03 vicdxxx