BonanDing commited on
Commit
e742276
·
1 Parent(s): 1470930

Remove DeMemWM model debugger traps

Browse files
algorithms/dememwm/models/diffusion.py CHANGED
@@ -166,10 +166,7 @@ class Diffusion(nn.Module):
166
  x = x.permute(1,0,2,3,4)
167
  action_cond = action_cond.permute(1,0,2)
168
  if pose_cond is not None and pose_cond[0] is not None:
169
- try:
170
- pose_cond = pose_cond.permute(1,0,2)
171
- except:
172
- pass
173
  t = t.permute(1,0)
174
  if frame_memory_segments is not None and frame_memory_pose is not None:
175
  # Algorithm preprocessing keeps packed metadata as T_all x B x 5;
 
166
  x = x.permute(1,0,2,3,4)
167
  action_cond = action_cond.permute(1,0,2)
168
  if pose_cond is not None and pose_cond[0] is not None:
169
+ pose_cond = pose_cond.permute(1,0,2)
 
 
 
170
  t = t.permute(1,0)
171
  if frame_memory_segments is not None and frame_memory_pose is not None:
172
  # Algorithm preprocessing keeps packed metadata as T_all x B x 5;
algorithms/dememwm/models/dit.py CHANGED
@@ -677,10 +677,7 @@ class DiT(nn.Module):
677
  c = rearrange(c, "(b t) d -> b t d", t=T)
678
 
679
  if torch.is_tensor(action_cond):
680
- try:
681
- c_action_cond = c + self.external_cond(action_cond)
682
- except:
683
- import pdb;pdb.set_trace()
684
  else:
685
  c_action_cond = None
686
 
 
677
  c = rearrange(c, "(b t) d -> b t d", t=T)
678
 
679
  if torch.is_tensor(action_cond):
680
+ c_action_cond = c + self.external_cond(action_cond)
 
 
 
681
  else:
682
  c_action_cond = None
683