Closed CarpetBook closed 4 months ago
Tried the same code on M1 Mac, but the issue doesn't reproduce.
That's really strange, since the error message you saw in your first debug log output seems to be a permissions issue with a temporary folder, which I wouldn't expect to have anything to do with that parameter...
However, honestly I haven't tested on Windows at all, I don't have a Windows machine to hand and don't really know how to use that operating system these days so I'm not very well equipped to help. I develop on a Mac and test on Linux (in a docker container).
Are you able to run Docker on your Windows machine? If so, that's probably the easiest way to get things to "just work", as the docker container will run within a Linux VM which will likely resolve any file path and/or permission issues.
I do note that there is a (subtle, but relevant) difference between your two example code lines though - in one you're setting model_file_dir
to "./models"
and the other, "models"
.
Technically those should both be relative paths to the same directory you're in, but windows file paths are weird (backslash instead of forward slash) so you might want to try experimenting with that!
If you want to try and debug it more thoroughly with support from me I'm happy to jump on a screen share call some time to investigate properly, just let me know a good date/time/timezone for you! I just don't have a Windows machine to do that myself :)
Ah, sorry, that's just from me testing to make sure the paths weren't a problem. I removed all the spaces from the path, and I put the dot slash to make sure that it was getting the correct models folder, but the result was the same.
I'm sure it would work in the docker container, now seeing that it worked fine on my own Mac. I'll experiment more later and come back with any updates, if I find anything else or if I get something working. I'll close the issue for now.
I have this exact same issue on Windows. It happens when the model has to be converted from onnx to torch due to segment size != dim_t.
This is a bug in onnx2torch, see fix below:
Thanks for the pointer @helloimmatt !
I don't have a Windows machine to test on but I've opened this PR with what I think you're suggesting the fix is?
If you're able to reproduce the error, please could you test that branch (name: attempt-to-test-windows-mdx-fix
) on your machine to see if it fixes it? 🙇
Cheers, Andrew
So, I've tested it. It works completely fine. Quite clever to fix the problem in onnx2torch in your own code! :)
Thanks for testing and confirming @helloimmatt !
FYI @CarpetBook and anyone else who sees this - this issue on Windows should be fixed from v0.16.5
onwards 🙏
Trying to run the library similarly to how I use UVR5; I wanted to run a model with a larger segment size, but I can't seem to get anything other than the default 256 to work at all on either of the two MDX models I've tried (Voc FT and Inst HQ 4).
Running the below code works normally:
...outputs two stems as wav files in the parent directory, as expected.
But changing this line:
gives the following output: