Comfy-Org / Comfy-Org/ComfyUI

Request for ClipTextEncode HiDream node

Open
#7,639 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Feature Idea

Similar to the node you have for SD3, Flux, and others:
![Image](https://github.com/user-attachments/assets/a8c861d2-b88c-4aa4-82d4-ca947ed02095)

Please add a ClipTextEncode node specific for HiDream, so we can separately prompt all 4 encoders.

If possible, please also allow weighting the encoders (as testing with the HiDream wrappers exposed that Clip-L could be underweighted and Llama could be overweighted for better results).

Also if possible, please allow full token length of each encoder (currently anything over 77 throws a warning as that is the lowest common denominator). So in theory we could prompt the llama text encoder at (I think) 2048 tokens if we wanted to get wild.

### Existing Solutions

For reference, this is from the excellent wrapper by SanDiegoDude https://github.com/SanDiegoDude/ComfyUI-HiDream-Sampler . This allows prompting per encoder, and setting the weighting of each encoder, and allows setting max token length for each:

![Image](https://github.com/user-attachments/assets/b4d03973-4add-48d7-90be-01bd07a69c20)

### 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.