Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1272870698 opened this issue Sep 17, 2024 · 1 comment
Open

Comments

@1272870698
Copy link

[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
Copy link
Owner

What checkpoint did you use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants