Extraltodeus/ComfyUI-AutomaticCFG

(IMPORT FAILED) after comfy update

Closed this issue · 6 comments

hi, I've updated comfy today, and AutomaticCFG stopped working. Tried to uninstall and install it, it doesn't helps.....

Cannot import C:\Users***\ComfyUI\custom_nodes\ComfyUI-AutomaticCFG module for custom nodes: name 'CLIPTemperaturePatch' is not defined

"C:\Users***\ComfyUI\custom_nodes\ComfyUI-AutomaticCFG_init_.py", line 19, in
"Temperature settings CLIP": CLIPTemperaturePatch,
NameError: name 'CLIPTemperaturePatch' is not defined

I've deleted line 19, and it starts to work. Im not a dev, dont know what's problem, Could you pls fix it?

Came here with the same problem.

I imported the CLIPTemperaturePatch in __init__.py and it works.

in line 2 of __init__.py I added CLIPTemperaturePatch at the end.

from .experimental_temperature import ExperimentalTemperaturePatchSDXL,ExperimentalTemperaturePatchSD15,CLIPTemperaturePatch

I am guessing the dev forgot to import that class.

Also same problem. Will do the mod for myself in the meantime.
Traceback (most recent call last):
File "C:\AI_Files\ComfyUI\nodes.py", line 1879, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\AI_Files\ComfyUI\custom_nodes\ComfyUI-AutomaticCFG_init
.py", line 19, in
"Temperature settings CLIP": CLIPTemperaturePatch,
^^^^^^^^^^^^^^^^^^^^
NameError: name 'CLIPTemperaturePatch' is not defined

Cannot import C:\AI_Files\ComfyUI\custom_nodes\ComfyUI-AutomaticCFG module for custom nodes: name 'CLIPTemperaturePatch' is not defined

i encounter the same issue

My bad! forgot to import it in the ini file! It's fixed :D