Windows DirectML testing results: MDX and VR work, RoFormer and Demucs currently fail for different backend limitations

未关闭 适合新手
#292 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
冷清
技术栈
python, pytorch
领域
documentation

调研方向

从 DirectML 文档和 README 的兼容性部分开始。将报告中的 Windows、Python、torch-directml 和 ONNX Runtime 环境与 MDX、VR、RoFormer 和 Demucs 的结果进行比较。当 README 清楚记录哪些架构可以工作,以及哪些架构仍受 ComplexFloat 或 fused LSTM 支持限制时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Following the recent addition of the DirectML documentation, multiple architectures were tested on a Windows machine with an AMD integrated GPU. Here are the results for tracking compatibility.

Environment
Windows 11
Python 3.12.8
torch-directml 0.2.5.dev240914
onnxruntime-directml 1.24.4
audio-separator 0.44.2

env_info reports:
DirectML is available in Torch, setting Torch device to DirectML
ONNXruntime has DmlExecutionProvider available, enabling acceleration

Results

Architecture Model Result
MDX (.onnx) UVR-MDX-NET-Inst_HQ_3.onnx Works successfully
VR (.pth) 5_HP-Karaoke-UVR.pth Works successfully
RoFormer / MDXC (.ckpt) model_bs_roformer_ep_317_sdr_12.9755.ckpt Fails
Demucs hdemucs_mmi.yaml Fails

MDX and VR
The MDX and VR models completed separation successfully using DirectML.

RoFormer
The new implementation first reports '>=' not supported between instances of 'torch.device' and 'int' before falling back to the legacy implementation.
Inference then fails with 'Invalid or unsupported data type ComplexFloat'. This appears to come from torch-directml not supporting ComplexFloat datatype used during FFT operations.

Demucs
The model loads correctly, but inference fails with 'aten::_thnn_fused_lstm_cell' which appears to indicate that the fused LSTM operator required by Demucs is not currently supported by torch-directml.

So, MDX and VR models are fully usable with DirectML. RoFormer currently depends on ComplexFloat support. And Demucs currently depends on fused LSTM support.

Hopefully these results help confirm and update the DirectML compatibility status in the README :)

主要语言
Python
星标
1.5k
派生
216
平均合并
1 小时
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nomadkaraoke/python-audio-separator 的其他 Issue

查看 nomadkaraoke/python-audio-separator 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。