nomadkaraoke / python-audio-separator

Easy to use stem (e.g. instrumental/vocals) separation from CLI or as a python package, using a variety of amazing pre-trained models (primarily from UVR)
MIT License
514 stars 86 forks source link

[Bug]: using specific model in docker not working #147

Open acimail01 opened 3 weeks ago

acimail01 commented 3 weeks ago

Describe the bug

download model to host folder

docker run --rm -it -v ${PWD}:/workdir beveradb/audio-separator --model_file_dir "./tmp/audio-separator/h" --model_filename htdemucs_6s.yaml --download_model_only

using model from folder

docker run --rm -it -v ${PWD}:/workdir beveradb/audio-separator --model_file_dir "./tmp/audio-separator/h" --model_filename htdemucs_6s.yaml mysong.mp3

Model download works, but separation command fails. The audio separation does not work.

Have you searched for existing issues? 🔎

Screenshots or Videos

No response

Logs

Traceback (most recent call last):
  File "/usr/local/bin/audio-separator", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/audio_separator/utils/cli.py", line 208, in main
    output_files = separator.separate(audio_file, primary_output_name=args.primary_output_name, secondary_output_name=args.secondary_output_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/audio_separator/separator/separator.py", line 774, in separate
    output_files = self.model_instance.separate(audio_file_path, primary_output_name, secondary_output_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

System Info

Operating System: 
Python version: 
Other...

Additional Information

No response