A web-based system to classify audio as real (human-composed) or fake (AI-generated) using pretrained MERT embeddings and a CNN model.
- 🎵 Upload
.wavaudio files and detect whether they are AI-generated or human-composed. - 🔍 Uses
m-a-p/MERT-v1-330Mto extract audio embeddings. - 🧠 CNN model trained on the FakeMusicCaps dataset.
- 🌐 Interactive Flask web interface.
git clone https://github.com/Nutan22341/Music-DeepFake.git
cd Music-DeepFakepython -m venv venvActivate the environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txtIf you're on Windows and need local .whl files for PyTorch, install them like:
pip install torch-2.1.0+cpu-cp39-cp39-win_amd64.whl
pip install torchaudio-2.1.0+cpu-cp39-cp39-win_amd64.whl
pip install torchvision-0.16.0+cpu-cp39-cp39-win_amd64.whlpython app.py