Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
add directml for pytorch
add directml for onnxruntime
add dependencies to project toml
make the use of directml optional
testing
I tried these 2 models
only the drum separation model worked. The 2nd failed due to the
aten::_thnn_fused_lstm_celloperator not existing on the directml backend yet. Maybe it's possible to rebuild these models using a more limited operation set, but that's probably not worth the effortbut also, these same models work in UVR beta, I can't figure out what's different, but ig at least i got some stuff to work.
notes
by default the commandline script and
Separatorclass object will try to use cuda if it's available, but will not do the same for directml.according to UVR directml is experimental, and the torch_directml library is only in the pre-release stage .
I've only tested this on 2 models on an AMD Radeon 780M (integrated laptop GPU)