Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
4fc2798
1
Parent(s):
7b7c4ba
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,9 +334,9 @@ 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 |
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 |
|
342 |
loaded_data = _warp_load_data(
|
@@ -635,7 +635,7 @@ def _warp_load_data(dict_data,joints,joint_mask_upper,joint_mask_hands,joint_mas
|
|
635 |
}
|
636 |
|
637 |
|
638 |
-
def _warp_create_cuda_model(args,model):
|
639 |
args = args
|
640 |
other_tools.load_checkpoints(model, args.test_ckpt, args.g_name)
|
641 |
args.num_quantizers = 6
|
|
|
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,self.mean_upper,self.mean_hands,self.mean_lower,self.std_upper,self.std_hands,self.std_lower,self.trans_mean,self.trans_std)
|
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,mean_upper,mean_hands,mean_lower,std_upper,std_hands,std_lower,trans_mean,trans_std):
|
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,mean_upper,mean_hands,mean_lower,std_upper,std_hands,std_lower,trans_mean,trans_std)
|
340 |
|
341 |
|
342 |
loaded_data = _warp_load_data(
|
|
|
635 |
}
|
636 |
|
637 |
|
638 |
+
def _warp_create_cuda_model(args,model,mean_upper,mean_hands,mean_lower,std_upper,std_hands,std_lower,trans_mean,trans_std):
|
639 |
args = args
|
640 |
other_tools.load_checkpoints(model, args.test_ckpt, args.g_name)
|
641 |
args.num_quantizers = 6
|