microsoft / CLAP

Learning audio concepts from natural language supervision
MIT License
455 stars 35 forks source link

[O] Fix python 3.11 compatibility & optimize ease-of-use #25

Closed hykilpikonna closed 11 months ago

hykilpikonna commented 11 months ago

What's done by this pull request

  1. Fix python 3.11 compatibility
  2. Remove unnecessary dependencies / imports
  3. Created pyproject.toml to allow installing CLAP as a pip package
  4. Published pypi package so users can install via pip install msclap
  5. Previously, CLAP only works if you are importing in the CLAP/src directory. This PR allows importing CLAP in an external python program (from msclap import CLAP)
  6. Separated examples from module source. (Users shouldn't download unnecessary examples when they do pip install)

Future tasks (Help needed from MS)

  1. Zenodo is extremely slow (215KB/s from Canada), please upload weights to https://huggingface.co/microsoft. I already implemented automatic downloading of weights but they're very slow using the Zenodo url.
  2. Provide your pypi username so that I can share / transfer https://pypi.org/project/msclap
  3. More comprehensive testing (preferably automatic)
hykilpikonna commented 11 months ago

@microsoft-github-policy-service agree