-
Now that I can train the models, I decided to try to evaluate them. I want to evaluate the model on different stuff like SI-SDR and other stuff. However. However, I'm unsure of how to do this properly. I trained my model with the following code: from torch import optim #train_loader, val_loader = LibriMix.loaders_from_mini(task="sep_clean", batch_size=16) loss = PITLossWrapper(pairwise_neg_sisdr, pit_from="pw_mtx") I tried using trainer.test(model=system,dataloaders=test_loader), but I got the following error: How can I make it so that I can evaluate my model? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I tried to use the eval.py to evaluate it like the following: But since I didn't use train.py to train my model, it gave me the following error: Is the only way to use eval.py to train by train.py? I am having difficulty training this way because I can't seem to figure out how to fit my custom dataset into train.py. |
Beta Was this translation helpful? Give feedback.
-
If you specify the Otherwise, you can use the function |
Beta Was this translation helpful? Give feedback.
If you specify the
--exp_dir
of your trained model, the eval script should work.Otherwise, you can use the function
compute_metrics
on examples directly if you prefer.