xizaoqu commited on
Commit
e04fe21
·
1 Parent(s): deb4138

fix case bug

Browse files
Files changed (1) hide show
  1. app.py +24 -24
app.py CHANGED
@@ -336,39 +336,39 @@ def set_memory(examples_case):
336
  if examples_case == '1':
337
  data_bundle = np.load("assets/examples/case1.npz")
338
  input_history = data_bundle['input_history'].item()
339
- video_frames = data_bundle['video_frames']
340
- memory_latent_frames = data_bundle['memory_latent_frames']
341
- memory_actions = data_bundle['memory_actions']
342
- memory_poses = data_bundle['memory_poses']
343
- memory_c2w = data_bundle['memory_c2w']
344
- memory_frame_idx = data_bundle['memory_frame_idx']
345
  elif examples_case == '2':
346
  data_bundle = np.load("assets/examples/case2.npz")
347
  input_history = data_bundle['input_history'].item()
348
- video_frames = data_bundle['video_frames']
349
- memory_latent_frames = data_bundle['memory_latent_frames']
350
- memory_actions = data_bundle['memory_actions']
351
- memory_poses = data_bundle['memory_poses']
352
- memory_c2w = data_bundle['memory_c2w']
353
- memory_frame_idx = data_bundle['memory_frame_idx']
354
  elif examples_case == '3':
355
  data_bundle = np.load("assets/examples/case3.npz")
356
  input_history = data_bundle['input_history'].item()
357
- video_frames = data_bundle['video_frames']
358
- memory_latent_frames = data_bundle['memory_latent_frames']
359
- memory_actions = data_bundle['memory_actions']
360
- memory_poses = data_bundle['memory_poses']
361
- memory_c2w = data_bundle['memory_c2w']
362
- memory_frame_idx = data_bundle['memory_frame_idx']
363
  elif examples_case == '4':
364
  data_bundle = np.load("assets/examples/case4.npz")
365
  input_history = data_bundle['input_history'].item()
366
- video_frames = data_bundle['video_frames']
367
- memory_latent_frames = data_bundle['memory_latent_frames']
368
- memory_actions = data_bundle['memory_actions']
369
- memory_poses = data_bundle['memory_poses']
370
- memory_c2w = data_bundle['memory_c2w']
371
- memory_frame_idx = data_bundle['memory_frame_idx']
372
 
373
  out_video = video_frames.transpose(0,2,3,1)
374
  out_video = np.clip(out_video, a_min=0.0, a_max=1.0)
 
336
  if examples_case == '1':
337
  data_bundle = np.load("assets/examples/case1.npz")
338
  input_history = data_bundle['input_history'].item()
339
+ video_frames = data_bundle['memory_frames']
340
+ memory_latent_frames = data_bundle['self_frames']
341
+ memory_actions = data_bundle['self_actions']
342
+ memory_poses = data_bundle['self_poses']
343
+ memory_c2w = data_bundle['self_memory_c2w']
344
+ memory_frame_idx = data_bundle['self_frame_idx']
345
  elif examples_case == '2':
346
  data_bundle = np.load("assets/examples/case2.npz")
347
  input_history = data_bundle['input_history'].item()
348
+ video_frames = data_bundle['memory_frames']
349
+ memory_latent_frames = data_bundle['self_frames']
350
+ memory_actions = data_bundle['self_actions']
351
+ memory_poses = data_bundle['self_poses']
352
+ memory_c2w = data_bundle['self_memory_c2w']
353
+ memory_frame_idx = data_bundle['self_frame_idx']
354
  elif examples_case == '3':
355
  data_bundle = np.load("assets/examples/case3.npz")
356
  input_history = data_bundle['input_history'].item()
357
+ video_frames = data_bundle['memory_frames']
358
+ memory_latent_frames = data_bundle['self_frames']
359
+ memory_actions = data_bundle['self_actions']
360
+ memory_poses = data_bundle['self_poses']
361
+ memory_c2w = data_bundle['self_memory_c2w']
362
+ memory_frame_idx = data_bundle['self_frame_idx']
363
  elif examples_case == '4':
364
  data_bundle = np.load("assets/examples/case4.npz")
365
  input_history = data_bundle['input_history'].item()
366
+ video_frames = data_bundle['memory_frames']
367
+ memory_latent_frames = data_bundle['self_frames']
368
+ memory_actions = data_bundle['self_actions']
369
+ memory_poses = data_bundle['self_poses']
370
+ memory_c2w = data_bundle['self_memory_c2w']
371
+ memory_frame_idx = data_bundle['self_frame_idx']
372
 
373
  out_video = video_frames.transpose(0,2,3,1)
374
  out_video = np.clip(out_video, a_min=0.0, a_max=1.0)