Replies: 1 comment 1 reply
-
Thanks for a new on-point question!
Have a look at the eval.py scripts in the recipes (they all look similar)
and you might find the solution.
However, this is not optimal and we've been wanting to migrate to
lightning-based test loops for a while but didn't get to it.
Le sam. 7 août 2021 à 01:29, Zane Denmon ***@***.***> a
écrit :
… I've just trained a model on ~13 hours of data, and saved the model. How
do I test the model and collect model analytics?
After I train the model, I serialize it and save it, then load it and run
testing using the following code:
model = DPRNNTasNet.from_pretrained(pretrained_model_conf_or_path=model_file)
model.to(device, non_blocking=True)
loss = PITLossWrapper(pairwise_neg_sisdr, pit_from="pw_mtx")
optimizer = optim.Adam(model.parameters(), lr=1e-3)
trainer = Trainer(max_epochs=100, gpus=1, log_every_n_steps=10, logger=wandb_logger, precision=16)
system = System(model=model, optimizer=optimizer, loss_func=loss, train_loader=train_dl, val_loader=val_dl,
test_loader=test_dl)
results = trainer.test(model=system, dataloaders=test_dl)
I only receive back a loss metric. Does Asteroid provide the means of
evaluating a model, or does Asteroid only provide training/validating that
model?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#538>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEND2HFUDM2IBOMTHRHD66LT3RV6VANCNFSM5BWYM4RQ>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just trained a model on ~13 hours of data, and saved the model. How do I test the model and collect model analytics?
After I train the model, I serialize it and save it, then load it and run testing using the following code:
I only receive back a loss metric. Does Asteroid provide the means of evaluating a model, or does Asteroid only provide training/validating that model?
Beta Was this translation helpful? Give feedback.
All reactions