generate blank image with qwen image edit
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
### Custom Node Testing
- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
generate image normally
### Actual Behavior
generate black image.
### Steps to Reproduce
I use example qwen edit workflow here https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit
but comfy generate blank (black) image with error:
```
\comfyUI_portable\ComfyUI\nodes.py:1590: RuntimeWarning: invalid value encountered in cast
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
```
It seems the issue lies with sageattention. Remove --use-sage-attention when running comfy and it generates normally.
### Debug Logs
```powershell
\comfyUI_portable\ComfyUI\nodes.py:1590: RuntimeWarning: invalid value encountered in cast
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.