shiimizu / ComfyUI_smZNodes

Custom nodes for ComfyUI such as CLIP Text Encode++
GNU General Public License v3.0
216 stars 16 forks source link

new comfy update and SD3 #80

Closed sadsilly closed 2 months ago

sadsilly commented 5 months ago

This add on currently does not work with sd3 or sdxl on current version of comfy.

could you please fix it my fav add on in comfy <3

Error occurred when executing smZ CLIPTextEncode:

'SD3Tokenizer' object has no attribute 'tokenizer'

File "C:\ai\comfy\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\ai\comfy\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\ai\comfy\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "C:\ai\comfy\ComfyUI\custom_nodes\ComfyUI_smZNodes\nodes.py", line 87, in encode result = run(params) File "C:\ai\comfy\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 754, in run cond, pooled = clip_clone.encode_from_tokens(tokens, True) File "C:\ai\comfy\ComfyUI\comfy\sd.py", line 142, in encode_from_tokens cond, pooled = self.cond_stage_model.encode_token_weights(tokens) File "C:\ai\comfy\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 440, in encode_token_weights model_hijack.hijack(self) File "C:\ai\comfy\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\sd_hijack.py", line 113, in hijack tokenizer = getattr(tokenizer_parent, tokenizer_parent.clip).tokenizer if hasattr(tokenizer_parent, 'clip') else tokenizer_parent.tokenizer