This demo app demonstrates how to implement the CLAP model to perform text to audio search, audio label classification and audio to audio search.
opensearch_setup/
clap_mapping.json filestreamlit/
PyEnv to manage python versions and venv virtual environment in VS Code IDE.CLAP_notebook.ipynb, or in the streamlit directory with pip install -r requirements.txt.pip install streamlit.streamlit directory and run streamlit run app.py to start the app.The demo app is setup to accept audio data from 3 audio data sources:
Adding this audio is not required, the app allows recording and indexing user audio from a local machine, but it's helpful for demo purposes to have a larger data set to play with.
These are all available from the LAION audio set github audio data project (and were used to help train the pretrained CLAP models).
Clone the repo, and simply run the download script for the audio sets (for example, the download_FUSS.sh script will download the FUSS audio set). Unzip the downloads and paste the contents into a directory called audio_data/ in the clap-demo directory (same level as streamlit/ and opensearch_setup/.)
You should then be able to run the sections of the notebook for processing and bulk indexing these audio data sets.
For more information about CLAP, checkout the github page, the research article, or the hugging face model page.
8 commits
1 commits
Python
53.8%
Jupyter Notebook
46.2%
This demo app demonstrates how to implement the CLAP model to perform text to audio search, audio label classification and audio to audio search.
opensearch_setup/
clap_mapping.json filestreamlit/
PyEnv to manage python versions and venv virtual environment in VS Code IDE.CLAP_notebook.ipynb, or in the streamlit directory with pip install -r requirements.txt.pip install streamlit.streamlit directory and run streamlit run app.py to start the app.The demo app is setup to accept audio data from 3 audio data sources:
Adding this audio is not required, the app allows recording and indexing user audio from a local machine, but it's helpful for demo purposes to have a larger data set to play with.
These are all available from the LAION audio set github audio data project (and were used to help train the pretrained CLAP models).
Clone the repo, and simply run the download script for the audio sets (for example, the download_FUSS.sh script will download the FUSS audio set). Unzip the downloads and paste the contents into a directory called audio_data/ in the clap-demo directory (same level as streamlit/ and opensearch_setup/.)
You should then be able to run the sections of the notebook for processing and bulk indexing these audio data sets.
For more information about CLAP, checkout the github page, the research article, or the hugging face model page.
8 commits
1 commits
Python
53.8%
Jupyter Notebook
46.2%