FashionFlora commited on
Commit
c8ff712
·
verified ·
1 Parent(s): 5ca77ba

Update Modules/predictor_fsq_flow_convnext.py

Browse files
Modules/predictor_fsq_flow_convnext.py CHANGED
@@ -1290,7 +1290,7 @@ class FSQFlowPredictorConvNeXt(nn.Module):
1290
  w = torch.exp(log_w) * dur_mask_1.float() * length_scale
1291
  w = torch.where(dur_mask_1.bool(), torch.clamp(w, min=1.0), w)
1292
  #w = torch.ceil(w).squeeze(1) # [B, T] integer durations
1293
-
1294
  frame_lengths = w.sum(dim=-1).long() # [B]
1295
  codec_lengths = (frame_lengths + self.codec_stride - 1) // self.codec_stride # [B]
1296
 
 
1290
  w = torch.exp(log_w) * dur_mask_1.float() * length_scale
1291
  w = torch.where(dur_mask_1.bool(), torch.clamp(w, min=1.0), w)
1292
  #w = torch.ceil(w).squeeze(1) # [B, T] integer durations
1293
+ w = w.squeeze(1) # [B, T] integer durations
1294
  frame_lengths = w.sum(dim=-1).long() # [B]
1295
  codec_lengths = (frame_lengths + self.codec_stride - 1) // self.codec_stride # [B]
1296