From da4c07dcc5c10d44c1b040fbbd0d897ea5ab1f98 Mon Sep 17 00:00:00 2001 From: Yifan Wang Date: Tue, 8 Sep 2020 10:25:11 +0200 Subject: [PATCH] Update common.py remove weights.detach() --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index 726118f..8427154 100644 --- a/common.py +++ b/common.py @@ -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