Skip to content

Commit

Permalink
Merge pull request #243 from rgxb2807/fine_transformer_valid_ds_fix
Browse files Browse the repository at this point in the history
Bugfix - Fixing validation dataset variable on FineTransformerTrainer
  • Loading branch information
lucidrains authored Oct 30, 2023
2 parents 9a0cdbe + ea98e13 commit ea973a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audiolm_pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,9 +1207,9 @@ def __init__(

# split for validation

self.valid_dataset = valid_dataset
self.valid_ds = valid_dataset

if not exists(self.valid_dataset):
if not exists(self.valid_ds):
if valid_frac > 0:
train_size = int((1 - valid_frac) * len(self.ds))
valid_size = len(self.ds) - train_size
Expand Down

0 comments on commit ea973a0

Please sign in to comment.