Update eduport_tts_mal.py
Browse files- 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
|