Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i pass a new .wav sample for prediction? #3

Open
kprateek-iitbh opened this issue Nov 14, 2024 · 1 comment
Open

How do i pass a new .wav sample for prediction? #3

kprateek-iitbh opened this issue Nov 14, 2024 · 1 comment

Comments

@kprateek-iitbh
Copy link

It seems from the code, the datasets have to be in a .tar.gz format for the train/validation/test to work. We need to pass the data as a datamodule as seen in main.py line 378 "result = trainer.test(network, datamodule=dm)". Is it possible to just load the .ckpt model from memory and perform a direct prediction on a new .wav file ? Or is the only way to test recording the files and preparing a .tar.gz evaluation shard?

@nikvaessen
Copy link
Owner

It should be possible, but you would need to create a script which manually imports the network class, and then load the network from the checkpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants