replace np.long
Browse files- 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.
|
| 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 |
|