ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

SD 3.5 and HiDream share the same clip g?

Open tiptinker opened this issue 1 year ago • 7 comments

Your question

https://huggingface.co/Comfy-Org/stable-diffusion-3.5-fp8/tree/main/text_encoders https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/tree/main/split_files/text_encoders

Image

Image

Do they share the same clip g , clip l and t5?

Logs


Other

No response

tiptinker avatar Apr 18 '25 09:04 tiptinker

Yes probably, From ChatGPT: "The CLIP-G model is a open source variant of OpenAI's CLIP (Contrastive Language–Image Pre-Training) model. CLIP-G was developed by the LAION (Large-scale AI Open Network) team, who trained it using the LAION-2B dataset—a collection of 2 billion image-text pairs sourced from the internet. This model was trained using the OpenCLIP framework, an open-source implementation of CLIP."

J-Cott avatar Apr 18 '25 10:04 J-Cott

~~Yes, "CLIP L" and "CLIP G" are the same between all models that use them~~, "T5-XXL" is the same between all models that use it except cosmos (EDIT: I am wrong, after 10 models using the exact same files in a row, HiDream is the first to actually use a different CLIP! See replies below)

mcmonkey4eva avatar Apr 18 '25 10:04 mcmonkey4eva

T5xxl is the same but hidream uses one of the long clip l variants and long clip g not the regular ones.

comfyanonymous avatar Apr 18 '25 16:04 comfyanonymous

Thank you. one more question.

Image

these 2 folders the same effect ?

T5xxl is the same but hidream uses one of the long clip l variants and long clip g not the regular ones.

tiptinker avatar Apr 18 '25 16:04 tiptinker

Yes, "CLIP L" and "CLIP G" are the same between all models that use them, "T5-XXL" is the same between all models that use it except cosmos

There was actually a mention on discord today (Banodoco) that this isn't the case for HiDream. The users were saying the Clip-L and Clip-G models included w/ the HiDream repo did have some difference and using them made a significant difference (positive).

Image

CCpt5 avatar Apr 18 '25 18:04 CCpt5

Yep I can confirm using the correct one makes an enormous difference. I was being sloppy and lazy using ones I already had, and probably half my outputs looked like underconditioned trash. Use the ones found here: https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/tree/main/split_files/text_encoders

ClownsharkBatwing avatar Apr 18 '25 18:04 ClownsharkBatwing

Thank you. one more question.

Image

these 2 folders the same effect ?

T5xxl is the same but hidream uses one of the long clip l variants and long clip g not the regular ones.

clip is a legacy directory. In the early days, when only Stable Diffusion was supported, only CLIP models were used as text encoders. Recently, as various types of text encoders are being used, the directory has been renamed to a more general name to better accommodate them.

For backward compatibility, the clip dir can still be used.

ltdrdata avatar Apr 19 '25 02:04 ltdrdata