Comments (13)
Probably the Lora-Problem: #4500
from comfyui.
Try disabling this custom node for now: ComfyUI-Advanced-ControlNet
from comfyui.
Try disabling this custom node for now: ComfyUI-Advanced-ControlNet现在尝试禁用此自定义节点:ComfyUI-Advanced-ControlNet
I tried it, but it doesn't work. If the updated version is returned to the 19th, it will be normal.
from comfyui.
I got this error when matching both the 'kwaikolorswrapper' node and the 'ipadapter_plus' node
Error occurred when executing KSampler (Efficient):
ModelPatcher.calculate_weight() got an unexpected keyword argument 'intermediate_dtype'
File "D:\ComfyUI-aki-v1.3\execution.py", line 316, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "D:\ComfyUI-aki-v1.3\execution.py", line 191, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "D:\ComfyUI-aki-v1.3\execution.py", line 168, in map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI-aki-v1.3\execution.py", line 157, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "D:\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 732, in sample
samples, images, gifs, preview = process_latent_image(model, seed, steps, cfg, sampler_name, scheduler,
File "D:\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 550, in process_latent_image
samples = KSampler().sample(model, seed, steps, cfg, sampler_name, scheduler, positive, negative,
File "D:\ComfyUI-aki-v1.3\nodes.py", line 1429, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
File "D:\ComfyUI-aki-v1.3\nodes.py", line 1396, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
File "D:\ComfyUI-aki-v1.3\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:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py", line 420, in motion_sample
return orig_comfy_sample(model, noise, *args, **kwargs)
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
return orig_comfy_sample(model, *args, **kwargs)
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 116, in uncond_multiplier_check_cn_sample
return orig_comfy_sample(model, *args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\sample.py", line 43, in sample
samples = sampler.sample(noise, positive, negative, 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:\ComfyUI-aki-v1.3\comfy\samplers.py", line 829, 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:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BrushNet\model_patch.py", line 120, in modified_sample
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 716, in sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 695, in inner_sample
samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 600, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\k_diffusion\sampling.py", line 1068, in sample_euler_cfg_pp
denoised = model(x, sigma_hat * s_in, **extra_args)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 299, in call
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 682, in call
return self.predict_noise(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 685, in predict_noise
return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 279, in sampling_function
out = calc_cond_batch(model, conds, x, timestep, model_options)
File "D:\ComfyUI-aki-v1.3\comfy\samplers.py", line 228, in calc_cond_batch
output = model.apply_model(input_x, timestep, **c).chunk(batch_chunks)
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 68, in apply_model_uncond_cleanup_wrapper
return orig_apply_model(self, *args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\model_base.py", line 142, in apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Kolors-MZ\hook_comfyui_kolors_v2.py", line 71, in forward
result = super().forward(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\custom_nodes\FreeU_Advanced\nodes.py", line 190, in __temp__forward
h = forward_timestep_embed(self.middle_block, h, emb, context, transformer_options, time_context=time_context, num_video_frames=num_video_frames, image_only_indicator=image_only_indicator)
File "D:\ComfyUI-aki-v1.3\comfy\ldm\modules\diffusionmodules\openaimodel.py", line 44, in forward_timestep_embed
x = layer(x, context, transformer_options)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\ldm\modules\attention.py", line 694, in forward
x = block(x, context=context[i], transformer_options=transformer_options)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-layerdiffuse\lib_layerdiffusion\attention_sharing.py", line 253, in forward
return func(self, x, context, transformer_options)
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use\py\layer_diffuse\attension_sharing.py", line 253, in forward
return func(self, x, context, transformer_options)
File "D:\ComfyUI-aki-v1.3\comfy\ldm\modules\attention.py", line 621, in forward
n = self.attn2(n, context=context_attn2, value=value_attn2)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\ldm\modules\attention.py", line 467, in forward
k = self.to_k(context)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\ops.py", line 67, in forward
return self.forward_comfy_cast_weights(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\comfy\ops.py", line 62, in forward_comfy_cast_weights
weight, bias = cast_bias_weight(self, input)
File "D:\ComfyUI-aki-v1.3\comfy\ops.py", line 48, in cast_bias_weight
weight = s.weight_function(weight)
File "D:\ComfyUI-aki-v1.3\comfy\model_patcher.py", line 99, in call
return self.model_patcher.calculate_weight(self.model_patcher.patches[self.key], weight, self.key, intermediate_dtype=weight.dtype)
from comfyui.
Can confirm that there is a problem with the latest comfyui version when using a flux lora. I'm getting the same error:
Error occurred when executing SamplerCustomAdvanced:
ModelPatcher.calculate_weight() got an unexpected keyword argument 'intermediate_dtype'
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/execution.py", line 316, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/execution.py", line 191, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/execution.py", line 168, in _map_node_over_list
process_inputs(input_dict, i)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/execution.py", line 157, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy_extras/nodes_custom_sampler.py", line 612, in sample
samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 716, in sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 695, in inner_sample
samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 600, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/utils/contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/k_diffusion/sampling.py", line 144, in sample_euler
denoised = model(x, sigma_hat * s_in, **extra_args)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 299, in call
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 682, in call
return self.predict_noise(*args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 685, in predict_noise
return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 279, in sampling_function
out = calc_cond_batch(model, conds, x, timestep, model_options)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/custom_nodes/ComfyUI-TiledDiffusion/.patches.py", line 4, in calc_cond_batch
return calc_cond_batch_original_tiled_diffusion_694dbdeb(model, conds, x_in, timestep, model_options)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/samplers.py", line 228, in calc_cond_batch
output = model.apply_model(input_x, timestep, **c).chunk(batch_chunks)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/adv_control/utils.py", line 68, in apply_model_uncond_cleanup_wrapper
return orig_apply_model(self, *args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/model_base.py", line 142, in apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/ldm/flux/model.py", line 159, in forward
out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/ldm/flux/model.py", line 130, in forward_orig
img = block(img, vec=vec, pe=pe)
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/ldm/flux/layers.py", line 225, in forward
qkv, mlp = torch.split(self.linear1(x_mod), [3 * self.hidden_size, self.mlp_hidden_dim], dim=-1)
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/marvin/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/ops.py", line 67, in forward
return self.forward_comfy_cast_weights(*args, **kwargs)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/ops.py", line 62, in forward_comfy_cast_weights
weight, bias = cast_bias_weight(self, input)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/ops.py", line 48, in cast_bias_weight
weight = s.weight_function(weight)
File "/home/marvin/AI_Image/ComfyUIs/ComfyUI/comfy/model_patcher.py", line 99, in call
return self.model_patcher.calculate_weight(self.model_patcher.patches[self.key], weight, self.key, intermediate_dtype=weight.dtype)
from comfyui.
can confirm that at least commit 39f114c is working
from comfyui.
can confirm that at least commit 39f114c is working
yeah, version 20th and above will encounter this issue (with lora), now I'm at the 19th version and everything is fine
from comfyui.
Odd. I'm having this problem on one machine, but not on the other - both updated to latest..
from comfyui.
SD15 lora works well but sdxl failed, latest update.
Back to 19th commit everything is ok.
from comfyui.
i have the same situation ,some times when i restart the comfyui it works,when i change different image then come out this error...i updated my comfyui today....
from comfyui.
I deleted my venv, rebuilt it and reinstalled all dependencies, and is working again.
previously was using torch 2.3.0, is now on torch 2.4.0
from comfyui.
I have the same problem.
I get this error message after a few generations.
Should I wait for an update or revert? How to revert without having to reinstall everything?
from comfyui.
I have the same problem. I get this error message after a few generations.
Should I wait for an update or revert? How to revert without having to reinstall everything?
Downgrade numpy==1.26.4
.
As many side effects have been occurring due to numpy
being updated to the latest version(2.0), recent measures have been taken to ensure that numpy<2 is
installed when setting up dependencies.
from comfyui.
Related Issues (20)
- After clicking on the full preview of the historical generated images in the new ComfyUI interface, it is not possible to save the images by right clicking. We hope for optimization
- load flux checkpoint error HOT 3
- Blank screen on Firefox browser after update HOT 2
- Devil in the details update causes PIL error HOT 3
- Issue with loading queues (invalid workflow against zod schema) validation error HOT 2
- Custom Node Not Working Due to RETURN_NAMES Being a String HOT 1
- ComfyUi crashes when running big loras on Flux HOT 5
- Almost unusably-slow - nodes fail to cache after recent update. ComfyUI now redundantly reprocesses unchanged inputs at every queue (IPAdapter reloads its model, ControlNet reloads depth map image, etc.) HOT 7
- Q-lora
- diffusion models bnb-nf4*bnb-fp4 support HOT 5
- Absurd memory allocation issues runs fine on RTX 3060 crashes and errors out on 4090 on lower settings/similar settings (FLUX) HOT 6
- Regarding how to iterate over prompts and reference images
- spam post HOT 1
- New install, extra models paths not being used HOT 4
- [Bug]: NotImplementedError in XlabsSampler HOT 2
- Add Keybind for quick Group selected nodes HOT 1
- Floating point precision warning in brownian_interval.py
- RAM overflow in cycles (maybe problems with Execution Model Inversion) HOT 4
- Loops do not repeat execution for leaf nodes (for Execution Model Inversion) HOT 2
- I want to turn the generated workflow into a backend and service. Is there an API documentation available? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyui.