shiimizu / ComfyUI_smZNodes

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

ERROR AttributeError: 'SDClipModel' object has no attribute 'unhook' #104

Open 1272870698 opened 2 months ago

1272870698 commented 2 months ago

[rgthree] Using rgthree's optimized recursive execution. !!! Exception during processing!!! 'SDClipModel' object has no attribute 'unhook' Traceback (most recent call last): File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 192, in HijackClip text_processing_engine = ClassicTextProcessingEngine( File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\text_processing\classic_engine.py", line 85, in init self.id_pad = self.pad_token AttributeError: 'ClassicTextProcessingEngine' object has no attribute 'pad_token'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "F:\ComfyUI_windows_portable\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 "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_smZNodes\nodes.py", line 98, in encode with HijackClip(clip, opts) as clip: File "F:\SD\sd-webui-aki-v4.5\python\lib\contextlib.py", line 135, in enter return next(self.gen) File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 205, in HijackClip getattr(inner_store[a2[0]], a2[1]).self.unhook() File "F:\SD\sd-webui-aki-v4.5\python\lib\site-packages\torch\nn\modules\module.py", line 1729, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'SDClipModel' object has no attribute 'unhook'

shiimizu commented 2 months ago

What checkpoint did you use?