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

Is it possible to run a music / sounds generation model? #668

Closed
flatsiedatsie opened this issue Mar 27, 2024 · 7 comments
Closed

Is it possible to run a music / sounds generation model? #668

flatsiedatsie opened this issue Mar 27, 2024 · 7 comments
Labels
question Further information is requested

Comments

@flatsiedatsie
Copy link
Contributor

Question

I'd love to create a browser-based music generation tool, or one that can turn text into sound effects. Is that supported?

I guess my more general question is: can Transformers.js run pretty much any .onnx I throw at it, or does each model require some level of implementation before it can be used?

@flatsiedatsie flatsiedatsie added the question Further information is requested label Mar 27, 2024
@flatsiedatsie
Copy link
Contributor Author

Well would you look at that plot thickening: https://huggingface.co/Xenova/musicgen-small

Except.. that the repo was created a day ago. Whoa.

@xenova
Copy link
Collaborator

xenova commented Mar 27, 2024

Yep! Somehow your feature request came at the perfect time! This is something I've been working on already for a few days. This is all now possible thanks to this PR by @fxmarty.

Stay tuned for updates! This might only be available in v3 due to WebGPU support (I think CPU/WASM-only will be too slow).

@flatsiedatsie
Copy link
Contributor Author

Very very cool. Nice work @fxmarty. You wouldn't happen to have an early online test somewhere that I can tinker with?

@fxmarty
Copy link

fxmarty commented Mar 28, 2024

I did not implement it in the PR yet, I'll maybe do it with ONNX Runtime (patching some transformers methods to use ORT instead of torch)

@flatsiedatsie
Copy link
Contributor Author

I have no idea what that means, except that I should be patient :-)

@flatsiedatsie
Copy link
Contributor Author

Whoop! #545 (comment)

@flatsiedatsie
Copy link
Contributor Author

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

No branches or pull requests

3 participants