cubiq / ComfyUI_IPAdapter_plus

GNU General Public License v3.0
3.17k stars 238 forks source link

IPAdapter no longer compatible with Kohya Hiresfix #482

Open comportal opened 2 months ago

comportal commented 2 months ago

Hi! On the old WF, i used IPAdapter and HiresFIX in the model line. It was working perfectly and caused no errors. After updating the IPAdapter, both nodes are working normally separately. But when I run them together, i get an error message:

### An error occurred while executing KSampler:

'transformer_index'

File "E:\AI-Software\ComfyUI-work\ComfyUI\execution.py ", line 151, in recursion_performance
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\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 "E:\AI-Software\ComfyUI-work\ComfyUI\execution.py ", line 74, in
the results of map_node_over_list.add(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\nodes.py ", line 1344, in the example
returns the value of common_ksampler(model, initial value, steps, cfg, sampler_name, scheduler, positive, negative, latent image, noise=denoise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\nodes.py ", line 1314, in common_ksampler
samples = comfortable.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, hidden image,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The file "E:\AI-Software\ComfyUI-work\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 to interpret error messages that occur in exceptions, but has no effect on other operations.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The file "E:\AI-Software\ComfyUI-work\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py" , line 278, in motion_sample
returns orig_comfy_sample(model, noise, *arguments, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\comfy\sample.py ", line 37, in the example
samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=hidden image, start_step=initial step, last_step= last step, force_full_denoise= forced noise, denoise_mask= noise mask, sigmas = sigma, callback= callback, disable_pbar= switchable panel, seed=initial)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\comfy\samplers.py ", line 755, in the sample
returning the sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image= hidden image, denoise_mask= denois mask, callback =callback, disable_pbar=disable_pbar, seed=initial)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\comfy\samplers.py ", line 657, in the example
returns cfg_guider.sample(noise, hidden image, sampler, sigma, denoise_mask, callback, disable_pbar, initial value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\comfy\samplers.py ", line 644, in
the output example = self.inner_sample(noise, hidden image, device, sampler, sigma, denoise_mask, callback, disable_pbar, initial value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Software\ComfyUI-work\ComfyUI\comfy\samplers.py ", line 623, in the file
inner_sample samples = sampler.sample(self, sigma, extra_args, callback, noise, hidden image, denoise_mask, disable_pbar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^