You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we put it in the __init__here, we risk raising an error when the samples were actually being loaded in model.get_data_loader().
But if we check after the get_eval_dataloader here, when no eval sample are provided it can crash if the model.get_data_loader doesn't support no samples being passed to it.
For example gan dataset here throws this without eval samples.
Traceback (most recent call last):
File "/home/julian/workspace/Trainer/trainer/trainer.py", line 1467, in fit
self._fit()
File "/home/julian/workspace/Trainer/trainer/trainer.py", line 1453, in _fit
self.eval_epoch()
File "/home/julian/workspace/Trainer/trainer/trainer.py", line 1314, in eval_epoch
self.get_eval_dataloader(
File "/home/julian/workspace/Trainer/trainer/trainer.py", line 777, in get_eval_dataloader
return self._get_loader(
File "/home/julian/workspace/Trainer/trainer/trainer.py", line 700, in _get_loader
loader = model.get_data_loader(
File "/home/julian/workspace/TTS/TTS/vocoder/models/gan.py", line 333, in get_data_loader
dataset = GANDataset(
File "/home/julian/workspace/TTS/TTS/vocoder/datasets/gan_dataset.py", line 36, in __init__
self.compute_feat = not isinstance(items[0], (tuple, list))
TypeError: 'NoneType' object is not subscriptable
Describe the bug
👟 needs to raise an error when there is no eval sample or skip the eval step.
👉 coqui-ai/TTS#1447
To Reproduce
coqui-ai/TTS#1447
Expected behavior
Raise an error " [!] No eval samples provided"
Or skip the eval step
Logs
No response
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: