-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Open
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.
Description
Custom Node Testing
- I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
Expected Behavior
Environment:
- OS: Ubuntu 25.10
- GPU: AMD Strix Halo APU (gfx1151) - Radeon 8060S
- PyTorch: 2.11.0a0+rocm7.11.0a20260106 (TheROCk nightly)
- ComfyUI: 0.8.2
Problem:
When using LTX-2 audio-video generation on AMD, SaveVideo crashes with:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
Location:
comfy_api/latest/_input_impl/video_types.py line 377
Cause:
Audio tensor from LTXVAudioVAEDecode stays on GPU. The code calls .numpy() without .cpu() first. This works on NVIDIA (likely due to different memory handling) but crashes on AMD.
Fix:
# Before:
.float().numpy()
# After:
.float().cpu().numpy()One-liner patch:
sed -i 's/\.float()\.numpy()/.float().cpu().numpy()/g' ~/ComfyUI/comfy_api/latest/_input_impl/video_types.pyThis is standard practice - tensors should always be moved to CPU before numpy conversion. Happy to submit a PR if helpful.
Full AMD setup guide: https://github.com/bkpaine1/AMD-Strix-Halo-AI-Guide
Actual Behavior
Voice fails to render with video
Steps to Reproduce
Just run on an AMD
Debug Logs
!!! Exception during processing !!! can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
Traceback (most recent call last):
File "/home/amd/ComfyUI/execution.py", line 518, in executeOther
Please fix
Metadata
Metadata
Assignees
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.