Happy new years
This commit is contained in:
1 parent
c7175dd7ff
commit
8c4865effb
53 files changed
+4604
-61
No files matched your search
@@ -53,11 +53,10 @@ class Audio2motionModel(Base):
|
||||
self.mean_dict = np.load(path_deca_mean, allow_pickle=True).item()
|
||||
print(self.mean_dict.keys())
|
||||
|
||||
|
||||
def set_input(self, batch_input):
|
||||
|
||||
self.data = batch_input["data"].float().to(self.device) # (nsteps, dim_data)
|
||||
self.cond = batch_input["cond"].float().to(self.device) # (nsteps, dim_cond)
|
||||
self.data = batch_input["data"].float().to(self.device) # (B, nsteps, dim_data)
|
||||
self.cond = batch_input["cond"].float().to(self.device) # (B, nsteps, dim_cond)
|
||||
|
||||
self.B = self.data.size(0)
|
||||
debug(self.opt, f"data = {self.data.shape}, cond = {self.cond.shape}, dtype={self.data.dtype}", verbose=False)
|
||||
@@ -254,7 +253,7 @@ class Audio2motionModel(Base):
|
||||
|
||||
# save animation
|
||||
# print(f"testing v_render_pt = {len(v_render_pt)}, gt shape = {len(v_render_gt)}")
|
||||
save_animation_with_gt2(v_render_pt, v_render_gt, jpath_save)
|
||||
save_animation_with_gt2(v_render_pt, v_render_gt, jpath_save, fps=self.opt.DATASET.fps)
|
||||
|
||||
|
||||
|
||||
@@ -290,6 +289,9 @@ def define_netG(opt):
|
||||
from src.nn.audio2motion import Audio2Motion
|
||||
netG = Audio2Motion(opt)
|
||||
|
||||
elif opt.MODEL.name_netG == "audio2motion2":
|
||||
from src.nn.audio2motion2 import Audio2Motion2
|
||||
netG = Audio2Motion2(opt)
|
||||
else:
|
||||
raise NameError(f"The model of opt.MODEL.name_netAE(={opt.MODEL.name_netG}) not existing!")
|
||||
|
||||
|
||||
Reference in new issue
Block a user