Open SoftologyPro opened 6 months ago
Same pathlib module problem PosixPath
on Windows.
Got it working using by modifying site-packages\omegaconf_utils.py
1) Insert from pathlib import Path
2) Replace line 184 with lambda loader, node: Path(*loader.construct_sequence(node)),
Please adjust the code so that it works on windows without the fix.
Also, you can find deepspeed wheel on that repo fom @daswer123 https://github.com/daswer123/resemble-enhance-windows/
1. Insert `from pathlib import Path` 2. Replace line 184 with `lambda loader, node: Path(*loader.construct_sequence(node)),`
Can we get this as an official fix for a future version? Although modifying anything under site-packages means the end user needs to do it once the environment is setup.
I've discovered the 'core issue' here - there's nothing actually wrong with the code. The fix mentioned above will technically allow it to work, but patches over the problem.
The real issue is in a completely separate repo: https://huggingface.co/ResembleAI/resemble-enhance/blob/main/enhancer_stage2/hparams.yaml
The resemble-enhance repo on huggingface linked above is downloaded to the system when the enhancer is run:
However, the hparams.yaml in the hf repo specifies that the path MUST be a PosixPath path, instead of 'Path', which just picks based on your OS.
The good news: The fix for this is pretty easy, and doesn't require any special programming knowledge!
Enjoy! 🥳
I've made a pull request on huggingface.
https://huggingface.co/ResembleAI/resemble-enhance/discussions/3
Setup a test environment (voc_resembleenhance) and started the UI. Weeb page opens. I select a noisy wav and it opens and plays OK. Then when I click Submit the UI shows Error in both output spots. I get this posixpath error on the command line. Linux specific? Any fix for Windows?