xizaoqu commited on
Commit
9c45273
·
1 Parent(s): f0b79ab
Files changed (1) hide show
  1. algorithms/worldmem/df_video.py +1 -1
algorithms/worldmem/df_video.py CHANGED
@@ -804,7 +804,7 @@ class WorldMemMinecraft(DiffusionForcingBase):
804
  new_c2w_mat = euler_to_camera_to_world_matrix(first_pose)
805
  self_memory_c2w = new_c2w_mat[None, None].to(device)
806
  self_frame_idx = torch.tensor([[context_frames_idx]]).to(device)
807
- return first_frame.cpu(), self_frames.detach().cpu().clone(), self_poses.cpu(), self_memory_c2w.cpu(), self_frame_idx.cpu()
808
  else:
809
  last_frame = self_frames[-1].clone()
810
  self_poses = self_poses.to(device)
 
804
  new_c2w_mat = euler_to_camera_to_world_matrix(first_pose)
805
  self_memory_c2w = new_c2w_mat[None, None].to(device)
806
  self_frame_idx = torch.tensor([[context_frames_idx]]).to(device)
807
+ return first_frame.cpu(), self_frames.cpu().numpy(), self_poses.cpu(), self_memory_c2w.cpu(), self_frame_idx.cpu()
808
  else:
809
  last_frame = self_frames[-1].clone()
810
  self_poses = self_poses.to(device)