Repository Analysis

Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.

6.8 Low AI signal View on GitHub
6.8
Adjusted Score
6.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
114,941
Stars
Python
Language
471,539
Lines of Code
825
Files
2626
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 9HIGH 75MEDIUM 223LOW 2319

Pattern Findings

2626 matches across 16 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1052 hits · 1107 pts
SeverityFileLineSnippet
LOWserver.py58def _remove_sensitive_from_queue(queue: list) -> list:
LOWserver.py63async def send_socket_catch_exception(function, message):
LOWserver.py147def create_origin_only_middleware():
LOWserver.py188def create_block_external_middleware():
LOWserver.py190 async def block_external_middleware(request: web.Request, handler):
LOWcuda_malloc.py100def get_torch_version_noimport():
LOWexecution.py223async def resolve_map_node_over_list_results(results):
LOWexecution.py235async def _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, func, allow_interrupt=False, execution_bl
LOWexecution.py1295 def get_current_queue_volatile(self):
LOWfolder_paths.py154def get_system_user_directory(name: str = "system") -> str:
LOWfolder_paths.py185def get_public_user_directory(user_id: str) -> str | None:
LOWfolder_paths.py223def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> li
LOWfolder_paths.py279def exists_annotated_filepath(name) -> bool:
LOWlatent_preview.py35 def decode_latent_to_preview_image(self, preview_format, x0):
LOWnode_helpers.py25def conditioning_set_values_with_timestep_range(conditioning, values={}, start_percent=0.0, end_percent=1.0):
LOWnodes.py2288async def init_external_custom_nodes():
LOWmain.py80def handle_comfyui_manager_unavailable():
LOWmain.py138def execute_prestartup_script():
LOWmain.py252def _collect_output_absolute_paths(history_result: dict) -> list[str]:
LOWcomfy/model_sampling.py5def rescale_zero_terminal_snr_sigmas(sigmas):
LOWcomfy/context_windows.py366 def combine_context_window_results(self, x_in: torch.Tensor, sub_conds_out, sub_conds, window: IndexListContextWindo
LOWcomfy/context_windows.py396def _prepare_sampling_wrapper(executor, model, noise_shape: torch.Tensor, *args, **kwargs):
LOWcomfy/context_windows.py408def create_prepare_sampling_wrapper(model: ModelPatcher):
LOWcomfy/context_windows.py430def create_sampler_sample_wrapper(model: ModelPatcher):
LOWcomfy/context_windows.py465def create_windows_uniform_looped(num_frames: int, handler: IndexListContextHandler, model_options: dict[str]):
LOWcomfy/context_windows.py484def create_windows_uniform_standard(num_frames: int, handler: IndexListContextHandler, model_options: dict[str]):
LOWcomfy/context_windows.py532def create_windows_static_standard(num_frames: int, handler: IndexListContextHandler, model_options: dict[str]):
LOWcomfy/context_windows.py576def get_matching_context_schedule(context_schedule: str) -> ContextSchedule:
LOWcomfy/context_windows.py602def create_weights_overlap_linear(length: int, full_length: int, idxs: list[int], handler: IndexListContextHandler, **kw
LOWcomfy/memory_management.py17def read_tensor_file_slice_into(tensor, destination, stream=None, destination2=None):
LOWcomfy/memory_management.py164def set_ram_cache_release_state(callback, headroom):
LOWcomfy/model_prefetch.py7def cleanup_prefetched_modules(comfy_modules):
LOWcomfy/hooks.py350 def get_hooks_for_clip_schedule(self):
LOWcomfy/hooks.py434 def get_effective_guarantee_steps(self, max_sigma: torch.Tensor):
LOWcomfy/hooks.py591def create_transformer_options_from_hooks(model: ModelPatcher, hooks: HookGroup, transformer_options: dict[str]=None):
LOWcomfy/hooks.py609def create_hook_model_as_lora(weights_model, weights_clip, strength_model: float, strength_clip: float):
LOWcomfy/hooks.py628def get_patch_weights_from_model(model: ModelPatcher, discard_model_sampling=True):
LOWcomfy/hooks.py640def load_hook_lora_for_models(model: ModelPatcher, clip: CLIP, lora: dict[str, torch.Tensor],
LOWcomfy/hooks.py672def _combine_hooks_from_values(c_dict: dict[str, HookGroup], values: dict[str, HookGroup], cache: dict[tuple[HookGroup,
LOWcomfy/hooks.py692def conditioning_set_values_with_hooks(conditioning, values={}, append_hooks=True,
LOWcomfy/hooks.py708def set_hooks_for_conditioning(cond, hooks: HookGroup, append_hooks=True, cache: dict[tuple[HookGroup, HookGroup], HookG
LOWcomfy/hooks.py713def set_timesteps_for_conditioning(cond, timestep_range: tuple[float,float]):
LOWcomfy/hooks.py719def set_mask_for_conditioning(cond, mask: torch.Tensor, set_cond_area: str, strength: float):
LOWcomfy/hooks.py758def set_conds_props_and_combine(conds: list, new_conds: list, strength: float=1.0, set_cond_area: str="default",
LOWcomfy/hooks.py773def set_default_conds_and_combine(conds: list, new_conds: list,
LOWcomfy/controlnet.py185 def inference_memory_requirements(self, dtype):
LOWcomfy/controlnet.py489 def inference_memory_requirements(self, dtype):
LOWcomfy/controlnet.py512def controlnet_load_state_dict(control_model, sd):
LOWcomfy/controlnet.py620def load_controlnet_hunyuandit(controlnet_data, model_options={}):
LOWcomfy/controlnet.py631def load_controlnet_flux_xlabs_mistoline(sd, mistoline=False, model_options={}):
LOWcomfy/controlnet.py640def load_controlnet_flux_instantx(sd, model_options={}):
LOWcomfy/controlnet.py664def load_controlnet_qwen_instantx(sd, model_options={}):
LOWcomfy/controlnet.py731def load_controlnet_state_dict(state_dict, model=None, model_options={}):
LOWcomfy/model_patcher.py66def set_model_options_post_cfg_function(model_options, post_cfg_function, disable_cfg1_optimization=False):
LOWcomfy/model_patcher.py72def set_model_options_pre_cfg_function(model_options, pre_cfg_function, disable_cfg1_optimization=False):
LOWcomfy/model_patcher.py78def create_model_options_clone(orig_model_options: dict):
LOWcomfy/model_patcher.py81def create_hook_patches_clone(orig_hook_patches, copy_tuples=False):
LOWcomfy/model_patcher.py592 def set_model_sampler_cfg_function(self, sampler_cfg_function, disable_cfg1_optimization=False):
LOWcomfy/model_patcher.py600 def set_model_sampler_post_cfg_function(self, post_cfg_function, disable_cfg1_optimization=False):
LOWcomfy/model_patcher.py603 def set_model_sampler_pre_cfg_function(self, pre_cfg_function, disable_cfg1_optimization=False):
992 more matches not shown…
Decorative Section Separators169 hits · 442 pts
SeverityFileLineSnippet
MEDIUM.spectral.yaml12 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml14 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml23 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml25 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml47 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml49 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml69 # -----------------------------------------------------------------------
MEDIUM.spectral.yaml71 # -----------------------------------------------------------------------
MEDIUMopenapi.yaml2727 # ===========================================================================
MEDIUMopenapi.yaml2732 # ===========================================================================
MEDIUMopenapi.yaml2734 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml2736 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml81 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml83 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml159 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml161 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml236 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml238 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml356 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml358 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml467 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml469 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml576 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml578 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml701 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml703 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml820 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml822 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml896 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml898 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml958 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml960 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1099 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1101 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1168 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1170 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1464 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1466 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1589 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1591 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1644 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1646 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1698 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1700 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1724 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1726 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1855 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml1857 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml3008 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml3010 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml3363 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml3365 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml4068 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml4070 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml4652 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml4654 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml4803 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml4805 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml5092 # ---------------------------------------------------------------------------
MEDIUMopenapi.yaml5094 # ---------------------------------------------------------------------------
109 more matches not shown…
Deep Nesting362 hits · 336 pts
SeverityFileLineSnippet
LOWserver.py121
LOWserver.py204
LOWserver.py258
LOWserver.py385
LOWserver.py457
LOWserver.py503
LOWserver.py928
LOWserver.py460
LOWcuda_malloc.py53
LOWexecution.py155
LOWexecution.py235
LOWexecution.py314
LOWexecution.py343
LOWexecution.py429
LOWexecution.py824
LOWexecution.py1106
LOWexecution.py249
LOWexecution.py700
LOWexecution.py716
LOWexecution.py1310
LOWexecution.py1323
LOWlatent_preview.py78
LOWnode_helpers.py9
LOWnodes.py2192
LOWnodes.py2288
LOWnodes.py614
LOWnodes.py736
LOWnodes.py757
LOWnodes.py1651
LOWnodes.py1979
LOWmain.py138
LOWmain.py252
LOWmain.py284
LOWmain.py428
LOWcomfy/conds.py7
LOWcomfy/context_windows.py100
LOWcomfy/context_windows.py195
LOWcomfy/clip_vision.py106
LOWcomfy/memory_management.py17
LOWcomfy/hooks.py350
LOWcomfy/hooks.py505
LOWcomfy/hooks.py549
LOWcomfy/sd1_clip.py320
LOWcomfy/sd1_clip.py348
LOWcomfy/sd1_clip.py378
LOWcomfy/sd1_clip.py415
LOWcomfy/sd1_clip.py28
LOWcomfy/sd1_clip.py172
LOWcomfy/sd1_clip.py566
LOWcomfy/controlnet.py731
LOWcomfy/controlnet.py964
LOWcomfy/controlnet.py190
LOWcomfy/controlnet.py253
LOWcomfy/model_patcher.py81
LOWcomfy/model_patcher.py506
LOWcomfy/model_patcher.py718
LOWcomfy/model_patcher.py739
LOWcomfy/model_patcher.py763
LOWcomfy/model_patcher.py788
LOWcomfy/model_patcher.py835
302 more matches not shown…
Cross-File Repetition51 hits · 255 pts
SeverityFileLineSnippet
HIGHcomfy/controlnet.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/model_patcher.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/supported_models_base.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/model_base.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/utils.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/lora.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/model_management.py0this file is part of comfyui. copyright (c) 2024 comfy this program is free software: you can redistribute it and/or mod
HIGHcomfy/ops.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/ldm/cascade/controlnet.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/ldm/cascade/stage_a.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/ldm/cascade/common.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/ldm/cascade/stage_c.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/ldm/cascade/stage_b.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/ldm/cascade/stage_c_coder.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy_extras/nodes_stable_cascade.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it and
HIGHcomfy/k_diffusion/sampling.py0ancestral sampling with dpm-solver++(2s) second-order steps.
HIGHcomfy/k_diffusion/sampling.py0ancestral sampling with dpm-solver++(2s) second-order steps.
HIGHcomfy/k_diffusion/sampling.py0ancestral sampling with dpm-solver++(2s) second-order steps.
HIGHcomfy/comfy_types/node_typing.py0unique_id is the unique identifier of the node, and matches the id property of the node on the client side. it is common
HIGHcomfy/comfy_types/node_typing.py0unique_id is the unique identifier of the node, and matches the id property of the node on the client side. it is common
HIGHcomfy_api/latest/_io.py0unique_id is the unique identifier of the node, and matches the id property of the node on the client side. it is common
HIGHcomfy_api/latest/_io.py0unique_id is the unique identifier of the node, and matches the id property of the node on the client side. it is common
HIGHcomfy/comfy_types/node_typing.py0prompt is the complete prompt sent by the client to the server. see the prompt object for a full description.
HIGHcomfy_api/latest/_io.py0prompt is the complete prompt sent by the client to the server. see the prompt object for a full description.
HIGHcomfy_api/latest/_io.py0prompt is the complete prompt sent by the client to the server. see the prompt object for a full description.
HIGHcomfy/comfy_types/node_typing.py0extra_pnginfo is a dictionary that will be copied into the metadata of any .png files saved. custom nodes can store addi
HIGHcomfy_api/latest/_io.py0extra_pnginfo is a dictionary that will be copied into the metadata of any .png files saved. custom nodes can store addi
HIGHcomfy_api/latest/_io.py0extra_pnginfo is a dictionary that will be copied into the metadata of any .png files saved. custom nodes can store addi
HIGHcomfy/comfy_types/node_typing.py0dynprompt is an instance of comfy_execution.graph.dynamicprompt. it differs from prompt in that it may mutate during the
HIGHcomfy_api/latest/_io.py0dynprompt is an instance of comfy_execution.graph.dynamicprompt. it differs from prompt in that it may mutate during the
HIGHcomfy_api/latest/_io.py0dynprompt is an instance of comfy_execution.graph.dynamicprompt. it differs from prompt in that it may mutate during the
HIGHcomfy/ldm/pixart/blocks.py0embeds class labels into vector representations. also handles label dropout for classifier-free guidance.
HIGHcomfy/ldm/pixart/blocks.py0embeds class labels into vector representations. also handles label dropout for classifier-free guidance.
HIGHcomfy/ldm/pixart/blocks.py0embeds class labels into vector representations. also handles label dropout for classifier-free guidance.
HIGHcomfy/ldm/wan/model.py0wan diffusion backbone supporting both text-to-video and image-to-video.
HIGHcomfy/ldm/wan/model.py0wan diffusion backbone supporting both text-to-video and image-to-video.
HIGHcomfy/ldm/wan/model.py0wan diffusion backbone supporting both text-to-video and image-to-video.
HIGHcomfy/ldm/wan/model.py0wan diffusion backbone supporting both text-to-video and image-to-video.
HIGHcomfy/ldm/wan/model_animate.py0wan diffusion backbone supporting both text-to-video and image-to-video.
HIGHcomfy_api_nodes/nodes_kling.py0( $res := widgets.resolution; $mode := $res = "4k" ? "4k" : ($res = "720p" ? "std" : "pro"); $isv3 := $contains(widgets.
HIGHcomfy_api_nodes/nodes_kling.py0( $res := widgets.resolution; $mode := $res = "4k" ? "4k" : ($res = "720p" ? "std" : "pro"); $isv3 := $contains(widgets.
HIGHcomfy_api_nodes/nodes_kling.py0( $res := widgets.resolution; $mode := $res = "4k" ? "4k" : ($res = "720p" ? "std" : "pro"); $isv3 := $contains(widgets.
HIGHcomfy_api_nodes/nodes_wan.py0( $res := $lookup(widgets, "model.resolution"); $dur := $lookup(widgets, "model.duration"); $ppstable := { "720p": 0.14,
HIGHcomfy_api_nodes/nodes_wan.py0( $res := $lookup(widgets, "model.resolution"); $dur := $lookup(widgets, "model.duration"); $ppstable := { "720p": 0.14,
HIGHcomfy_api_nodes/nodes_wan.py0( $res := $lookup(widgets, "model.resolution"); $dur := $lookup(widgets, "model.duration"); $ppstable := { "720p": 0.14,
HIGHcomfy_extras/nodes_optimalsteps.py0performs log-linear interpolation of a given array of decreasing numbers.
HIGHcomfy_extras/nodes_gits.py0performs log-linear interpolation of a given array of decreasing numbers.
HIGHcomfy_extras/nodes_align_your_steps.py0performs log-linear interpolation of a given array of decreasing numbers.
HIGHcomfy_extras/nodes_camera_trajectory.py0copied from https://github.com/hehao13/cameractrl/blob/main/inference.py
HIGHcomfy_extras/nodes_camera_trajectory.py0copied from https://github.com/hehao13/cameractrl/blob/main/inference.py
HIGHcomfy_extras/nodes_camera_trajectory.py0copied from https://github.com/hehao13/cameractrl/blob/main/inference.py
Over-Commented Block452 hits · 248 pts
SeverityFileLineSnippet
LOWalembic.ini1# A generic, single database configuration.
LOWalembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirements
LOWalembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.
LOWalembic.ini61
LOWalembic.ini81# hooks = ruff
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt8161##9
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt8601##2015
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt8821##bo
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt91612019
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt9341##46
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt9741##king
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt9761##マ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt10141ofweek
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt10281vcd
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt11081##atic
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt11361##ack
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt11581328
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt12401##gas
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt12501sylvia
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt12941diary
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13061##mes
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13121828
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13301##anda
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13321##$
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13341##\
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13361##¼
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13381##α
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13401##χ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13421##х
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13441##ي
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13461##ᄇ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13481##ᅯ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13501##‥
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13521##ⅱ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13541##∼
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13561##⑤
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13581##┆
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13601##▇
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13621##☕
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13641##✿
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13661##〓
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13681##ァ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13701##ヨ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13721##ㄤ
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13741##专
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13761##丫
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13781##乌
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13801##买
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13821##些
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13841##亿
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13861##仙
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13881##伊
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13901##伯
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13921##佗
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13941##佶
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13961##侦
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13981##俚
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt14001##個
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt14021##倭
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt14041##偻
392 more matches not shown…
Unused Imports252 hits · 205 pts
SeverityFileLineSnippet
LOWcomfy/context_windows.py1
LOWcomfy/hooks.py1
LOWcomfy/controlnet.py18
LOWcomfy/model_patcher.py19
LOWcomfy/model_base.py78
LOWcomfy/sampler_helpers.py1
LOWcomfy/multigpu.py1
LOWcomfy/quant_ops.py8
LOWcomfy/quant_ops.py8
LOWcomfy/quant_ops.py8
LOWcomfy/quant_ops.py8
LOWcomfy/samplers.py1
LOWcomfy/model_management.py18
LOWcomfy/model_management.py138
LOWcomfy/model_management.py145
LOWcomfy/text_encoders/gpt_oss.py3
LOWcomfy/weight_adapter/__init__.py1
LOWcomfy/weight_adapter/__init__.py8
LOWcomfy/weight_adapter/__init__.py8
LOWcomfy/weight_adapter/__init__.py8
LOWcomfy/ldm/lens/model.py3
LOWapp/node_replace_manager.py1
LOWapp/subgraph_manager.py1
LOWapp/database/db.py23
LOWapp/assets/database/models.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py1
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
LOWapp/assets/database/queries/__init__.py11
192 more matches not shown…
Excessive Try-Catch Wrapping157 hits · 161 pts
SeverityFileLineSnippet
MEDIUMserver.py997def post_interrupt(request):
LOWserver.py310 except Exception as e:
LOWserver.py443 except Exception:
LOWserver.py764 except Exception:
LOWserver.py1090 except Exception as exc:
LOWserver.py1290 except Exception:
LOWexecution.py92 except Exception as e:
LOWexecution.py452 except Exception as ex:
LOWexecution.py615 except Exception as ex:
LOWexecution.py710 except Exception as e:
LOWexecution.py940 except Exception as ex:
LOWexecution.py982 except Exception as ex:
LOWexecution.py1165 except Exception as ex:
LOWnodes.py2232 except Exception as e:
LOWnodes.py2277 except Exception as e:
LOWnodes.py2283 except Exception as e:
LOWmain.py149 except Exception as e:
LOWmain.py435 except Exception as e:
MEDIUMmain.py428def setup_database():
LOWcomfy/conds.py21 except Exception:
LOWcomfy/sd1_clip.py458 except Exception:
LOWcomfy/model_patcher.py2024 except Exception as e:
LOWcomfy/model_patcher.py1224 except Exception as e:
LOWcomfy/deploy_environment.py31 except Exception as e:
LOWcomfy/ops.py909 except Exception as e:
LOWcomfy/model_detection.py516 except Exception:
LOWcomfy/utils.py142 except Exception as e:
LOWcomfy/sd.py1065 except Exception as e:
LOWcomfy/sd.py1150 except Exception as e:
LOWcomfy/multigpu.py41 except Exception as e:
LOWcomfy/multigpu.py57 except Exception as e:
LOWcomfy/samplers.py536 except Exception as e:
LOWcomfy/text_encoders/ace.py82 except Exception as e:
LOWcomfy/weight_adapter/loha.py294 except Exception as e:
LOWcomfy/weight_adapter/glora.py139 except Exception as e:
LOWcomfy/weight_adapter/lokr.py362 except Exception as e:
LOWcomfy/weight_adapter/oft.py250 except Exception as e:
LOWcomfy/weight_adapter/boft.py130 except Exception as e:
LOWcomfy/weight_adapter/lora.py284 except Exception as e:
LOWcomfy/ldm/hunyuan3d/vae.py324 except Exception:
LOWcomfy/ldm/modules/attention.py386 except Exception as e:
LOWcomfy/ldm/modules/attention.py570 except Exception as e:
LOWcomfy/ldm/modules/attention.py654 except Exception as e:
LOWcomfy/ldm/modules/attention.py729 except Exception as e:
LOWcomfy/ldm/modules/sub_quadratic_attention.py172 except Exception as e:
LOWcomfy/ldm/modules/diffusionmodules/model.py261 except Exception as e:
LOWcomfy/ldm/modules/diffusionmodules/model.py318 except Exception as e:
LOWapp/frontend_management.py55 except Exception:
LOWapp/frontend_management.py219 except Exception:
LOWapp/frontend_management.py275 except Exception as exc:
LOWapp/frontend_management.py286 except Exception as exc:
LOWapp/frontend_management.py430 except Exception as e:
MEDIUMapp/frontend_management.py232def default_frontend_path(cls) -> str:
LOWapp/user_manager.py243 except Exception as e:
LOWapp/model_manager.py144 except Exception as e:
LOWapp/database/db.py172 except Exception as e:
LOWapp/assets/scanner.py208 except Exception as e:
LOWapp/assets/scanner.py215 except Exception as e:
LOWapp/assets/scanner.py248 except Exception as e:
LOWapp/assets/scanner.py263 except Exception as e:
97 more matches not shown…
Self-Referential Comments46 hits · 146 pts
SeverityFileLineSnippet
MEDIUMcomfyui_version.py1# This file is automatically generated by the build process when version is
MEDIUMcomfy/lora.py384 # Create a new tensor filled with zeros
MEDIUMcomfy/weight_adapter/base.py335 # Create a new tensor filled with zeros
MEDIUMcomfy/ldm/lightricks/vae/dual_conv3d.py46 # Define the size of the channels after the first convolution
MEDIUMcomfy/ldm/lightricks/vae/dual_conv3d.py197 # Create an instance of the DualConv3d class
MEDIUMcomfy/ldm/chroma_radiance/layers.py68 # Create a 2D meshgrid of coordinates.
MEDIUMcomfy/ldm/chroma_radiance/layers.py76 # Create a 1D tensor of frequency values from 0 to max_freqs-1.
MEDIUMcomfy_execution/progress.py89 # Create a new tqdm progress bar
MEDIUMtests/execution/test_async_nodes.py202 # Create an async node that will error
MEDIUMtests/execution/test_async_nodes.py142 # Create a test node with async validation
MEDIUMtests/execution/test_async_nodes.py186 # Create a node with async check_lazy_status
MEDIUMtests/execution/test_progress_isolation.py212 # Create a simple workflow
MEDIUMtests/execution/test_execution.py723 # Create a processing chain with an OUTPUT_NODE that has socket outputs
MEDIUMtests/execution/test_execution.py732 # Create the final output
MEDIUMtests/execution/test_execution.py451 # Creating the nodes in this specific order previously caused a bug
MEDIUMtests/execution/test_execution.py618 # Create a TestParallelSleep node that expands into multiple TestSleep nodes
MEDIUMtests/execution/test_execution.py784 # Create a chain of OUTPUT_NODEs
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py300 # Create the cyle
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py365 # Create a basic image generation workflow using the input model, clip and vae
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py447 # Create a graph dynamically with three TestSleep nodes
MEDIUMcomfy_api_nodes/util/request_logger.py137 # Create a local temp dir for testing if needed
MEDIUMcomfy_extras/nodes_save_3d.py287 # Create the GLB header (a 4-byte ASCII magic identifier glTF)
MEDIUMcomfy_extras/nodes_wanmove.py200 # Create a single RGBA overlay for all tracks in this frame
MEDIUMcomfy_api/v0_0_2/__init__.py31# Create a synchronous version of the API
MEDIUMcomfy_api/internal/async_to_sync.py246 # Create a sync version of this attribute
MEDIUMcomfy_api/internal/async_to_sync.py268 # Create an instance of the inner class
MEDIUMcomfy_api/internal/async_to_sync.py301 # Create a sync version of this nested class
MEDIUMcomfy_api/internal/async_to_sync.py150 # Create the coroutine within the context
MEDIUMcomfy_api/internal/async_to_sync.py210 # Create a proper class with docstrings and proper base classes
MEDIUMcomfy_api/internal/async_to_sync.py368 # Create the class
MEDIUMcomfy_api/internal/async_to_sync.py815 # Create a type tracker for this stub generation
MEDIUMcomfy_api/latest/__init__.py153# Create a synchronous version of the API
MEDIUMcomfy_api/latest/_input_impl/video_types.py484 # Create a video stream
MEDIUMcomfy_api/latest/_input_impl/video_types.py490 # Create an audio stream
MEDIUMcomfy_api/v0_0_1/__init__.py28# Create a synchronous version of the API
MEDIUM.github/workflows/update-version.yml46 f.write("# This file is automatically generated by the build process when version is\n")
MEDIUMtests-unit/assets_test/test_assets_missing_sync.py22 # Create a file directly under input/unit-tests/<case> so tags include "unit-tests"
MEDIUMtests-unit/assets_test/test_assets_missing_sync.py188 # Create a second on-disk copy under the same root but different subfolder
MEDIUMtests-unit/assets_test/test_tags_api.py50 # Create a short-lived asset under input with a unique custom tag
MEDIUMtests-unit/assets_test/test_crud.py91 # Create a second reference to the same asset via from-hash
MEDIUMtests-unit/assets_test/services/test_ingest.py122 # Create a preview asset and reference
MEDIUMtests-unit/server/utils/file_operations_test.py7 # Create a temporary directory structure
MEDIUM…s-unit/prompt_server_test/system_user_endpoint_test.py115 # Create a file in System User directory
MEDIUMtests-unit/prompt_server_test/user_manager_test.py280 # Create a directory with a space in its name and a file inside
MEDIUMtests-unit/folder_paths_test/misc_test.py9 # Create a nested folder structure
MEDIUMtests-unit/folder_paths_test/misc_test.py20 # Create the folders
Hallucination Indicators9 hits · 100 pts
SeverityFileLineSnippet
CRITICALcomfy/sd.py636 self.first_stage_model = comfy.ldm.genmo.vae.model.VideoVAE()
CRITICALcomfy/sd.py658 self.first_stage_model = comfy.ldm.lightricks.vae.causal_video_autoencoder.VideoVAE(version=version, con
CRITICALcomfy/sd.py780 self.first_stage_model = comfy.ldm.ace.vae.music_dcae_pipeline.MusicDCAE(source_sample_rate=44100)
CRITICALcomfy/sd.py811 self.first_stage_model = comfy.ldm.mmaudio.vae.autoencoder.AudioAutoencoder(mode=mode)
CRITICALcomfy/sd.py853 self.first_stage_model = comfy.ldm.lightricks.vae.audio_vae.AudioVAE(metadata=metadata)
CRITICALcomfy/cldm/mmdit.py24 self.pos_embed_input = comfy.ldm.modules.diffusionmodules.mmdit.PatchEmbed(
CRITICALcomfy/ldm/hunyuan_video/model.py224 self.img_in = comfy.ldm.modules.diffusionmodules.mmdit.PatchEmbed(None, self.patch_size, self.in_channels, self.
CRITICALtests-unit/comfy_quant/test_mixed_precision.py116 self.assertEqual(model.layer1.weight._params.scale.item(), 2.0)
CRITICALtests-unit/comfy_quant/test_mixed_precision.py117 self.assertEqual(model.layer3.weight._params.scale.item(), 1.5)
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippet
HIGHfolder_paths.py155 Get the path to a System User directory. System User directories (prefixed with '__') are only accessible via
HIGHnodes.py2171 Returns the module name based on the given module path. Examples: get_module_name("C:/Users/username/Co
HIGHcomfy/ldm/cosmos/predict2.py751 Prepares an embedded sequence tensor by applying positional embeddings and handling padding masks. Arg
HIGHcomfy/ldm/cosmos/model.py258 Prepares an embedded sequence tensor by applying positional embeddings and handling padding masks. Arg
HIGHcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py23 Convert a string, enum instance, or None to the appropriate enum member. Args: value: Can
HIGHcomfy/ldm/hydit/attn_layers.py8 Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor
HIGHcomfy/ldm/ace/lyric_encoder.py454Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive
HIGHcomfy/ldm/ace/lyric_encoder.py492Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: s
HIGHcomfy/ldm/ace/lyric_encoder.py890Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: length
HIGHapp/frontend_management.py335 Args: value (str): The version string to parse. Returns: tuple[str, str]: A tu
HIGHapp/frontend_management.py356 Initializes the frontend for the specified version. Args: version_string (str): The versio
HIGHapp/assets/api/upload.py28 Parse a multipart/form-data upload request. Args: request: The aiohttp request check_hash_exis
HIGHcomfy_api_nodes/nodes_openai.py58Validates and casts a response to a torch.Tensor. Args: response: The response to validate and cast.
HIGHcomfy_api_nodes/util/conversions.py20Converts image data from BytesIO to a torch.Tensor. Args: image_bytesio: BytesIO object containing the imag
HIGHcomfy_extras/nodes_train.py643Validate conditioning count matches image count, expand if needed. Args: positive: Conditioning list
HIGHcomfy_extras/nodes_train.py862Create optimizer based on name. Args: optimizer_name: Name of optimizer ("Adam", "AdamW", "SGD", "RMSprop")
HIGHcomfy_config/config_parser.py51 Extract configuration from a custom node directory's pyproject.toml file or a Python file. This function reads and par
Cross-Language Confusion7 hits · 52 pts
SeverityFileLineSnippet
HIGHcomfy_api_nodes/nodes_tripo.py830 $face := (widgets.face_limit != null) ? widgets.face_limit : -1;
HIGHcomfy_api_nodes/nodes_tripo.py831 $texSize := (widgets.texture_size != null) ? widgets.texture_size : 4096;
HIGHcomfy_api_nodes/nodes_tripo.py832 $flatThresh := (widgets.flatten_bottom_threshold != null) ? widgets.flatten_bottom_threshold : 0;
HIGHcomfy_api_nodes/nodes_tripo.py833 $scale := (widgets.scale_factor != null) ? widgets.scale_factor : 1;
HIGHtests-unit/assets_test/test_assets_missing_sync.py343 # one hashed AssetInfo (asset_hash == h) + one seed AssetInfo (asset_hash == null)
HIGHtests-unit/assets_test/test_metadata_filters.py136 # a1: key missing; a2: explicit null; a3: concrete value
HIGHtests-unit/assets_test/test_metadata_filters.py318 # Filtering by unknown key with None should return both (missing key OR null)
Redundant / Tautological Comments30 hits · 40 pts
SeverityFileLineSnippet
LOWserver.py289 # Check if first message is feature flags
LOWserver.py1003 # Check if a specific prompt_id was provided for targeted interruption
LOWserver.py1008 # Check if the prompt_id matches any currently running prompt
LOWcomfy/text_encoders/anima.py26 out["qwen3_06b"] = [[(k[0], 1.0, k[2]) if return_word_ids else (k[0], 1.0) for k in inner_list] for inner_list i
LOWcomfy/weight_adapter/bypass.py159 # Check if adapter has custom bypass_forward (e.g., GLoRA)
LOWcomfy/weight_adapter/bypass.py162 # Check if it's overridden (not the base class default)
LOWcomfy/weight_adapter/bypass.py216 # Check if adapter is an nn.Module (WeightAdapterTrainBase)
LOWapp/user_manager.py88 # Check if filename is url encoded
LOWapp/user_manager.py269 # Check if it's the base user directory that's missing (new user case)
LOWapp/database/db.py141 # Check if we need to upgrade
LOW…ecution/testing_nodes/testing-pack/async_test_nodes.py235 # Check if resource is already in use
LOWcomfy_api_nodes/nodes_topaz.py360 # Check if width exceeds standard bounds (for ultra-wide e.g., 21:9 ARs)
LOWcomfy_api_nodes/nodes_topaz.py368 # Check if height exceeds standard bounds
LOWcomfy_api_nodes/nodes_topaz.py680 # Check if width exceeds standard bounds (for ultra-wide e.g., 21:9 ARs)
LOWcomfy_api_nodes/nodes_topaz.py688 # Check if height exceeds standard bounds
LOWcomfy_api_nodes/nodes_veo2.py240 # Check if video is provided as base64 or URL
LOWcomfy_api_nodes/nodes_hitpaw.py140 # Check if we can downscale input by at most 2x to fit
LOWcomfy_api_nodes/nodes_ideogram.py684 # Check if both image and mask are provided for editing mode
LOWcomfy_extras/nodes_wan.py507 # Check if we have a single track (dict with x,y) or a list of tracks
LOWcomfy_api/generate_api_stubs.py25 # Check if module has ComfyAPISync (the sync wrapper)
LOWcomfy_api/internal/__init__.py142 # Check if the original method is async
LOWcomfy_api/internal/async_to_sync.py241 # Check if this attribute needs a sync wrapper
LOWcomfy_api/internal/async_to_sync.py263 # Check if the type is defined as an inner class
LOWcomfy_api/internal/async_to_sync.py582 # Check if module has __all__ defined
LOWcomfy_api/internal/async_to_sync.py590 # Check if this type was actually used in annotations
LOWcomfy_api/internal/async_to_sync.py946 # Check if there's a mapping from annotation
LOW.github/workflows/check-line-endings.yml27 # Check if the file exists and is a text file
LOWtests-unit/utils/extra_config_test.py107 # Check if add_model_folder_path was called with the correct arguments
LOWtests-unit/utils/extra_config_test.py113 # Check if yaml.safe_load was called
LOWtests-unit/utils/extra_config_test.py116 # Check if open was called with the correct file path
AI Slop Vocabulary14 hits · 24 pts
SeverityFileLineSnippet
LOWexecution.py267 # if is just a class, then assign no state, just create clone
MEDIUM.spectral.yaml70 # Custom rules: best practices
MEDIUMnodes.py407 #grow mask by a few pixels to keep things seamless in latent space
LOWcomfy/hooks.py414 # if only 1 hook, just return itself without cloning
LOWcomfy/sd.py1070 #So we just set a flag for tiler fallback so that tensor gc can happen once the
LOWcomfy/sd.py1155 #So we just set a flag for tiler fallback so that tensor gc can happen once the
LOWcomfy/ldm/modules/diffusionmodules/mmdit.py852 # just use a buffer already
MEDIUMcomfy/ldm/sam3/tracker.py73 """Max of IoU and IoM (intersection over minimum area). More robust to size differences."""
LOWcomfy/ldm/ace/lyric_encoder.py113 # It's better we just return None if no cache is required,
LOWcomfy/ldm/chroma_radiance/model.py331 # If x0 variant → v-pred, just return this instead
LOWapp/node_replace_manager.py82 # just use the first replacement
LOWcomfy_extras/nodes_video.py196 # Instead of hashing the file, we can just use the modification time to avoid
LOWcomfy_api/internal/async_to_sync.py900 # If we can't get the signature, just add a simple stub
LOWtests-unit/utils/extra_config_test.py238 return path # For absolute base, we just return path directly
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippet
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py708 # Step 1: Crop first to avoid exceeding target dimensions
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py713 # Step 2: Calculate padding needed for time and frequency dimensions
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py717 # Step 3: Apply padding if needed
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py729 # Step 4: Final safety crop to ensure exact target shape
LOWcomfy_api/internal/async_to_sync.py294 # we need to check if it needs a sync wrapper
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMscript_examples/basic_api_example.py101 # If the workflow contains API nodes, you can add a Comfy API key to the `extra_data`` field of the payload.
MEDIUMscript_examples/websockets_api_example.py42 # If you want to be able to decode the binary stream for latent previews, here is how you can do it:
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWcomfy_api_nodes/nodes_vidu.py37async def execute_task(