Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
7b7c4ba
1
Parent(s):
f01632b
add
Browse files
app.py
CHANGED
@@ -267,7 +267,7 @@ class BaseTrainer(object):
|
|
267 |
for its, batch_data in enumerate(self.test_loader):
|
268 |
# loaded_data = self._load_data(batch_data)
|
269 |
# net_out = self._g_test(loaded_data)
|
270 |
-
net_out = _warp(self.args,self.model, batch_data,self.joints,self.joint_mask_upper,self.joint_mask_hands,self.joint_mask_lower,self.use_trans
|
271 |
tar_pose = net_out['tar_pose']
|
272 |
rec_pose = net_out['rec_pose']
|
273 |
tar_exps = net_out['tar_exps']
|
@@ -334,7 +334,8 @@ class BaseTrainer(object):
|
|
334 |
|
335 |
|
336 |
@spaces.GPU(duration=149)
|
337 |
-
def _warp(args,model, batch_data,joints,joint_mask_upper,joint_mask_hands,joint_mask_lower,use_trans
|
|
|
338 |
args,model,vq_model_upper,vq_model_hands,vq_model_lower,mean_upper,mean_hands,mean_lower,std_upper,std_hands,std_lower,trans_mean,trans_std,vqvae_latent_scale=_warp_create_cuda_model(args,model)
|
339 |
|
340 |
|
|
|
267 |
for its, batch_data in enumerate(self.test_loader):
|
268 |
# loaded_data = self._load_data(batch_data)
|
269 |
# net_out = self._g_test(loaded_data)
|
270 |
+
net_out = _warp(self.args,self.model, batch_data,self.joints,self.joint_mask_upper,self.joint_mask_hands,self.joint_mask_lower,self.use_trans)
|
271 |
tar_pose = net_out['tar_pose']
|
272 |
rec_pose = net_out['rec_pose']
|
273 |
tar_exps = net_out['tar_exps']
|
|
|
334 |
|
335 |
|
336 |
@spaces.GPU(duration=149)
|
337 |
+
def _warp(args,model, batch_data,joints,joint_mask_upper,joint_mask_hands,joint_mask_lower,use_trans):
|
338 |
+
diffusion = create_gaussian_diffusion(use_ddim=args.use_ddim)
|
339 |
args,model,vq_model_upper,vq_model_hands,vq_model_lower,mean_upper,mean_hands,mean_lower,std_upper,std_hands,std_lower,trans_mean,trans_std,vqvae_latent_scale=_warp_create_cuda_model(args,model)
|
340 |
|
341 |
|