Skip to content
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

ControlNetFlux.forward() missing 1 required positional argument: 'y' #6411

Open
soliderwang opened this issue Jan 9, 2025 · 1 comment
Open
Labels
Potential Bug User is reporting a bug. This should be tested.

Comments

@soliderwang
Copy link

Expected Behavior

error

Actual Behavior

this is error

Steps to Reproduce

model error

Debug Logs

KSampler
ControlNetFlux.forward() missing 1 required positional argument: 'y'


# ComfyUI Error Report
## Error Details
- **Node ID:** 2
- **Node Type:** KSampler
- **Exception Type:** TypeError
- **Exception Message:** ControlNetFlux.forward() missing 1 required positional argument: 'y'
## Stack Trace

  File "/Users/ke/comflowy/ComfyUI/execution.py", line 327, 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 "/Users/ke/comflowy/ComfyUI/execution.py", line 202, 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 "/Users/ke/comflowy/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/ke/comflowy/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "/Users/ke/comflowy/ComfyUI/nodes.py", line 1533, in sample
    return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)

  File "/Users/ke/comflowy/ComfyUI/nodes.py", line 1500, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,

  File "/Users/ke/comflowy/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 "/Users/ke/comflowy/ComfyUI/comfy/sample.py", line 45, 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 "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 1031, 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 "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 921, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 907, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)

  File "/Users/ke/comflowy/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 876, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 860, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)

  File "/Users/ke/comflowy/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 715, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)

  File "/Users/ke/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)

  File "/Users/ke/comflowy/ComfyUI/comfy/k_diffusion/sampling.py", line 700, in sample_dpmpp_sde
    denoised = model(x, sigmas[i] * s_in, **extra_args)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 380, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 840, in __call__
    return self.predict_noise(*args, **kwargs)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 843, 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 "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 360, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 196, in calc_cond_batch
    return executor.execute(model, conds, x_in, timestep, model_options)

  File "/Users/ke/comflowy/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)

  File "/Users/ke/comflowy/ComfyUI/comfy/samplers.py", line 304, in _calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond), transformer_options)

  File "/Users/ke/comflowy/ComfyUI/custom_nodes/comfyui-advanced-controlnet/adv_control/utils.py", line 688, in get_control_inject
    return self.get_control_advanced(x_noisy, t, cond, batched_number, transformer_options)

  File "/Users/ke/comflowy/ComfyUI/custom_nodes/comfyui-advanced-controlnet/adv_control/control.py", line 46, in get_control_advanced
    return self.sliding_get_control(x_noisy, t, cond, batched_number, transformer_options)

  File "/Users/ke/comflowy/ComfyUI/custom_nodes/comfyui-advanced-controlnet/adv_control/control.py", line 51, in sliding_get_control
    control_prev = self.previous_controlnet.get_control(x_noisy, t, cond, batched_number, transformer_options)

  File "/Users/ke/comflowy/ComfyUI/custom_nodes/comfyui-advanced-controlnet/adv_control/utils.py", line 688, in get_control_inject
    return self.get_control_advanced(x_noisy, t, cond, batched_number, transformer_options)

  File "/Users/ke/comflowy/ComfyUI/custom_nodes/comfyui-advanced-controlnet/adv_control/control.py", line 46, in get_control_advanced
    return self.sliding_get_control(x_noisy, t, cond, batched_number, transformer_options)

  File "/Users/ke/comflowy/ComfyUI/custom_nodes/comfyui-advanced-controlnet/adv_control/control.py", line 117, in sliding_get_control
    control = self.control_model(x=x_noisy.to(dtype), hint=self.cond_hint, timesteps=timestep.to(dtype), context=context.to(dtype), **extra)

  File "/Users/ke/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)

  File "/Users/ke/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)

System Information

  • ComfyUI Version: v0.3.10-41-g2307ff67
  • Arguments: main.py --enable-cors-header
  • OS: posix
  • Python Version: 3.10.8 (main, Nov 24 2022, 08:08:27) [Clang 14.0.6 ]
  • Embedded Python: false
  • PyTorch Version: 2.5.1

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 34359738368
    • VRAM Free: 14465073152
    • Torch VRAM Total: 34359738368
    • Torch VRAM Free: 14465073152

Logs

2025-01-09T16:33:43.131628 - [ERROR] An error occurred while retrieving information for the 'controlaux_normal_bae' node.
2025-01-09T16:33:43.131844 - Traceback (most recent call last):
  File "/Users/ke/comflowy/ComfyUI/server.py", line 581, in get_object_info
    out[x] = node_info(x)
  File "/Users/ke/comflowy/ComfyUI/server.py", line 549, in node_info
    info['input_order'] = {key: list(value.keys()) for (key, value) in obj_class.INPUT_TYPES().items()}
  File "/Users/ke/comflowy/ComfyUI/server.py", line 549, in <dictcomp>
    info['input_order'] = {key: list(value.keys()) for (key, value) in obj_class.INPUT_TYPES().items()}
AttributeError: 'str' object has no attribute 'keys'

Other

No response

@soliderwang soliderwang added the Potential Bug User is reporting a bug. This should be tested. label Jan 9, 2025
@ltdrdata
Copy link
Collaborator

ltdrdata commented Jan 9, 2025

Make sure both ComfyUI and comfyui-advanced-controlnet are up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug User is reporting a bug. This should be tested.
Projects
None yet
Development

No branches or pull requests

2 participants