aoxo commited on
Commit
6f4b789
·
verified ·
1 Parent(s): dbc152d

Update eduport_tts_mal.py

Browse files
Files changed (1) hide show
  1. eduport_tts_mal.py +1 -1
eduport_tts_mal.py CHANGED
@@ -234,7 +234,7 @@ def train_model(num_epochs=10, accumulation_steps=16):
234
  for batch_idx, (audio_input, text_input) in enumerate(train_progress):
235
 
236
  # Move tensors to device
237
- audio_input = audio_input.squeeze.to(device)
238
  # Squeeze or reshape if necessary
239
  if audio_input.dim() == 4:
240
  audio_input = audio_input.squeeze(1) # Remove extra singleton dimension
 
234
  for batch_idx, (audio_input, text_input) in enumerate(train_progress):
235
 
236
  # Move tensors to device
237
+ audio_input = audio_input.squeeze(1).to(device)
238
  # Squeeze or reshape if necessary
239
  if audio_input.dim() == 4:
240
  audio_input = audio_input.squeeze(1) # Remove extra singleton dimension