fix template_verts
This commit is contained in:
1 parent
a3529ab815
commit
e6f471eb64
3 files changed
+3
-5
No files matched your search
@@ -8,7 +8,6 @@ isTrain: False
|
|||||||
|
|
||||||
|
|
||||||
MODEL:
|
MODEL:
|
||||||
# name: 'audio2mesh'
|
|
||||||
name: 'audio2mesh_ar'
|
name: 'audio2mesh_ar'
|
||||||
name_netG: "audio2mesh_ar"
|
name_netG: "audio2mesh_ar"
|
||||||
|
|
||||||
@@ -20,7 +19,6 @@ MODEL:
|
|||||||
path_checkpoint: "experiments/audio2mesh/train_audio2meshAR_CN_20220314/20220316-23H56M06S"
|
path_checkpoint: "experiments/audio2mesh/train_audio2meshAR_CN_20220314/20220316-23H56M06S"
|
||||||
load_epoch: 50
|
load_epoch: 50
|
||||||
|
|
||||||
|
|
||||||
DATASET:
|
DATASET:
|
||||||
fps: 50
|
fps: 50
|
||||||
sr: 16000
|
sr: 16000
|
||||||
|
|||||||
Whitespace-only changes.
@@ -48,15 +48,15 @@ class Audio2MeshARModel(Base):
|
|||||||
|
|
||||||
path_deca_mean = self.opt.DATASET.path_mean_dict
|
path_deca_mean = self.opt.DATASET.path_mean_dict
|
||||||
self.mean_dict = np.load(path_deca_mean, allow_pickle=True).item()
|
self.mean_dict = np.load(path_deca_mean, allow_pickle=True).item()
|
||||||
print(f"mean_dict keys = {self.mean_dict.keys()}")
|
print(f"load mean deca coeff from > {path_deca_mean}, \nkeys = {self.mean_dict.keys()}")
|
||||||
|
|
||||||
if self.isTrain:
|
if self.isTrain:
|
||||||
self.template_verts = self.get_template_vertices()
|
self.template_verts = self.get_template_vertices()
|
||||||
|
print(f"! get template_verts from zero expression + zero expression")
|
||||||
else:
|
else:
|
||||||
self.template_verts = self.get_template_vertices(self.mean_dict)
|
self.template_verts = self.get_template_vertices(self.mean_dict)
|
||||||
|
print(f"! get template_verts from {path_deca_mean}")
|
||||||
|
|
||||||
debug(opt, f"template_verts shape = {self.template_verts.shape}")
|
|
||||||
debug(opt, f"mean_dict keys = {self.mean_dict.keys()}", verbose=True)
|
|
||||||
|
|
||||||
# if filter outlier
|
# if filter outlier
|
||||||
# if self.opt.LOSS.filter_outlier:
|
# if self.opt.LOSS.filter_outlier:
|
||||||
|
|||||||
Reference in new issue
Block a user