-
Notifications
You must be signed in to change notification settings - Fork 76
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
TypeError: DoubleStreamBlock.forward() got an unexpected keyword argument 'attn_mask' #160
Comments
I am also getting the same issue.
|
Same problem! Recently updated Comfy, maybe it is connected with it? |
Following, same. |
same |
1 similar comment
same |
same here |
exactly the same |
A reset to ComfyUI v.3.0.7 with "git checkout v0.3.7" inside the lower comfyui folder and we can continue using x-flux. Thanks to the guys who posted the solution in a ComfyUI-PuLID-Flux-Enhanced issue thread. Hope they will fix it soon! |
same |
@dxdpxl Thanks Man for Share |
I don't know about your question, maybe this future is only available in the latest version of comfyui... but to get you to downgrade comyfui, do the following: |
Actually I updated ComfyUI version to the latest: Loading: ComfyUI-Manager (V2.55.4)ComfyUI Version: v0.3.10-35-g916d1e1 | Released on '2025-01-06'But I can't find the lower comfyui folder, you can see that above. |
You are already in the right folder "E:\ComfyUI\ComfyUI" Sorry for the confusion, mine is only lowercase, I don't know why, but I will correct my advice. |
I always execute CMD that way. But E:\ComfyUI_Portable\ComfyUI>git checkout v0.3.7 E:\ComfyUI_Portable\ComfyUI> Maybe I could download V0.3.7 from ComfyUI Release https://github.com/comfyanonymous/ComfyUI/releases and put it another path, then mklink and share the models etc. resources from the E:\ComfyUI_Portable one. Hope the coder fixes the bug in the future. |
Did you edited/changed anything inside the folder_paths.py? Maybe try to delete (backup!) the problematic file... |
any good solution yet? |
I did Update ComplyUI and it was solved. |
No it's not solved! It happens with every version above 0.3.7! I update daily to test it. Seems like this Git is dead and won't get any updates... |
Sorry so much I know this is GitHub no Twitter but....... Generally, it's virtually impossible to be productive with UncomfyUI. As an artist, I understand that programs like HoudiniFX, Maya, Nuke, and Flame are complex, but this UncomfyUI nightmare makes no sense. There are too many technical hurdles to overcome just to create a single image; something is always broken. Most artists rely on a tech-savvy person to set up the workflow. No matter what you do with cfgs, Denoise, IPAdapter, ControlNet, or how well you think you understand it, you'll spend countless hours and days trying to achieve anything. It's completely illogical. |
Another fighter has given up :') |
0%| | 0/20 [00:11<?, ?it/s]
!!! Exception during processing !!! DoubleStreamBlock.forward() got an unexpected keyword argument 'attn_mask'
Traceback (most recent call last):
File "E:\ComfyUI_Portable\ComfyUI\execution.py", line 328, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, p
re_execute_cb=pre_execute_cb)
File "E:\ComfyUI_Portable\ComfyUI\execution.py", line 203, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=exec
ution_block_cb, pre_execute_cb=pre_execute_cb)
File "E:\ComfyUI_Portable\ComfyUI\execution.py", line 174, in map_node_over_list
process_inputs(input_dict, i)
File "E:\ComfyUI_Portable\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "E:\ComfyUI_Portable\ComfyUI\nodes.py", line 1503, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=d
enoise)
File "E:\ComfyUI_Portable\ComfyUI\nodes.py", line 1470, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
File "E:\ComfyUI_Portable\ComfyUI\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, disabl
e_pbar=disable_pbar, seed=seed)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 1013, in sample
return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_i
mage=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 911, in sample
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 897, in sample
output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
File "E:\ComfyUI_Portable\ComfyUI\comfy\patcher_extension.py", line 110, in execute
return self.original(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 866, in outer_sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 850, in inner_sample
samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
File "E:\ComfyUI_Portable\ComfyUI\comfy\patcher_extension.py", line 110, in execute
return self.original(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 707, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_
pbar, **self.extra_options)
File "E:\ComfyUI_Portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\k_diffusion\sampling.py", line 155, in sample_euler
denoised = model(x, sigma_hat * s_in, **extra_args)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 379, in call
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 832, in call
return self.predict_noise(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 835, 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 "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 359, in sampling_function
out = calc_cond_batch(model, conds, x, timestep, model_options)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 195, in calc_cond_batch
return executor.execute(model, conds, x_in, timestep, model_options)
File "E:\ComfyUI_Portable\ComfyUI\comfy\patcher_extension.py", line 110, in execute
return self.original(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\samplers.py", line 308, in calc_cond_batch
output = model.apply_model(input_x, timestep, **c).chunk(batch_chunks)
File "E:\ComfyUI_Portable\ComfyUI\comfy\model_base.py", line 129, in apply_model
return comfy.patcher_extension.WrapperExecutor.new_class_executor(
File "E:\ComfyUI_Portable\ComfyUI\comfy\patcher_extension.py", line 110, in execute
return self.original(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\model_base.py", line 158, in _apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options
, **extra_conds).float()
File "E:\ComfyUI_Portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_im
pl
return self._call_impl(*args, **kwargs)
File "E:\ComfyUI_Portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ComfyUI_Portable\ComfyUI\comfy\ldm\flux\model.py", line 204, in forward
out = self.forward_orig(img, img_ids, context, txt_ids, timestep, y, guidance, control, transformer_options, attn_ma
sk=kwargs.get("attention_mask", None))
File "E:\ComfyUI_Portable\ComfyUI\comfy\ldm\flux\model.py", line 143, in forward_orig
img, txt = block(img=img,
File "E:\ComfyUI_Portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_im
pl
return self._call_impl(*args, **kwargs)
File "E:\ComfyUI_Portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
TypeError: DoubleStreamBlock.forward() got an unexpected keyword argument 'attn_mask'
The text was updated successfully, but these errors were encountered: