ozyman commited on
Commit
f3b7b20
1 Parent(s): 5d5267f

replace np.long

Browse files
Files changed (1) hide show
  1. tddfa/bfm/bfm.py +1 -1
tddfa/bfm/bfm.py CHANGED
@@ -31,7 +31,7 @@ class BFMModel(object):
31
  self.tri = bfm.get('tri')
32
 
33
  self.tri = _to_ctype(self.tri.T).astype(np.int32)
34
- self.keypoints = bfm.get('keypoints').astype(np.long) # fix bug
35
  w = np.concatenate((self.w_shp, self.w_exp), axis=1)
36
  self.w_norm = np.linalg.norm(w, axis=0)
37
 
 
31
  self.tri = bfm.get('tri')
32
 
33
  self.tri = _to_ctype(self.tri.T).astype(np.int32)
34
+ self.keypoints = bfm.get('keypoints').astype(np.int64) # fix bug
35
  w = np.concatenate((self.w_shp, self.w_exp), axis=1)
36
  self.w_norm = np.linalg.norm(w, axis=0)
37