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

Đang mở Phù hợp với người mới
#292 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python, pytorch
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với tài liệu DirectML và phần tương thích trong README. So sánh môi trường Windows, Python, torch-directml và ONNX Runtime được báo cáo với các kết quả của MDX, VR, RoFormer và Demucs. Được xem là hoàn tất khi README ghi rõ những kiến trúc nào hoạt động và những kiến trúc nào vẫn bị chặn bởi hỗ trợ ComplexFloat hoặc fused LSTM.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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 :)

Ngôn ngữ chính
Python
Star
1.5k
Fork
216
Merge trung bình
1 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nomadkaraoke/python-audio-separator

Tất cả issue của nomadkaraoke/python-audio-separator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.