Spaces:
Runtime error
Runtime error
Update apps/infer.py
Browse files- apps/infer.py +3 -3
apps/infer.py
CHANGED
@@ -126,10 +126,10 @@ def generate_model(in_path, model_type):
|
|
126 |
data["global_orient"], device=device, requires_grad=True
|
127 |
) # [1,1,3,3]
|
128 |
|
129 |
-
optimizer_smpl = torch.optim.
|
130 |
[optimed_pose, optimed_trans, optimed_betas, optimed_orient],
|
131 |
-
lr=1e-
|
132 |
-
|
133 |
)
|
134 |
scheduler_smpl = torch.optim.lr_scheduler.ReduceLROnPlateau(
|
135 |
optimizer_smpl,
|
|
|
126 |
data["global_orient"], device=device, requires_grad=True
|
127 |
) # [1,1,3,3]
|
128 |
|
129 |
+
optimizer_smpl = torch.optim.Adam(
|
130 |
[optimed_pose, optimed_trans, optimed_betas, optimed_orient],
|
131 |
+
lr=1e-2,
|
132 |
+
amsgrad=True,
|
133 |
)
|
134 |
scheduler_smpl = torch.optim.lr_scheduler.ReduceLROnPlateau(
|
135 |
optimizer_smpl,
|