Closed
Description
When I put this image into the workflow and run it, a runtime error occurred.
The error description is as follows:
Could you please help me solve the problem? thank you very much!
ComfyUI Error Report
Error Details
- Node ID: 35
- Node Type: LoadInvSRModels
- Exception Type: RecursionError
- Exception Message: maximum recursion depth exceeded while getting the str of an object
Stack Trace
File "/app/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 "/app/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 "/app/ComfyUI/execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "/app/ComfyUI/execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/custom_nodes/ComfyUI_InvSR/node.py", line 94, in loadmodel
base_sampler = BaseSampler(configs)
^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 42, in __init__
self.build_model()
File "/app/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 90, in build_model
sd_pipe.vae._set_gradient_checkpointing(sd_pipe.vae.encoder, True)
File "/app/venv/lib64/python3.11/site-packages/diffusers/models/modeling_utils.py", line 1718, in _set_gradient_checkpointing
logger.debug(f"Setting `gradient_checkpointing={enable}` for '{name}'")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
[Previous line repeated 319 more times]
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in __repr__
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in <listcomp>
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in __repr__
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in <listcomp>
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2937, in __repr__
extra_repr = self.extra_repr()
^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/normalization.py", line 316, in extra_repr
return "{num_groups}, {num_channels}, eps={eps}, " "affine={affine}".format(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
System Information
- ComfyUI Version: 0.3.18
- Arguments: main.py --listen 0.0.0.0 --port 8188
- OS: posix
- Python Version: 3.11.9 (main, Sep 11 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)]
- Embedded Python: false
- PyTorch Version: 2.5.1+cu124
Devices
- Name: cuda:0 NVIDIA GeForce RTX 4080 SUPER : cudaMallocAsync
- Type: cuda
- VRAM Total: 16852713472
- VRAM Free: 14686217022
- Torch VRAM Total: 1811939328
- Torch VRAM Free: 45998910
Logs
2025-04-16T11:43:19.512090 - You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
2025-04-16T11:43:19.512554 - You have disabled the safety checker for <class 'ComfyUI_InvSR.comfyui_invsr_trimmed.pipeline_stable_diffusion_inversion_sr.StableDiffusionInvEnhancePipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
2025-04-16T11:43:20.265975 - Activating gradient checkpoing for vae...2025-04-16T11:43:20.265995 -
2025-04-16T11:43:20.328334 - !!! Exception during processing !!! maximum recursion depth exceeded while getting the str of an object
2025-04-16T11:43:20.331939 - Traceback (most recent call last):
File "/app/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 "/app/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 "/app/ComfyUI/execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "/app/ComfyUI/execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/custom_nodes/ComfyUI_InvSR/node.py", line 94, in loadmodel
base_sampler = BaseSampler(configs)
^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 42, in __init__
self.build_model()
File "/app/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 90, in build_model
sd_pipe.vae._set_gradient_checkpointing(sd_pipe.vae.encoder, True)
File "/app/venv/lib64/python3.11/site-packages/diffusers/models/modeling_utils.py", line 1718, in _set_gradient_checkpointing
logger.debug(f"Setting `gradient_checkpointing={enable}` for '{name}'")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
[Previous line repeated 319 more times]
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in __repr__
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in <listcomp>
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in __repr__
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/container.py", line 369, in <listcomp>
list_of_reprs = [repr(item) for item in self]
^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2943, in __repr__
mod_str = repr(module)
^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/module.py", line 2937, in __repr__
extra_repr = self.extra_repr()
^^^^^^^^^^^^^^^^^
File "/app/venv/lib64/python3.11/site-packages/torch/nn/modules/normalization.py", line 316, in extra_repr
return "{num_groups}, {num_channels}, eps={eps}, " "affine={affine}".format(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded while getting the str of an object
Metadata
Metadata
Assignees
Labels
No labels