### Install project dependencies Source: https://github.com/amaai-lab/mirflex/blob/main/SETUP.md Execute these commands in order to install the required Python packages and system libraries. ```bash pip install essentia pip install -f https://essentia.upf.edu/python-wheels/ essentia-tensorflow pip install librosa pip install git+https://github.com/CPJKU/madmom sudo apt-get install portaudio19-dev pip install pyaudio pip install git+https://github.com/mjhydri/BeatNet pip install openai pip install torch pip install pandas pip install pyrubberband pip install pyyaml pip install mir_eval pip install pretty_midi pip uninstall pysoundfile pip uninstall soundfile pip install soundfile pip install tensorflow==2.7.0 conda install -c conda-forge ffmpeg libsndfile pip install spleeter pip install httpx==0.26.0 pip install pydub pip install protobuf==3.19.0 pip install jams pip uninstall librosa pip install librosa==0.6.2 pip uninstall resampy numba pip install numba==0.48 resampy ``` -------------------------------- ### Configure Input JSON Generation Source: https://github.com/amaai-lab/mirflex/blob/main/README.md Example configuration snippet for defining input directories and output file paths in the preprocessing script. ```python if __name__ == "__main__": # Example usage: input_directories = ["/proj/mirflex/samples/fma_top_downloads/", "/proj/mirflex/samples/generic_pop_audio/", "/proj/mirflex/samples/mtg_jamendo/"] output_json_file = "/proj/mirflex/files/audio_files.json" ``` -------------------------------- ### Clone and Prepare Repository Source: https://github.com/amaai-lab/mirflex/blob/main/README.md Commands to clone the repository and prepare pre-trained weights for source separation. ```bash git clone https://github.com/AMAAI-Lab/mirflex.git ``` ```bash cd mirflex ``` ```bash wget --no-check-certificate 'https://drive.google.com/uc?export=download&id=1yFs9ncHiV5-bI3_xrsgk7eL2QN9Hlldd' -O spleeter_pretrained_weights.zip ``` ```bash unzip spleeter_pretrained_weights.zip ``` -------------------------------- ### Run Feature Visualizer Source: https://github.com/amaai-lab/mirflex/blob/main/README.md Command to launch the GUI visualizer for feature analysis. ```bash python display_tags.py files/features.json (directory_with_mirflex_repo)/mirflex/ ``` -------------------------------- ### Run Preprocessing and Feature Extraction Source: https://github.com/amaai-lab/mirflex/blob/main/README.md Commands to generate the input JSON, perform audio preprocessing, and execute the main feature extraction script. ```bash python utils/create_input_json.py ``` ```bash python preprocess.py config/feature_extractor_config.yaml ``` ```bash python main.py config/feature_extractor_config.yaml ``` -------------------------------- ### Set environment variables Source: https://github.com/amaai-lab/mirflex/blob/main/SETUP.md Configure the GPU memory growth behavior for TensorFlow. ```bash export TF_FORCE_GPU_ALLOW_GROWTH=true ``` -------------------------------- ### Activate Environment Source: https://github.com/amaai-lab/mirflex/blob/main/README.md Command to activate the required conda environment. ```bash conda activate mirflex ``` -------------------------------- ### Feature Extractor Configuration Source: https://github.com/amaai-lab/mirflex/blob/main/README.md YAML configuration defining input/output paths, OpenAI API settings, and specific feature extractor models. ```yaml files: input: "/path/to/audio_files.json" output: "/path/to/features.json" caption_generator: api_key: "YOUR_OPENAI_API_KEY" model_id: "gpt-3.5-turbo" extractors: mood_extractor: active: True model: "/path/to/mood_model.pb" model_metadata: "/path/to/mood_model_metadata.json" embedding_model: "/path/to/embedding_model.pb" # Add configurations for other extractors (genre, instrument, voice, gender, auto)... ``` -------------------------------- ### Cite MIRFLEX in BibTeX Source: https://github.com/amaai-lab/mirflex/blob/main/README.md Use this BibTeX entry to cite the MIRFLEX library in academic publications. ```bibtex @inproceedings{chopra2024mirflex, title={MIRFLEX: Music Information Retrieval Feature Library for Extraction}, author={Chopra, Anuradha and Roy, Abhinaba and Herremans, Dorien}, booktitle={Proceedings of the Late-Breaking Demo Session of the 25th International Society for Music Information Retrieval Conference (ISMIR)}, year={2024}, address={San Francisco, United States} } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.