Skip to content

Renorm CFG is being also applied to seedvr model #1534

Description

@massahud

Expected Behavior

Generate images using both Renorm CFG and SeedVR without errors.

Actual Behavior

When trying to generate images with both Renorm CFG and SeedVR this error happens: AttributeError: 'NaDiT' object has no attribute 'in_channels'

It happens on line 31 of comfy_extras\nodes_lumina2.py

            in_channels = model.model.diffusion_model.in_channels

Looking at the generated workflow, RenormCFG is also being applied to the SeedVR model.

Image

Bypassing this second RenormCFG node generated the image with no error.

Steps to Reproduce

  • set Renorm CFG to any value > 0
  • enable SeedVR and select a SeedVR model
  • Generate

Debug Logs

2026-09-09 02:45:52.912 [Debug] [ComfyUI-2/STDERR] [ERROR] !!! Exception during processing !!! 'NaDiT' object has no attribute 'in_channels'
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] [ERROR] Traceback (most recent call last):
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\execution.py", line 545, in execute
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\execution.py", line 344, in get_output_data
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\execution.py", line 318, in async_map_node_over_list
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] await process_inputs(input_dict, i)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\execution.py", line 306, in process_inputs
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] result = f(**inputs)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]SwarmUI\src\BuiltinExtensions\ComfyUIBackend\ExtraNodes\SwarmComfyCommon\SwarmKSampler.py", line 476, in run_sampling
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return self.sample(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, start_at_step, end_at_step, var_seed, var_seed_strength, sigma_max, sigma_min, rho, add_noise, return_with_leftover_noise, previews, model_negative=model_negative)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]SwarmUI\src\BuiltinExtensions\ComfyUIBackend\ExtraNodes\SwarmComfyCommon\SwarmKSampler.py", line 447, in sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] samples = sample_sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_samples,
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]SwarmUI\src\BuiltinExtensions\ComfyUIBackend\ExtraNodes\SwarmComfyCommon\SwarmKSampler.py", line 336, in sample_sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] 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, model_negative=model_negative)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]SwarmUI\src\BuiltinExtensions\ComfyUIBackend\ExtraNodes\SwarmComfyCommon\SwarmKSampler.py", line 329, in sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return samplers_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, model_negative=model_negative)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]SwarmUI\src\BuiltinExtensions\ComfyUIBackend\ExtraNodes\SwarmComfyCommon\SwarmKSampler.py", line 304, in samplers_sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1335, in sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\patcher_extension.py", line 113, in execute
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return self.original(*args, **kwargs)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1262, in outer_sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1237, in inner_sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\patcher_extension.py", line 113, in execute
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return self.original(*args, **kwargs)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1005, in sample
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\python_env\Lib\site-packages\torch\utils_contextlib.py", line 158, in no_grad
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return func(*args, **kwargs)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\k_diffusion\sampling.py", line 205, in sample_euler
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] denoised = model(x, sigma_hat * s_in, **extra_args)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 640, in call
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1208, in call
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return self.outer_predict_noise(*args, **kwargs)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1215, in outer_predict_noise
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ).execute(x, timestep, model_options, seed)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\patcher_extension.py", line 113, in execute
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return self.original(*args, **kwargs)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 1218, in predict_noise
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] 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)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 627, in sampling_function
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] return cfg_function(model, out[0], out[1], cond_scale, x, timestep, model_options=model_options, cond=cond, uncond=uncond
)
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy\samplers.py", line 596, in cfg_function
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] cfg_result = x - model_options"sampler_cfg_function"
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\comfy_extras\nodes_lumina2.py", line 31, in renorm_cfg_func
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] in_channels = model.model.diffusion_model.in_channels
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] File "[REDACTED]ComfyUI\python_env\Lib\site-packages\torch\nn\modules\module.py", line 1976, in getattr
2026-09-09 02:45:52.964 [Debug] [ComfyUI-2/STDERR] raise AttributeError(
2026-09-09 02:45:52.965 [Warning] [ComfyUI-2/STDERR] AttributeError: 'NaDiT' object has no attribute 'in_channels'

Other

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions