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

* shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576 #106

Open
xiao-ning-ning opened this issue Sep 30, 2024 · 3 comments
Open

Comments

@xiao-ning-ning
Copy link

ComfyUI Error Report

Error Details

  • Node Type: UltimateSDUpscale
  • Exception Type: RuntimeError
  • Exception Message: shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576

Stack Trace

  File "C:\ComfyUI-aki-9.26\execution.py", line 323, 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 "C:\ComfyUI-aki-9.26\execution.py", line 198, 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 "C:\ComfyUI-aki-9.26\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\ComfyUI-aki-9.26\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 565, in run
    upscaler.process()

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 138, in process
    self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 245, in start
    return self.linear_process(p, image, rows, cols)

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 180, in linear_process
    processed = processing.process_images(p)

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 173, in process_images
    samples = sample(p.model, p.seed, p.steps, p.cfg, p.sampler_name, p.scheduler, positive_cropped,

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 109, in sample
    (samples,) = common_ksampler(model, seed, steps, cfg, sampler_name,

  File "C:\ComfyUI-aki-9.26\nodes.py", line 1401, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
    raise e

  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
    return orig_comfy_sample(model, *args, **kwargs)

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 117, in uncond_multiplier_check_cn_sample
    return orig_comfy_sample(model, *args, **kwargs)

  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 104, in KSampler_sample
    return orig_fn(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 122, in sample
    return orig_fn(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 729, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 716, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 695, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 87, in KSAMPLER_sample
    return orig_fn(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 682, in __call__
    return self.predict_noise(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 162, in sampling_function
    out = orig_fn(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)

  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 202, in calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond))

  File "C:\ComfyUI-aki-9.26\comfy\controlnet.py", line 258, in 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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 210, in forward
    hint = self._pack_latents(

  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 113, in _pack_latents
    latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)

System Information

  • ComfyUI Version: v0.2.2-77-g037c315
  • Arguments: C:\ComfyUI-aki-9.26\main.py --port 8888 --auto-launch --preview-method auto --disable-smart-memory --disable-cuda-malloc
  • OS: nt
  • Python Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
  • Embedded Python: false
  • PyTorch Version: 2.3.0+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 25756696576
    • VRAM Free: 10013792740
    • Torch VRAM Total: 14260633600
    • Torch VRAM Free: 272521700

Logs

2024-09-30 10:05:24,516 - root - INFO - Total VRAM 24564 MB, total RAM 130842 MB
2024-09-30 10:05:24,516 - root - INFO - pytorch version: 2.3.0+cu121
2024-09-30 10:05:25,811 - root - INFO - xformers version: 0.0.26.post1
2024-09-30 10:05:25,812 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-30 10:05:25,812 - root - INFO - Disabling smart memory management
2024-09-30 10:05:25,812 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2024-09-30 10:05:25,972 - root - INFO - Using xformers cross attention
2024-09-30 10:05:26,539 - root - INFO - [Prompt Server] web root: C:\ComfyUI-aki-9.26\web
2024-09-30 10:05:32,365 - root - INFO - Total VRAM 24564 MB, total RAM 130842 MB
2024-09-30 10:05:32,366 - root - INFO - pytorch version: 2.3.0+cu121
2024-09-30 10:05:32,366 - root - INFO - xformers version: 0.0.26.post1
2024-09-30 10:05:32,366 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-30 10:05:32,366 - root - INFO - Disabling smart memory management
2024-09-30 10:05:32,366 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2024-09-30 10:05:37,366 - OpenGL.acceleratesupport - INFO - No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2024-09-30 10:05:44,837 - root - INFO - 
Import times for custom nodes:
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\AIGODLIKE-COMFYUI-TRANSLATION
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\websocket_image_save.py
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\comfyui-upscale-by-model
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-WD14-Tagger
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_Noise
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\comfyui_controlnet_aux
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_IPAdapter_plus
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\cg-noisetools
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_densediffusion
2024-09-30 10:05:44,837 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-post-processing-nodes
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\comfy-image-saver
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_omost
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Custom-Scripts
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_essentials
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-GGUF
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\rgthree-comfy
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-GlifNodes
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_MiniCPM-V-2_6-int4
2024-09-30 10:05:44,838 - root - INFO -    0.0 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes
2024-09-30 10:05:44,838 - root - INFO -    0.1 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Inspire-Pack
2024-09-30 10:05:44,838 - root - INFO -    0.3 seconds: C:\ComfyUI-aki-9.26\custom_nodes\Fooocus_Nodes
2024-09-30 10:05:44,838 - root - INFO -    0.4 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Manager
2024-09-30 10:05:44,838 - root - INFO -    0.8 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_LayerStyle
2024-09-30 10:05:44,838 - root - INFO -    0.8 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-KJNodes
2024-09-30 10:05:44,838 - root - INFO -    0.8 seconds: C:\ComfyUI-aki-9.26\custom_nodes\comfyui-reactor-node
2024-09-30 10:05:44,838 - root - INFO -    1.2 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_Fill-Nodes
2024-09-30 10:05:44,838 - root - INFO -    1.3 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Easy-Use
2024-09-30 10:05:44,838 - root - INFO -    2.7 seconds: C:\ComfyUI-aki-9.26\custom_nodes\comfyui-art-venture
2024-09-30 10:05:44,838 - root - INFO -    3.6 seconds: C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
2024-09-30 10:05:44,838 - root - INFO -    5.2 seconds: C:\ComfyUI-aki-9.26\custom_nodes\was-node-suite-comfyui
2024-09-30 10:05:44,838 - root - INFO - 
2024-09-30 10:05:44,848 - root - INFO - Starting server

2024-09-30 10:05:44,848 - root - INFO - To see the GUI go to: http://127.0.0.1:8888
2024-09-30 10:08:58,874 - root - INFO - got prompt
2024-09-30 10:08:58,979 - root - WARNING - Warning torch.load doesn't support weights_only on this pytorch version, loading unsafely.
2024-09-30 10:08:59,224 - root - INFO - Using xformers attention in VAE
2024-09-30 10:08:59,225 - root - INFO - Using xformers attention in VAE
2024-09-30 10:09:04,085 - transformers_modules.MiniCPM-V-2_6-int4.configuration_minicpm - INFO - vision_config is None, using default vision config
2024-09-30 10:09:21,300 - root - INFO - Requested to load FluxClipModel_
2024-09-30 10:09:21,300 - root - INFO - Loading 1 new model
2024-09-30 10:09:23,186 - root - INFO - loaded completely 0.0 2237.80810546875 True
2024-09-30 10:09:23,676 - root - INFO - model weight dtype torch.bfloat16, manual cast: None
2024-09-30 10:09:23,676 - root - INFO - model_type FLUX
2024-09-30 10:13:24,049 - root - INFO - Prompt executed in 265.16 seconds
2024-09-30 10:16:40,845 - root - INFO - got prompt
2024-09-30 10:16:52,791 - transformers_modules.MiniCPM-V-2_6-int4.configuration_minicpm - INFO - vision_config is None, using default vision config
2024-09-30 10:17:00,252 - root - INFO - Requested to load FluxClipModel_
2024-09-30 10:17:00,253 - root - INFO - Loading 1 new model
2024-09-30 10:17:00,747 - root - INFO - loaded completely 0.0 2237.80810546875 True
2024-09-30 10:24:00,638 - root - ERROR - !!! Exception during processing !!! shape '[1, 16, 63, 2, 63, 2]' is invalid for input of size 258064
2024-09-30 10:24:00,698 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI-aki-9.26\execution.py", line 323, 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 "C:\ComfyUI-aki-9.26\execution.py", line 198, 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 "C:\ComfyUI-aki-9.26\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI-aki-9.26\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 565, in run
    upscaler.process()
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 145, in process
    self.image = self.seams_fix.start(self.p, self.image, self.rows, self.cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 412, in start
    return self.half_tile_process(p, image, rows, cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 290, in half_tile_process
    processed = processing.process_images(p)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 173, in process_images
    samples = sample(p.model, p.seed, p.steps, p.cfg, p.sampler_name, p.scheduler, positive_cropped,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 109, in sample
    (samples,) = common_ksampler(model, seed, steps, cfg, sampler_name,
  File "C:\ComfyUI-aki-9.26\nodes.py", line 1401, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
    raise e
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 117, in uncond_multiplier_check_cn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 104, in KSampler_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 122, in sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 729, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 716, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 695, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 87, in KSAMPLER_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 682, in __call__
    return self.predict_noise(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 162, in sampling_function
    out = orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 202, in calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond))
  File "C:\ComfyUI-aki-9.26\comfy\controlnet.py", line 258, in 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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 210, in forward
    hint = self._pack_latents(
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 113, in _pack_latents
    latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
RuntimeError: shape '[1, 16, 63, 2, 63, 2]' is invalid for input of size 258064

2024-09-30 10:24:05,396 - root - INFO - Prompt executed in 444.55 seconds
2024-09-30 10:25:02,665 - root - INFO - got prompt
2024-09-30 10:25:02,855 - transformers_modules.MiniCPM-V-2_6-int4.configuration_minicpm - INFO - vision_config is None, using default vision config
2024-09-30 10:25:09,466 - root - INFO - Requested to load FluxClipModel_
2024-09-30 10:25:09,466 - root - INFO - Loading 1 new model
2024-09-30 10:25:09,974 - root - INFO - loaded completely 0.0 2237.80810546875 True
2024-09-30 10:25:22,015 - root - ERROR - !!! Exception during processing !!! shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576
2024-09-30 10:25:22,017 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI-aki-9.26\execution.py", line 323, 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 "C:\ComfyUI-aki-9.26\execution.py", line 198, 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 "C:\ComfyUI-aki-9.26\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI-aki-9.26\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 565, in run
    upscaler.process()
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 138, in process
    self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 245, in start
    return self.linear_process(p, image, rows, cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 180, in linear_process
    processed = processing.process_images(p)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 173, in process_images
    samples = sample(p.model, p.seed, p.steps, p.cfg, p.sampler_name, p.scheduler, positive_cropped,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 109, in sample
    (samples,) = common_ksampler(model, seed, steps, cfg, sampler_name,
  File "C:\ComfyUI-aki-9.26\nodes.py", line 1401, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
    raise e
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 117, in uncond_multiplier_check_cn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 104, in KSampler_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 122, in sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 729, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 716, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 695, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 87, in KSAMPLER_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 682, in __call__
    return self.predict_noise(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 162, in sampling_function
    out = orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 202, in calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond))
  File "C:\ComfyUI-aki-9.26\comfy\controlnet.py", line 258, in 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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 210, in forward
    hint = self._pack_latents(
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 113, in _pack_latents
    latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
RuntimeError: shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576

2024-09-30 10:25:27,234 - root - INFO - Prompt executed in 24.56 seconds
2024-09-30 10:27:00,371 - root - INFO - got prompt
2024-09-30 10:27:12,704 - root - ERROR - !!! Exception during processing !!! shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576
2024-09-30 10:27:12,705 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI-aki-9.26\execution.py", line 323, 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 "C:\ComfyUI-aki-9.26\execution.py", line 198, 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 "C:\ComfyUI-aki-9.26\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI-aki-9.26\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 565, in run
    upscaler.process()
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 138, in process
    self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 245, in start
    return self.linear_process(p, image, rows, cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 180, in linear_process
    processed = processing.process_images(p)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 173, in process_images
    samples = sample(p.model, p.seed, p.steps, p.cfg, p.sampler_name, p.scheduler, positive_cropped,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 109, in sample
    (samples,) = common_ksampler(model, seed, steps, cfg, sampler_name,
  File "C:\ComfyUI-aki-9.26\nodes.py", line 1401, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
    raise e
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 117, in uncond_multiplier_check_cn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 104, in KSampler_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 122, in sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 729, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 716, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 695, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 87, in KSAMPLER_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 682, in __call__
    return self.predict_noise(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 162, in sampling_function
    out = orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 202, in calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond))
  File "C:\ComfyUI-aki-9.26\comfy\controlnet.py", line 258, in 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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 210, in forward
    hint = self._pack_latents(
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 113, in _pack_latents
    latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
RuntimeError: shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576

2024-09-30 10:27:16,335 - root - INFO - Prompt executed in 15.96 seconds
2024-09-30 10:28:11,372 - root - INFO - got prompt
2024-09-30 10:28:22,701 - root - ERROR - !!! Exception during processing !!! shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576
2024-09-30 10:28:22,702 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI-aki-9.26\execution.py", line 323, 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 "C:\ComfyUI-aki-9.26\execution.py", line 198, 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 "C:\ComfyUI-aki-9.26\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI-aki-9.26\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 565, in run
    upscaler.process()
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 138, in process
    self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 245, in start
    return self.linear_process(p, image, rows, cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 180, in linear_process
    processed = processing.process_images(p)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 173, in process_images
    samples = sample(p.model, p.seed, p.steps, p.cfg, p.sampler_name, p.scheduler, positive_cropped,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 109, in sample
    (samples,) = common_ksampler(model, seed, steps, cfg, sampler_name,
  File "C:\ComfyUI-aki-9.26\nodes.py", line 1401, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
    raise e
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 117, in uncond_multiplier_check_cn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 104, in KSampler_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 122, in sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 729, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 716, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 695, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 87, in KSAMPLER_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 682, in __call__
    return self.predict_noise(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 162, in sampling_function
    out = orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 202, in calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond))
  File "C:\ComfyUI-aki-9.26\comfy\controlnet.py", line 258, in 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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 210, in forward
    hint = self._pack_latents(
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 113, in _pack_latents
    latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
RuntimeError: shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576

2024-09-30 10:28:26,977 - root - INFO - Prompt executed in 15.60 seconds
2024-09-30 10:30:33,194 - root - INFO - got prompt
2024-09-30 10:30:44,648 - root - ERROR - !!! Exception during processing !!! shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576
2024-09-30 10:30:44,649 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI-aki-9.26\execution.py", line 323, 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 "C:\ComfyUI-aki-9.26\execution.py", line 198, 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 "C:\ComfyUI-aki-9.26\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI-aki-9.26\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 565, in run
    upscaler.process()
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 138, in process
    self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 245, in start
    return self.linear_process(p, image, rows, cols)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\repositories\ultimate_sd_upscale\scripts\ultimate-upscale.py", line 180, in linear_process
    processed = processing.process_images(p)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 173, in process_images
    samples = sample(p.model, p.seed, p.steps, p.cfg, p.sampler_name, p.scheduler, positive_cropped,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_UltimateSDUpscale\modules\processing.py", line 109, in sample
    (samples,) = common_ksampler(model, seed, steps, cfg, sampler_name,
  File "C:\ComfyUI-aki-9.26\nodes.py", line 1401, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
    raise e
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 116, in acn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 117, in uncond_multiplier_check_cn_sample
    return orig_comfy_sample(model, *args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 104, in KSampler_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 122, in sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 729, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 716, in sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 695, in inner_sample
    samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 87, in KSAMPLER_sample
    return orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\k_diffusion\sampling.py", line 155, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 299, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 682, in __call__
    return self.predict_noise(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\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 "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 162, in sampling_function
    out = orig_fn(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 279, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\ComfyUI-aki-9.26\comfy\samplers.py", line 202, in calc_cond_batch
    c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond))
  File "C:\ComfyUI-aki-9.26\comfy\controlnet.py", line 258, in 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 "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 210, in forward
    hint = self._pack_latents(
  File "C:\ComfyUI-aki-9.26\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 113, in _pack_latents
    latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
RuntimeError: shape '[1, 16, 65, 2, 65, 2]' is invalid for input of size 274576
@xiao-ning-ning
Copy link
Author

I encountered an error when using the tile type of InstantXFLUX.1-dev-Controllenet-Union.safetensors. How can I fix it?

@ssitu
Copy link
Owner

ssitu commented Oct 3, 2024

It might be something to do with the controlnet for flux. I'm not too familiar with the model, so hopefully someone else can give some insight. Does flux by itself work?

@ttxxbb
Copy link

ttxxbb commented Oct 8, 2024

Same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants