Comfy-Org / Comfy-Org/ComfyUI

qwen_image 报错 msg: 'list' object has no attribute 'startswith'

Open
#10,824 0 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

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

添加修复
`
if isinstance(text, list):
text = text[0]
`

### Actual Behavior

报错:
msg: 'list' object has no attribute 'startswith'

定位文件:
/user/ComfyUI/comfy/text_encoders/qwen_image.py

代码位置:
line:22

代码: text.startswith('<|im_start|>') 传入的text为list 导致

### Steps to Reproduce

定位文件:
/user/ComfyUI/comfy/text_encoders/qwen_image.py

代码位置:
line:22

### Debug Logs

```powershell
msg: 'list' object has no attribute 'startswith'
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.