相关文章推荐
AI/Coding errors

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. (Smplx 실행 에러)

kyujinpy 2023. 2. 9. 20:39 transforms_mat = transform_mat( rot_mats.view(-1, 3, 3), rel_joints.view(-1, 3, 1)).view(-1, joints.shape[1], 4, 4)

위의 코드 block에서 오류가 일어난 상황이다.

# smplx/lbs.py
# Change code (below)
transforms_mat = transform_mat(
    rot_mats.view(-1, 3, 3),
    rel_joints.contiguous().view(-1, 3, 1)).view(-1, joints.shape[1], 4, 4)

.contiguous().view(...) 으로 바꿔주면 해결된다.

- 2023.02.09 Kyujinpy 작성,

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1024, 1024]], which is output 0 of AsStridedBackward0, is at version 2; expected version 1 instead. (1) 2023.05.16 [wget 설치] - FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다(2). (MPS-Net 실행 에러) (0) 2023.02.09 [ffmpeg 설치] - FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다(1). (MPS-Net 실행 에러) (0) 2023.02.09 Python argparse action='store_true'의 의미 (0) 2023.02.09
 
推荐文章