fix template_verts

This commit is contained in:
Sen Liang committed 2022-03-17 17:05:52 +08:00
1 parent e6f471eb64
commit f6ccefc247
5 files changed
+55 -30

No files matched your search

+4 -4
View File
@@ -49,11 +49,11 @@ class Audio2MeshModel(Base):
# path_deca_mean = Path("./data/DECA_obama_mean.npy")
path_deca_mean = self.opt.DATASET.path_mean_dict
self.mean_dict = np.load(path_deca_mean, allow_pickle=True).item()
print(f"load mean from {path_deca_mean}, \nmean_dict keys = {self.mean_dict.keys()}")
print(f"load mean deca coeff from > {path_deca_mean}, \nkeys = {self.mean_dict.keys()}")
self.template_verts = self.get_template_vertices()
debug(opt, f"template_verts shape = {self.template_verts.shape}")
debug(opt, f"mean_dict keys = {self.mean_dict.keys()}", verbose=True)
# get template
self.template_verts = self.get_template_vertices() # 1 x 1 x 5023 x 3
self.template_verts_specific = self.get_template_vertices(self.mean_dict) # 1 x 1 x 5023 x 3
# if filter outlier
# if self.opt.LOSS.filter_outlier: