Spaces:
Sleeping
Sleeping
Commit
·
7f70614
1
Parent(s):
d2155c7
Fix train batch initial audio2
Browse files- remfx/models.py +3 -2
remfx/models.py
CHANGED
|
@@ -90,8 +90,9 @@ class RemFXModel(pl.LightningModule):
|
|
| 90 |
def on_train_batch_start(self, batch, batch_idx):
|
| 91 |
if self.log_train_audio:
|
| 92 |
x, y, label = batch
|
| 93 |
-
|
| 94 |
-
|
|
|
|
| 95 |
|
| 96 |
log_wandb_audio_batch(
|
| 97 |
logger=self.logger,
|
|
|
|
| 90 |
def on_train_batch_start(self, batch, batch_idx):
|
| 91 |
if self.log_train_audio:
|
| 92 |
x, y, label = batch
|
| 93 |
+
# Concat samples together for easier viewing in dashboard
|
| 94 |
+
input_samples = rearrange(x, "b c t -> c (b t)").unqueeze(0)
|
| 95 |
+
target_samples = rearrange(y, "b c t -> c (b t)").unqueeze(0)
|
| 96 |
|
| 97 |
log_wandb_audio_batch(
|
| 98 |
logger=self.logger,
|