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

It seams slowly because of some functions running on CPU #44

Closed
troycjj opened this issue Jan 22, 2024 · 1 comment
Closed

It seams slowly because of some functions running on CPU #44

troycjj opened this issue Jan 22, 2024 · 1 comment

Comments

@troycjj
Copy link

troycjj commented Jan 22, 2024

y_hat_list = [ [model(xb.to(dev), n_wins.to(dev)).cpu().numpy(), yb.cpu().numpy()] for xb, yb, (idx, n_wins) in dl]

This function are running on cpu, cost my 60% CPU(8 core 16 processors R5 5700X)

I predict a 10 seconds audio on RTX4060TI used 0.26 seconds

cost in neural network less than 0.05 seconds
cost more than 0.2 seconds in DataLoader

@gabrielmittag
Copy link
Owner

The computation of the Mel-Specs runs on CPU and the neural network is in fact quite small, so I think this is expected in a sense.

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