Skip to content

Commit

Permalink
Update common.py
Browse files Browse the repository at this point in the history
remove weights.detach()
  • Loading branch information
yifita authored Sep 8, 2020
1 parent 2e9e09e commit da4c07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def deform_with_MVC(cage, cage_deformed, cage_face, query, verbose=False):
query (B,Q,3)
"""
weights, weights_unnormed = mean_value_coordinates_3D(query, cage, cage_face, verbose=True)
weights = weights.detach()
# weights = weights.detach()
deformed = torch.sum(weights.unsqueeze(-1)*cage_deformed.unsqueeze(1), dim=2)
if verbose:
return deformed, weights, weights_unnormed
Expand Down

0 comments on commit da4c07d

Please sign in to comment.