### Check ffmpeg installation Source: https://github.com/aston89/unlossifier-lossy-audio-reconstructor-and-sound-signature-simulator/blob/main/README.md Verifies that ffmpeg is installed and accessible from the command line. On Windows, ensure ffmpeg is installed and added to the PATH environment variable. ```bash ffmpeg -version ``` -------------------------------- ### Install dependencies with pip Source: https://github.com/aston89/unlossifier-lossy-audio-reconstructor-and-sound-signature-simulator/blob/main/README.md Installs the project dependencies listed in requirements.txt, which include torch, numpy, librosa, soundfile, and safetensors. ```bash pip install -r requirements.txt ``` -------------------------------- ### Run UNlossifier inference with CLI Source: https://github.com/aston89/unlossifier-lossy-audio-reconstructor-and-sound-signature-simulator/blob/main/README.md Restore an audio file using a trained model. Ensure the output sample rate matches the trained model's sample rate. ```bash UNlossifier.py --input input.wav --output restored.wav --model yourtrainedmodel.safetensors --sr 44100 ``` -------------------------------- ### Train UNlossifier model with CLI Source: https://github.com/aston89/unlossifier-lossy-audio-reconstructor-and-sound-signature-simulator/blob/main/README.md Train a model by providing a folder of clean WAV files. The --codec and --bitrate arguments control the compression applied to create degraded pairs; use "wav" for creative signature style training and skip --bitrate in that case. Checkpoints are saved after each epoch. ```bash UNlossifier.py --input ./yourfolder --sr 44100 --epochs 1000 --batch 1 --codec mp3 --bitrate 96k ```