Skip to content

Fixing "file not found error" when running inference with the Large models#29

Open
AdrLfv wants to merge 3 commits intodmlguq456:mainfrom
AdrLfv:fix/FileNotFoundError
Open

Fixing "file not found error" when running inference with the Large models#29
AdrLfv wants to merge 3 commits intodmlguq456:mainfrom
AdrLfv:fix/FileNotFoundError

Conversation

@AdrLfv
Copy link
Copy Markdown

@AdrLfv AdrLfv commented Jun 12, 2025

When you run with --engine-mode infer_sample, the code was entering the training path in the
run() method because there was no specific handling for the infer_sample mode. This was causing it to try to load WSJ0 training dataset files that don't exist on my system.

I've added a new _infer_sample() method to the Engine classes that:

  • Loads a single audio file directly using librosa
  • Processes it with the model
  • Saves the separated sources to an output directory
    I've also updated the run() method to properly handle the infer_sample mode and use the new method instead of trying to load training data.

AdrLfv added 3 commits June 12, 2025 11:01
…ix/2speakers/wav8k/min_segment/tr/s2/029a010z_1.0198_017c0213_-1.0198.wav do not exists!' in models/SepReformer_Large_DM_WSJ0
…111_0.49446_40ga0106_-0.49446.wav do not exists!"
…rb/20da010b_0.3678_024c020r_-0.3678.wav do not exists!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant