szhublox / ambw_comfyui

Auto-MBW for ComfyUI loosely based on sdweb-auto-MBW
16 stars 2 forks source link

Module not found #3

Open azazeal04 opened 11 months ago

azazeal04 commented 11 months ago

Tried your Auto Merge node today and keeps telling me no module named clip Error occurred when executing Auto Merge Block Weighted:

No module named 'clip'

File "D:\comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ambw_comfyui__init__.py", line 117, in ambw self.classifier = importlib.import_module( File "importlib__init__.py", line 126, in import_module File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ambw_comfyui\classifiers\laion.py", line 4, in import clip

azazeal04 commented 11 months ago

and when trying to use aesthetic as classifier I get this: Error occurred when executing Auto Merge Block Weighted:

'pooled_output'

File "D:\comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ambw_comfyui__init.py", line 143, in ambw self.ratios[block] = self.search(block, 0.5, 0.5, 1, (0.5, 0))[0] File "D:\comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ambw_comfyui__init__.py", line 93, in search score = self.rate_model() File "D:\comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ambw_comfyui\init__.py", line 74, in rate_model latent = nodes.common_ksampler( File "D:\comfy\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1269, in common_ksampler samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, File "D:\comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 9, in informative_sample return original_sample(args, kwargs) # This code helps interpret error messages that occur within exceptions but does not have any impact on other operations. File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\sample.py", line 100, in sample samples = sampler.sample(noise, positive_copy, negative_copy, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 711, in sample return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 612, in sample positive = encode_model_conds(model.extra_conds, positive, noise, device, "positive", latent_image=latent_image, denoise_mask=denoise_mask) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 497, in encode_model_conds out = model_function(params) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py", line 128, in extra_conds adm = self.encode_adm(**kwargs) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py", line 265, in encode_adm clip_pooled = sdxl_pooled(kwargs, self.noise_augmentor) File "D:\comfy\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py", line 229, in sdxl_pooled return args["pooled_output"]

szhublox commented 11 months ago

SDXL? I never tried XL with this but I'm pretty sure it would need a lot of additions to be compatible

Derjyn commented 10 months ago

I'm using SD1.5 models, and also get those same errors. It would seem this needs some updating... A shame, because AMBW in ComfyUI would be awesome.

Not sure why the response here was "SDXL?", as the issue (a showstopper issue at that) doesn't appear to be caused by an SDXL model.