Skip to content

Commit 341f42d

Browse files
committed
Fix motion fitting
1 parent a2316a8 commit 341f42d

File tree

1 file changed

+4
-4
lines changed
  • mGPT/data/transforms/joints2rots

1 file changed

+4
-4
lines changed

mGPT/data/transforms/joints2rots/prior.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def __init__(self, dtype=torch.float32, **kwargs):
6363
self.register_buffer('angle_prior_idxs', angle_prior_idxs)
6464

6565
angle_prior_signs = np.array([1, -1, -1, -1],
66-
dtype=np.float6432 if dtype == torch.float32
67-
else np.float6464)
66+
dtype=np.float32 if dtype == torch.float32
67+
else np.float64)
6868
angle_prior_signs = torch.tensor(angle_prior_signs,
6969
dtype=dtype)
7070
self.register_buffer('angle_prior_signs', angle_prior_signs)
@@ -104,9 +104,9 @@ def __init__(self, prior_folder='prior',
104104
super(MaxMixturePrior, self).__init__()
105105

106106
if dtype == DEFAULT_DTYPE:
107-
np_dtype = np.float6432
107+
np_dtype = np.float32
108108
elif dtype == torch.float64:
109-
np_dtype = np.float6464
109+
np_dtype = np.float64
110110
else:
111111
print('Unknown float type {}, exiting!'.format(dtype))
112112
sys.exit(-1)

0 commit comments

Comments
 (0)