EvanTHU commited on
Commit
e8d5248
1 Parent(s): 4458b19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -152,7 +152,8 @@ def generate_video_from_text(text, opt, pipeline):
152
  os.makedirs(save_dir, exist_ok=True)
153
 
154
  print("xxxxxxx")
155
- print(pipeline.device)
 
156
  print("xxxxxxx")
157
 
158
  start_time = time.perf_counter()
@@ -164,6 +165,9 @@ def generate_video_from_text(text, opt, pipeline):
164
  start_time = time.perf_counter()
165
  mean = np.load(pjoin(opt.meta_dir, 'mean.npy'))
166
  std = np.load(pjoin(opt.meta_dir, 'std.npy'))
 
 
 
167
 
168
 
169
  samples = []
@@ -187,15 +191,7 @@ def generate_video_from_text(text, opt, pipeline):
187
  motion = samples[i]
188
  kinematic_tree = paramUtil.t2m_kinematic_chain if (opt.dataset_name == 't2m') else paramUtil.kit_kinematic_chain
189
  plot_3d_motion(save_path, kinematic_tree, motion, title=title, fps=opt.fps, radius=opt.radius)
190
- print(save_path)
191
- print(kinematic_tree)
192
- print(motion)
193
- print(len(samples))
194
- print(title)
195
- print(opt.fps)
196
- print(opt.radius)
197
- os.system("ls temp")
198
- os.system("pwd")
199
 
200
  gr.Info("Rendered motion...", duration = 3)
201
  end_time = time.perf_counter()
 
152
  os.makedirs(save_dir, exist_ok=True)
153
 
154
  print("xxxxxxx")
155
+ print(texts)
156
+ print(motion_lens)
157
  print("xxxxxxx")
158
 
159
  start_time = time.perf_counter()
 
165
  start_time = time.perf_counter()
166
  mean = np.load(pjoin(opt.meta_dir, 'mean.npy'))
167
  std = np.load(pjoin(opt.meta_dir, 'std.npy'))
168
+ print(mean)
169
+ print(std)
170
+ print(pred_motions)
171
 
172
 
173
  samples = []
 
191
  motion = samples[i]
192
  kinematic_tree = paramUtil.t2m_kinematic_chain if (opt.dataset_name == 't2m') else paramUtil.kit_kinematic_chain
193
  plot_3d_motion(save_path, kinematic_tree, motion, title=title, fps=opt.fps, radius=opt.radius)
194
+
 
 
 
 
 
 
 
 
195
 
196
  gr.Info("Rendered motion...", duration = 3)
197
  end_time = time.perf_counter()