Skip to content

Commit

Permalink
fix GuyTevet#83: Fix bug related to action-to-motion.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigal-raab committed Feb 15, 2023
1 parent c283984 commit fd39c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval/a2m/gru_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, mode, model, diffusion, dataiterator, device, unconstrained,
translation=True, jointstype='smpl', vertstrans=True, betas=None,
beta=0, glob_rot=None, get_rotations_back=False)
batch["lengths"] = model_kwargs['y']['lengths'].to(device)
if unconstrained: # proceed only if not running unconstrained
if not unconstrained: # proceed only if not running unconstrained
batch["y"] = model_kwargs['y']['action'].squeeze().long().cpu() # using torch.long so lengths/action will be used as indices
self.batches.append(batch)

Expand Down

0 comments on commit fd39c9e

Please sign in to comment.