Spaces:
Runtime error
Runtime error
Update dataloaders/beat_sep_single.py
Browse files
dataloaders/beat_sep_single.py
CHANGED
|
@@ -76,16 +76,15 @@ class CustomDataset(Dataset):
|
|
| 76 |
else:
|
| 77 |
self.joint_mask[self.ori_joint_list[joint_name][1] - self.ori_joint_list[joint_name][0]:self.ori_joint_list[joint_name][1]] = 1
|
| 78 |
# select trainable joints
|
| 79 |
-
self.smplx = smplx.
|
| 80 |
-
self.args.data_path_1+"smplx_models/",
|
| 81 |
-
|
| 82 |
-
gender='NEUTRAL_2020',
|
| 83 |
use_face_contour=False,
|
| 84 |
num_betas=300,
|
| 85 |
-
num_expression_coeffs=100,
|
| 86 |
ext='npz',
|
| 87 |
use_pca=False,
|
| 88 |
-
|
| 89 |
|
| 90 |
if loader_type == 'test':
|
| 91 |
# In demo/test mode, skip dataset CSV and use provided paths
|
|
|
|
| 76 |
else:
|
| 77 |
self.joint_mask[self.ori_joint_list[joint_name][1] - self.ori_joint_list[joint_name][0]:self.ori_joint_list[joint_name][1]] = 1
|
| 78 |
# select trainable joints
|
| 79 |
+
self.smplx = smplx.SMPLX(
|
| 80 |
+
model_path=self.args.data_path_1 + "smplx_models/",
|
| 81 |
+
gender='NEUTRAL_2020',
|
|
|
|
| 82 |
use_face_contour=False,
|
| 83 |
num_betas=300,
|
| 84 |
+
num_expression_coeffs=100,
|
| 85 |
ext='npz',
|
| 86 |
use_pca=False,
|
| 87 |
+
).eval()
|
| 88 |
|
| 89 |
if loader_type == 'test':
|
| 90 |
# In demo/test mode, skip dataset CSV and use provided paths
|