AI Slop Code RIsk Monitor

huggingface/diffusers

🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.

23.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for huggingface/diffusers, a Python project with 34,701 GitHub stars. SynthScan examined 1,145,636 lines of code across 2870 source files, recording 15476 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 23.4 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

23.4
Adjusted Signal
23.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
34.7K
Stars
Python
Language
1.1M
Lines of Code
2.9K
Files
15.5K
Pattern Hits
2026-10-12
Scan Date
1.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 37.9/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 9659 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.3/100 · LOW

Are imports declared and package/API names verified? 2637 finding(s).

Agent Over-Engineering Ratio 56.8/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 9016 finding(s).

PR Review Velocity Impact 74.3/100 · HIGH

Which changes need focused human review? 15476 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 7HIGH 2875MEDIUM 619LOW 11975

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 15476 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition2440 hits · 12200 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGHdocs/source/zh/conceptual/contribution.md0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGHdocs/source/ko/conceptual/contribution.md0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGHdocs/source/en/conceptual/contribution.md0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGH…/pipelines/deprecated/alt_diffusion/pipeline_output.py0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGHsrc/diffusers/pipelines/ledits_pp/pipeline_output.py0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGH…iffusers/pipelines/stable_diffusion/pipeline_output.py0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGH…eprecated/semantic_stable_diffusion/pipeline_output.py0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGH…ble_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py0output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imSTRING
HIGHtests/testing_utils.py0helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/randoSTRING
HIGHsrc/diffusers/utils/testing_utils.py0helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/randoSTRING
HIGHsrc/diffusers/utils/torch_utils.py0helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/randoSTRING
HIGH…fusion_xl/test_modular_pipeline_stable_diffusion_xl.py0tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output asSTRING
HIGHtests/pipelines/flux/testing_utils.py0tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output asSTRING
HIGHtests/pipelines/testing_utils/ip_adapter.py0tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output asSTRING
HIGHtests/pipelines/stable_unclip/test_stable_unclip.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…/pipelines/stable_unclip/test_stable_unclip_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/stable_audio_3/test_stable_audio_3.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…/stable_video_diffusion/test_stable_video_diffusion.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/mochi/test_mochi.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/helios/test_helios.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kolors/test_kolors.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kolors/test_kolors_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/omnigen/test_pipeline_omnigen.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kandinsky/test_kandinsky_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kandinsky/test_kandinsky.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kandinsky/test_kandinsky_combined.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kandinsky/test_kandinsky_prior.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/kandinsky/test_kandinsky_inpaint.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/motif_video/test_motif_video.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…ipelines/controlnet_sd3/test_controlnet_inpaint_sd3.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/controlnet_sd3/test_controlnet_sd3.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…s/pipelines/controlnet/test_controlnet_inpaint_sdxl.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/controlnet/test_controlnet_sdxl.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…s/pipelines/controlnet/test_controlnet_sdxl_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/controlnet/test_controlnet_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/controlnet/test_controlnet_inpaint.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/controlnet/test_controlnet.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx/test_ltx_condition.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx/test_ltx.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx/test_ltx_latent_upsample.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx/test_ltx_image2video.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…tency_models/test_latent_consistency_models_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…t_consistency_models/test_latent_consistency_models.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/chroma/test_pipeline_chroma_img2img.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/chroma/test_pipeline_chroma.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/animatediff/test_animatediff.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/animatediff/test_animatediff_sdxl.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…s/pipelines/animatediff/test_animatediff_sparsectrl.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…s/pipelines/animatediff/test_animatediff_controlnet.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…/pipelines/animatediff/test_animatediff_video2video.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGH…animatediff/test_animatediff_video2video_controlnet.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx2/test_ltx2_hdr.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx2/test_ltx2_image2video.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx2/test_ltx2_in_context.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx2/test_ltx2.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ltx2/test_ltx2_condition.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/ddim/test_ddim.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/audioldm2/test_audioldm2.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
HIGHtests/pipelines/anyflow/test_anyflow_far.py0memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline.STRING
2380 more matches not shown…
Hyper-Verbose Identifiers4516 hits · 4077 pts
SeverityFileLineSnippetContext
LOW⚡tests/testing_utils.py1539def backend_reset_peak_memory_stats(device: str):CODE
LOW⚡tests/testing_utils.py1543def backend_reset_max_memory_allocated(device: str):CODE
LOW⚡tests/testing_utils.py1548def backend_max_memory_allocated(device: str):CODE
LOW⚡tests/testing_utils.py1554def backend_supports_training(device: str):CODE
LOWtests/testing_utils.py195def numpy_cosine_similarity_distance(a, b):CODE
LOWtests/testing_utils.py513def require_torch_version_greater_equal(torch_version):CODE
LOWtests/testing_utils.py526def require_torch_version_greater(torch_version):CODE
LOWtests/testing_utils.py543def require_torch_cuda_compatibility(expected_compute_capability):CODE
LOWtests/testing_utils.py557def require_torch_accelerator(test_case):CODE
LOWtests/testing_utils.py592def require_torch_multi_accelerator(test_case):CODE
LOWtests/testing_utils.py622def require_big_gpu_with_torch_cuda(test_case):CODE
LOWtests/testing_utils.py671def require_accelerator_memory(min_memory_gb: int):CODE
LOWtests/testing_utils.py693def require_torch_accelerator_with_training(test_case):CODE
LOWtests/testing_utils.py779def require_peft_version_greater(peft_version):CODE
LOWtests/testing_utils.py796def require_transformers_version_greater(transformers_version):CODE
LOWtests/testing_utils.py814def require_accelerate_version_greater(accelerate_version):CODE
LOWtests/testing_utils.py827def require_bitsandbytes_version_greater(bnb_version):CODE
LOWtests/testing_utils.py849def require_hf_hub_version_greater(hf_hub_version):CODE
LOWtests/testing_utils.py862def require_gguf_version_greater_or_equal(gguf_version):CODE
LOWtests/testing_utils.py874def require_torchao_version_greater_or_equal(torchao_version):CODE
LOWtests/testing_utils.py886def require_auto_round_version_greater_or_equal(auto_round_version):CODE
LOWtests/testing_utils.py899def require_kernels_version_greater_or_equal(kernels_version):CODE
LOWtests/testing_utils.py911def require_modelopt_version_greater_or_equal(modelopt_version):CODE
LOWtests/testing_utils.py921def deprecate_after_peft_backend(test_case):CODE
LOWtests/testing_utils.py1172def pytest_terminal_summary_main(tr, id):CODE
LOWtests/testing_utils.py1654 def _get_expected_safetensors_files(CODE
LOWtests/testing_utils.py1737 def _check_safetensors_serialization(CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py63 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py85 def test_single_file_components(self):CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py98 def test_single_file_components_local_files_only(self):CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py112 def test_single_file_components_with_original_config(self):CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py121 def test_single_file_components_with_original_config_local_files_only(self):CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py142 def test_single_file_components_with_diffusers_config(self):CODE
LOW…e_file/test_stable_diffusion_controlnet_single_file.py151 def test_single_file_components_with_diffusers_config_local_files_only(self):CODE
LOW…ts/single_file/test_stable_diffusion_xl_single_file.py52 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOWtests/single_file/test_model_vae_single_file.py52 def test_single_file_inference_same_as_pretrained(self):CODE
LOWtests/single_file/test_model_vae_single_file.py71 def test_single_file_arguments(self):CODE
LOW…ngle_file/test_stable_diffusion_upscale_single_file.py41 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…ngle_file/test_stable_diffusion_upscale_single_file.py75 def test_single_file_components_with_original_config(self):CODE
LOW…ngle_file/test_stable_diffusion_upscale_single_file.py83 def test_single_file_components_with_original_config_local_files_only(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py63 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py88 def test_single_file_components(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py102 def test_single_file_components_local_files_only(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py123 def test_single_file_components_with_original_config(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py141 def test_single_file_components_with_original_config_local_files_only(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py164 def test_single_file_components_with_diffusers_config(self):CODE
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py175 def test_single_file_components_with_diffusers_config_local_files_only(self):CODE
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py61 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py72 def test_single_file_components_with_original_config(self):CODE
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py76 def test_single_file_components_with_original_config_local_files_only(self):CODE
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py119 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…e_file/test_stable_diffusion_xl_img2img_single_file.py60 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…e_file/test_stable_diffusion_xl_img2img_single_file.py76 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…s/single_file/test_model_autoencoder_dc_single_file.py50 def test_single_file_inference_same_as_pretrained(self):CODE
LOW…s/single_file/test_model_autoencoder_dc_single_file.py67 def test_single_file_in_type_variant_components(self):CODE
LOW…s/single_file/test_model_autoencoder_dc_single_file.py86 def test_single_file_mix_type_variant_components(self):CODE
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py70 def test_single_file_format_inference_is_same_as_pretrained(self):CODE
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py89 def test_single_file_components(self):CODE
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py102 def test_single_file_components_local_files_only(self):CODE
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py117 def test_single_file_components_with_original_config(self):CODE
4456 more matches not shown…
Docstring Block Structure386 hits · 1930 pts
SeverityFileLineSnippetContext
HIGHutils/check_forward_call_docstrings.py15 Check that arguments of ``forward()`` (for models) and ``__call__()`` (for pipelines) match the method's docstring exacSTRING
HIGHexamples/research_projects/anytext/anytext.py1970 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…_projects/promptdiffusion/pipeline_prompt_diffusion.py938 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…ch_projects/pixart/pipeline_pixart_alpha_controlnet.py820 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_zero1to3.py624 Function invoked when calling the pipeline for generation. Args: input_imgs (`PIL` or `LisSTRING
HIGHexamples/community/mod_controlnet_tile_sr_sdxl.py1084 Calculates the number of tiles needed to cover an image, choosing the appropriate formula based on the STRING
HIGHexamples/community/mod_controlnet_tile_sr_sdxl.py1292 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…mmunity/stable_diffusion_controlnet_inpaint_img2img.py755 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…les/community/pipeline_flux_kontext_multiple_images.py851 Function invoked when calling the pipeline for generation. Args: image (`torch.Tensor`, `PSTRING
HIGH…munity/pipeline_stable_diffusion_3_instruct_pix2pix.py896 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…/community/stable_diffusion_xl_controlnet_reference.py375 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/mixture_tiling.py184 Function to run the diffusion pipeline with tiling support. Args: prompt: either a single STRING
HIGHexamples/community/pipeline_stg_hunyuan_video.py586 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/pipeline_flux_with_cfg.py632 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_stable_diffusion_xl_ipex.py759 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/stable_diffusion_repaint.py43 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will beSTRING
HIGHexamples/community/stable_diffusion_repaint.py633 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[strSTRING
HIGH…/community/pipeline_hunyuandit_differential_img2img.py770 The call function to the pipeline for generation with HunyuanDiT. Args: prompt (`str` or `STRING
HIGHexamples/community/pipeline_stable_diffusion_boxdiff.py1353 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/adaptive_mask_inpainting.py206 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will beSTRING
HIGHexamples/community/adaptive_mask_inpainting.py884 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/fresco_v2v.py2082 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…line_stable_diffusion_xl_controlnet_adapter_inpaint.py175 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will beSTRING
HIGH…line_stable_diffusion_xl_controlnet_adapter_inpaint.py1240 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…ty/pipeline_stable_diffusion_3_differential_img2img.py699 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_demofusion_sdxl.py662 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/run_tensorrt_controlnet.py651 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_stg_ltx.py589 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_animatediff_ipex.py598 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…es/community/pipeline_faithdiff_stable_diffusion_xl.py1838 Function invoked when calling the pipeline for generation. Args: lr_img (PipelineImageInpuSTRING
HIGHexamples/community/pipeline_stable_diffusion_pag.py1126 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optiSTRING
HIGHexamples/community/stable_diffusion_reference.py286 Check the validity of the input arguments for the diffusion model. Args: prompt (Optional[STRING
HIGHexamples/community/stable_diffusion_reference.py849 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…unity/pipeline_stable_diffusion_xl_attentive_eraser.py326 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will beSTRING
HIGH…unity/pipeline_stable_diffusion_xl_attentive_eraser.py1660 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…les/community/stable_diffusion_controlnet_reference.py135 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/stable_diffusion_xl_reference.py317 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…les/community/pipeline_controlnet_xl_kolors_img2img.py995 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_controlnet_xl_kolors.py821 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…y/pipeline_stable_diffusion_xl_differential_img2img.py978 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/matryoshka.py4278 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…les/community/pipeline_z_image_differential_img2img.py477 Function invoked when calling the pipeline for image-to-image generation. Args: prompt (`sSTRING
HIGHexamples/community/pipeline_stg_mochi.py592 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…s/community/pipeline_stable_diffusion_upscale_ldm3d.py533 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/rerender_a_video.py627 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…es/community/pipeline_stable_diffusion_xl_instantid.py586 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/lpw_stable_diffusion_xl.py1437 Function invoked when calling the pipeline for generation. Args: prompt (`str`): STRING
HIGHexamples/community/pipeline_kolors_inpainting.py123 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will beSTRING
HIGHexamples/community/pipeline_kolors_inpainting.py1121 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/stable_diffusion_ipex.py583 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/mixture_tiling_sdxl.py803 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/gluegen.py607 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/instaflow_one_step.py522 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…mples/community/stable_diffusion_controlnet_inpaint.py767 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…ples/community/pipeline_kolors_differential_img2img.py819 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHexamples/community/pipeline_fabric.py521 The call function to the pipeline for generation. Generate a trajectory of images with binary feedback. The STRING
HIGHexamples/community/pipeline_animatediff_controlnet.py777 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHexamples/community/pipeline_flux_semantic_guidance.py825 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGH…nity/pipeline_stable_diffusion_xl_instandid_img2img.py590 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGH…ples/community/pipline_flux_fill_controlnet_Inpaint.py865 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
326 more matches not shown…
Unused Imports2612 hits · 1832 pts
SeverityFileLineSnippetContext
LOWtests/modular_pipelines/testing_utils/__init__.py1CODE
LOWtests/modular_pipelines/testing_utils/__init__.py1CODE
LOWtests/modular_pipelines/testing_utils/__init__.py1CODE
LOWtests/modular_pipelines/testing_utils/__init__.py6CODE
LOWtests/modular_pipelines/testing_utils/__init__.py7CODE
LOWtests/modular_pipelines/testing_utils/__init__.py8CODE
LOWtests/modular_pipelines/testing_utils/__init__.py8CODE
LOWtests/modular_pipelines/testing_utils/__init__.py9CODE
LOWtests/modular_pipelines/testing_utils/__init__.py9CODE
LOWtests/modular_pipelines/testing_utils/__init__.py9CODE
LOWtests/modular_pipelines/testing_utils/__init__.py9CODE
LOWtests/modular_pipelines/testing_utils/__init__.py15CODE
LOWtests/modular_pipelines/testing_utils/__init__.py15CODE
LOWtests/modular_pipelines/testing_utils/__init__.py15CODE
LOWtests/modular_pipelines/testing_utils/__init__.py16CODE
LOWtests/pipelines/testing_utils/__init__.py1CODE
LOWtests/pipelines/testing_utils/__init__.py1CODE
LOWtests/pipelines/testing_utils/__init__.py1CODE
LOWtests/pipelines/testing_utils/__init__.py1CODE
LOWtests/pipelines/testing_utils/__init__.py1CODE
LOWtests/pipelines/testing_utils/__init__.py1CODE
LOWtests/pipelines/testing_utils/__init__.py9CODE
LOWtests/pipelines/testing_utils/__init__.py9CODE
LOWtests/pipelines/testing_utils/__init__.py9CODE
LOWtests/pipelines/testing_utils/__init__.py9CODE
LOWtests/pipelines/testing_utils/__init__.py10CODE
LOWtests/pipelines/testing_utils/__init__.py11CODE
LOWtests/pipelines/testing_utils/__init__.py12CODE
LOWtests/pipelines/testing_utils/__init__.py12CODE
LOWtests/pipelines/testing_utils/__init__.py12CODE
LOWtests/pipelines/testing_utils/__init__.py13CODE
LOWtests/pipelines/testing_utils/__init__.py13CODE
LOWtests/pipelines/testing_utils/__init__.py13CODE
LOWtests/pipelines/testing_utils/__init__.py13CODE
LOWtests/models/unets/test_unet_2d_blocks.py17CODE
LOWtests/models/transformers/_neuron_tp_worker.py46CODE
LOWtests/models/testing_utils/__init__.py1CODE
LOWtests/models/testing_utils/__init__.py1CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py2CODE
LOWtests/models/testing_utils/__init__.py17CODE
LOWtests/models/testing_utils/__init__.py17CODE
LOWtests/models/testing_utils/__init__.py18CODE
LOWtests/models/testing_utils/__init__.py19CODE
LOWtests/models/testing_utils/__init__.py20CODE
LOWtests/models/testing_utils/__init__.py21CODE
LOWtests/models/testing_utils/__init__.py21CODE
LOWtests/models/testing_utils/__init__.py22CODE
LOWtests/models/testing_utils/__init__.py22CODE
2552 more matches not shown…
Over-Commented Block1521 hits · 1510 pts
SeverityFileLineSnippetContext
LOWsetup.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOWsetup.py161#COMMENT
LOWtests/conftest.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOW…/single_file/test_model_wan_autoencoder_single_file.py1# coding=utf-8COMMENT
LOWtests/single_file/test_lumina2_transformer.py1# coding=utf-8COMMENT
LOW…single_file/test_model_flux_transformer_single_file.py1# coding=utf-8COMMENT
LOWtests/single_file/test_model_vae_single_file.py1# coding=utf-8COMMENT
LOW…s/single_file/test_model_autoencoder_dc_single_file.py1# coding=utf-8COMMENT
LOWtests/single_file/test_model_controlnet_single_file.py1# coding=utf-8COMMENT
LOW…ingle_file/test_model_wan_transformer3d_single_file.py1# coding=utf-8COMMENT
LOW…/single_file/test_model_sd_cascade_unet_single_file.py1# coding=utf-8COMMENT
LOW…s/single_file/test_model_motion_adapter_single_file.py1# coding=utf-8COMMENT
LOW…sts/modular_pipelines/test_modular_pipeline_loading.py1# coding=utf-8COMMENT
LOW…/modular_pipelines/test_conditional_pipeline_blocks.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOWtests/modular_pipelines/test_modular_pipeline_cache.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOWtests/modular_pipelines/test_components_manager.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOWtests/modular_pipelines/test_modular_model_card.py1# coding=utf-8COMMENT
LOW…dular_pipelines/helios/test_modular_pipeline_helios.py1# coding=utf-8COMMENT
LOW…s/wan_animate_2/test_modular_pipeline_wan_animate_2.py1# coding=utf-8COMMENT
LOW…sts/modular_pipelines/ltx/test_modular_pipeline_ltx.py1# coding=utf-8COMMENT
LOW…modular_pipelines/krea2/test_modular_pipeline_krea2.py1# coding=utf-8COMMENT
LOW…r_pipelines/krea2/test_modular_pipeline_krea2_turbo.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/echo/testing_utils.py1# coding=utf-8COMMENT
LOW…s/modular_pipelines/echo/test_modular_pipeline_echo.py1# coding=utf-8COMMENT
LOW…/modular_pipelines/ltx2/test_modular_pipeline_ltx25.py1# coding=utf-8COMMENT
LOW…s/modular_pipelines/ltx2/test_modular_pipeline_ltx2.py1# coding=utf-8COMMENT
LOW…s/modular_pipelines/flux/test_modular_pipeline_flux.py1# coding=utf-8COMMENT
LOW…modular_pipelines/flux2/test_modular_pipeline_flux2.py1# coding=utf-8COMMENT
LOW…r_pipelines/flux2/test_modular_pipeline_flux2_klein.py1# coding=utf-8COMMENT
LOW…elines/flux2/test_modular_pipeline_flux2_klein_base.py1# coding=utf-8COMMENT
LOW…modular_pipelines/anima/test_modular_pipeline_anima.py1# Copyright 2026 The HuggingFace Team.COMMENT
LOW…ular_pipelines/cosmos/test_modular_pipeline_cosmos3.py1# coding=utf-8COMMENT
LOW…ines/cosmos/test_modular_pipeline_cosmos3_distilled.py1# coding=utf-8COMMENT
LOW…ular_pipelines/qwen/test_modular_pipeline_qwenimage.py1# coding=utf-8COMMENT
LOW…minimax_music3/test_modular_pipeline_minimax_music3.py1# Copyright 2026 The HuggingFace Team.COMMENT
LOW…pelines/minimax_h3/test_modular_pipeline_minimax_h3.py1# Copyright 2026 The HuggingFace Team.COMMENT
LOW…odular_pipelines/wan/test_modular_pipeline_wan_vace.py1# coding=utf-8COMMENT
LOW…sts/modular_pipelines/wan/test_modular_pipeline_wan.py1# coding=utf-8COMMENT
LOW…lar_pipelines/z_image/test_modular_pipeline_z_image.py1# coding=utf-8COMMENT
LOW…iffusion_3/test_modular_pipeline_stable_diffusion_3.py1# coding=utf-8COMMENT
LOW…fusion_xl/test_modular_pipeline_stable_diffusion_xl.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/loading.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/guider.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/memory.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/common.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/utils.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/workflow.py1# coding=utf-8COMMENT
LOWtests/modular_pipelines/testing_utils/lora.py1# coding=utf-8COMMENT
LOW…uan_video1_5/test_modular_pipeline_hunyuan_video1_5.py1# coding=utf-8COMMENT
LOW…lines/ernie_image/test_modular_pipeline_ernie_image.py1# coding=utf-8COMMENT
LOWtests/others/test_utils.py1# coding=utf-8COMMENT
LOWtests/others/test_ema.py1# coding=utf-8COMMENT
LOWtests/others/test_hub_utils.py1# coding=utf-8COMMENT
LOWtests/others/test_dependencies.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOWtests/others/test_check_copies.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOWtests/others/test_check_dummies.py1# Copyright 2026 The HuggingFace Team. All rights reserved.COMMENT
LOWtests/others/test_flashpack.py1# coding=utf-8COMMENT
LOWtests/others/test_training.py1# coding=utf-8COMMENT
LOWtests/others/test_image_processor.py1# coding=utf-8COMMENT
1461 more matches not shown…
Deep Nesting1454 hits · 1414 pts
SeverityFileLineSnippetContext
LOWtests/testing_utils.py934CODE
LOWtests/testing_utils.py1172CODE
LOWtests/testing_utils.py1654CODE
LOWtests/modular_pipelines/testing_utils/loading.py86CODE
LOWtests/modular_pipelines/testing_utils/common.py357CODE
LOWtests/others/test_dependencies.py25CODE
LOWtests/others/test_video_processor.py29CODE
LOWtests/others/test_video_processor.py74CODE
LOW…elines/ip_adapters/test_ip_adapter_stable_diffusion.py101CODE
LOWtests/pipelines/testing_utils/memory.py46CODE
LOWtests/pipelines/testing_utils/memory.py181CODE
LOWtests/pipelines/testing_utils/common.py610CODE
LOWtests/pipelines/testing_utils/common.py823CODE
LOWtests/models/test_modeling_common.py228CODE
LOWtests/models/test_attention_dispatch.py197CODE
LOWtests/models/unets/test_models_unet_2d_condition.py74CODE
LOWtests/models/unets/test_models_unet_2d_condition.py129CODE
LOWtests/models/unets/test_models_unet_2d_condition.py229CODE
LOWtests/models/unets/test_models_unet_2d_condition.py287CODE
LOWtests/models/testing_utils/memory.py322CODE
LOWtests/models/testing_utils/quantization.py322CODE
LOWtests/models/testing_utils/quantization.py374CODE
LOWtests/models/testing_utils/quantization.py960CODE
LOWtests/models/testing_utils/cache.py138CODE
LOWtests/models/testing_utils/common.py64CODE
LOWtests/models/testing_utils/parallelism.py313CODE
LOWtests/lora/utils.py1584CODE
LOWtests/schedulers/test_scheduler_dpm_single.py179CODE
LOWtests/schedulers/test_scheduler_dpm_single.py198CODE
LOWtests/schedulers/test_schedulers.py673CODE
LOWtests/schedulers/test_scheduler_dpm_multi_inverse.py146CODE
LOWtests/schedulers/test_scheduler_dpm_multi_inverse.py165CODE
LOW…s/schedulers/test_scheduler_edm_dpmsolver_multistep.py149CODE
LOW…s/schedulers/test_scheduler_edm_dpmsolver_multistep.py170CODE
LOWtests/schedulers/test_scheduler_deis.py168CODE
LOWtests/schedulers/test_scheduler_deis.py187CODE
LOWtests/schedulers/test_scheduler_dpm_multi.py180CODE
LOWtests/schedulers/test_scheduler_dpm_multi.py199CODE
LOWtests/schedulers/test_scheduler_unipc.py165CODE
LOWtests/schedulers/test_scheduler_unipc.py235CODE
LOWutils/label_issues.py72CODE
LOWutils/remind_link_issue.py204CODE
LOWutils/log_reports.py17CODE
LOWutils/consolidated_test_report.py24CODE
LOWutils/consolidated_test_report.py92CODE
LOWutils/consolidated_test_report.py136CODE
LOWutils/consolidated_test_report.py240CODE
LOWutils/consolidated_test_report.py350CODE
LOWutils/consolidated_test_report.py675CODE
LOWutils/consolidated_test_report.py724CODE
LOWutils/tests_fetcher.py235CODE
LOWutils/tests_fetcher.py310CODE
LOWutils/tests_fetcher.py560CODE
LOWutils/tests_fetcher.py729CODE
LOWutils/modular_auto_docstring.py118CODE
LOWutils/check_return_annotations.py136CODE
LOWutils/check_dummies.py67CODE
LOWutils/check_dummies.py132CODE
LOWutils/generate_model_tests.py206CODE
LOWutils/generate_model_tests.py312CODE
1394 more matches not shown…
AI Structural Patterns1320 hits · 1286 pts
SeverityFileLineSnippetContext
LOWtests/modular_pipelines/test_modular_model_card.py37CODE
LOWtests/pipelines/testing_utils/quantization.py424CODE
LOW…amples/cogvideo/train_cogvideox_image_to_video_lora.py433CODE
LOWexamples/cogvideo/train_cogvideox_lora.py417CODE
LOW…amples/research_projects/anytext/anytext_controlnet.py176CODE
LOW…amples/research_projects/anytext/anytext_controlnet.py258CODE
LOWexamples/research_projects/anytext/anytext.py321CODE
LOWexamples/research_projects/anytext/anytext.py1658CODE
LOWexamples/research_projects/anytext/anytext.py1935CODE
LOWexamples/research_projects/anytext/ocr_recog/RecSVTR.py20CODE
LOWexamples/research_projects/anytext/ocr_recog/RecSVTR.py53CODE
LOWexamples/research_projects/anytext/ocr_recog/RecSVTR.py128CODE
LOWexamples/research_projects/anytext/ocr_recog/RecSVTR.py191CODE
LOWexamples/research_projects/anytext/ocr_recog/RecSVTR.py362CODE
LOWexamples/research_projects/anytext/ocr_recog/RNN.py102CODE
LOWexamples/research_projects/anytext/ocr_recog/RNN.py106CODE
LOW…rch_projects/controlnet/train_controlnet_webdataset.py194CODE
LOW…cts/onnxruntime/textual_inversion/textual_inversion.py480CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1258CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1927CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1980CODE
LOW…_projects/promptdiffusion/pipeline_prompt_diffusion.py908CODE
LOW…_projects/promptdiffusion/promptdiffusioncontrolnet.py102CODE
LOW…_projects/promptdiffusion/promptdiffusioncontrolnet.py182CODE
LOW…led_huber_loss_training/dreambooth/train_dreambooth.py637CODE
LOW…uber_loss_training/dreambooth/train_dreambooth_lora.py577CODE
LOWexamples/research_projects/rdm/retriever.py41CODE
LOWexamples/research_projects/rdm/pipeline_rdm.py155CODE
LOW…es/research_projects/pixart/controlnet_pixart_alpha.py14CODE
LOW…es/research_projects/pixart/controlnet_pixart_alpha.py153CODE
LOW…ch_projects/pixart/pipeline_pixart_alpha_controlnet.py318CODE
LOW…ch_projects/pixart/pipeline_pixart_alpha_controlnet.py789CODE
LOW…/intel_opts/textual_inversion_dfq/textual_inversion.py331CODE
LOW…intel_opts/textual_inversion/textual_inversion_bf16.py273CODE
LOW…cts/multi_token_textual_inversion/textual_inversion.py458CODE
LOW…ulti_token_textual_inversion/textual_inversion_flax.py243CODE
LOW…fusion_training/train_dreambooth_lora_sd15_advanced.py96CODE
LOW…fusion_training/train_dreambooth_lora_flux_advanced.py102CODE
LOW…fusion_training/train_dreambooth_lora_sdxl_advanced.py117CODE
LOWexamples/server-async/serverasync.py125CODE
LOWexamples/textual_inversion/textual_inversion.py508CODE
LOWexamples/textual_inversion/textual_inversion_sdxl.py494CODE
LOWexamples/textual_inversion/textual_inversion_flax.py256CODE
LOWexamples/dreambooth/train_dreambooth_lora_flux2.py783CODE
LOW…mples/dreambooth/train_dreambooth_lora_flux_kontext.py787CODE
LOW…reambooth/train_dreambooth_lora_qwenimage21_img2img.py809CODE
LOWexamples/dreambooth/train_dreambooth.py617CODE
LOWexamples/dreambooth/train_dreambooth_lora.py578CODE
LOWexamples/dreambooth/train_dreambooth_lora_z_image.py772CODE
LOW…amples/dreambooth/train_dreambooth_lora_flux2_klein.py788CODE
LOW…amples/dreambooth/train_dreambooth_lora_qwenimage21.py774CODE
LOWexamples/dreambooth/train_dreambooth_lora_krea2.py850CODE
LOWexamples/dreambooth/train_dreambooth_lora_qwen_image.py742CODE
LOWexamples/community/pipeline_zero1to3.py600CODE
LOWexamples/community/mod_controlnet_tile_sr_sdxl.py395CODE
LOWexamples/community/mod_controlnet_tile_sr_sdxl.py1253CODE
LOWexamples/community/pipeline_null_text_inversion.py194CODE
LOW…mmunity/stable_diffusion_controlnet_inpaint_img2img.py728CODE
LOWexamples/community/stable_diffusion_comparison.py88CODE
LOWexamples/community/stable_diffusion_comparison.py125CODE
1260 more matches not shown…
Decorative Section Separators433 hits · 1238 pts
SeverityFileLineSnippetContext
MEDIUMtests/modular_pipelines/test_components_manager.py96 # ------------------------------------------------------------------COMMENT
MEDIUMtests/modular_pipelines/test_components_manager.py98 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/modular_pipelines/test_components_manager.py202 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/modular_pipelines/test_components_manager.py204 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/modular_pipelines/test_components_manager.py234 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/modular_pipelines/test_components_manager.py236 # ------------------------------------------------------------------COMMENT
MEDIUMtests/others/test_cli_commands.py182 # -----------------------------------------------------------------------COMMENT
MEDIUMtests/others/test_cli_commands.py186 # -----------------------------------------------------------------------COMMENT
MEDIUMtests/pipelines/marigold/test_marigold_depth.py15# --------------------------------------------------------------------------COMMENT
MEDIUMtests/pipelines/marigold/test_marigold_depth.py18# --------------------------------------------------------------------------COMMENT
MEDIUMtests/pipelines/marigold/test_marigold_intrinsics.py15# --------------------------------------------------------------------------COMMENT
MEDIUMtests/pipelines/marigold/test_marigold_intrinsics.py18# --------------------------------------------------------------------------COMMENT
MEDIUMtests/pipelines/marigold/test_marigold_normals.py15# --------------------------------------------------------------------------COMMENT
MEDIUMtests/pipelines/marigold/test_marigold_normals.py18# --------------------------------------------------------------------------COMMENT
MEDIUM…/transformers/test_models_transformer_stable_audio3.py48# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/transformers/test_models_transformer_stable_audio3.py50# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…/transformers/test_models_transformer_stable_audio3.py219# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…/transformers/test_models_transformer_stable_audio3.py221# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/models/autoencoders/test_models_autoencoder_same.py36# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/models/autoencoders/test_models_autoencoder_same.py38# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py47# ---------------------------------------------------------------------------COMMENT
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py88# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/models/testing_utils/attention.py35# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/models/testing_utils/attention.py37# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md144# ── Experiment tracking (optional) ──────────────────────────────────────────COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md152# ── Model ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md159# ── Training schedule ───────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md169# ── Data ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md186# ── Optimizer ───────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md195# ── Learning rate scheduler ─────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/source/en/training/nemo_automodel.md202# ── Flow matching ───────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/source/en/training/nemo_automodel.md219# ── FSDP2 distributed training ──────────────────────────────────────────────COMMENT
MEDIUMdocs/source/en/training/nemo_automodel.md230# ── Checkpointing ──────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/source/en/api/pipelines/control_flux_inpaint.md47# ---------------------------------------------------------------COMMENT
MEDIUMdocs/source/en/api/pipelines/control_flux_inpaint.md57# ---------------------------------------------------------------COMMENT
MEDIUM…cts/onnxruntime/textual_inversion/textual_inversion.py79# ------------------------------------------------------------------------------COMMENT
MEDIUM…/intel_opts/textual_inversion_dfq/textual_inversion.py46# ------------------------------------------------------------------------------COMMENT
MEDIUM…intel_opts/textual_inversion/textual_inversion_bf16.py49# ------------------------------------------------------------------------------COMMENT
MEDIUM…cts/multi_token_textual_inversion/textual_inversion.py74# ------------------------------------------------------------------------------COMMENT
MEDIUM…ulti_token_textual_inversion/textual_inversion_flax.py56# ------------------------------------------------------------------------------COMMENT
MEDIUMexamples/textual_inversion/textual_inversion.py81# ------------------------------------------------------------------------------COMMENT
MEDIUMexamples/textual_inversion/textual_inversion_sdxl.py76# ------------------------------------------------------------------------------COMMENT
MEDIUMexamples/textual_inversion/textual_inversion_flax.py56# ------------------------------------------------------------------------------COMMENT
MEDIUMexamples/cosmos3/cosmos_parallel.py107# =============================================================================COMMENT
MEDIUMexamples/cosmos3/cosmos_parallel.py109# =============================================================================COMMENT
MEDIUMexamples/cosmos3/cosmos_parallel.py349# =============================================================================COMMENT
MEDIUMexamples/cosmos3/cosmos_parallel.py351# =============================================================================COMMENT
MEDIUMexamples/cosmos3/cosmos_parallel.py405# =============================================================================COMMENT
MEDIUMexamples/cosmos3/cosmos_parallel.py407# =============================================================================COMMENT
MEDIUMexamples/community/lpw_stable_diffusion.py31# ------------------------------------------------------------------------------COMMENT
MEDIUMexamples/community/lpw_stable_diffusion_onnx.py54# ------------------------------------------------------------------------------COMMENT
MEDIUM…line_stable_diffusion_xl_controlnet_adapter_inpaint.py1642 # ----------------------------------------------------------------STRING
MEDIUMexamples/community/imagic_stable_diffusion.py46# ------------------------------------------------------------------------------COMMENT
MEDIUMexamples/community/README.md499 # ------------------------------------------------COMMENT
MEDIUMexamples/community/README.md504 # -------------------------------------------------COMMENT
MEDIUMexamples/community/lpw_stable_diffusion_xl.py1## ----------------------------------------------------------COMMENT
MEDIUMexamples/community/lpw_stable_diffusion_xl.py7## -----------------------------------------------------------COMMENT
MEDIUMexamples/community/lpw_stable_diffusion_xl.py467# ----------------------------------------------------------------------------------------------------------------------STRING
373 more matches not shown…
Self-Referential Comments131 hits · 289 pts
SeverityFileLineSnippetContext
MEDIUMtests/others/test_check_dummies.py83 expected_dummy_pytorch_file = """# This file is autogenerated by the command `make fix-copies`, do not edit.STRING
MEDIUMtests/pipelines/ace_step/test_ace_step.py144 # Create a tiny Qwen3Model for testing (matching the real Qwen3-Embedding-0.6B architecture)COMMENT
MEDIUMtests/pipelines/sana_video/test_sana_video_i2v.py119 # Create a dummy image input (PIL Image)COMMENT
MEDIUM…ines/visualcloze/test_pipeline_visualcloze_combined.py111 # Create an image list that conforms to the VisualCloze input formatCOMMENT
MEDIUM…es/visualcloze/test_pipeline_visualcloze_generation.py113 # Create an image list that conforms to the VisualCloze input formatCOMMENT
MEDIUMtests/models/testing_utils/attention.py370 # Create a dict of new processorsCOMMENT
MEDIUMtests/models/testing_utils/attention.py392 # Create a dict with wrong number of processorsCOMMENT
MEDIUMutils/consolidated_test_report.py503 # Create a list of failing tests for each moduleCOMMENT
MEDIUMutils/consolidated_test_report.py581 # Create a more compact summary sectionCOMMENT
MEDIUMutils/consolidated_test_report.py587 # Create the test suites table in markdown formatCOMMENT
MEDIUMutils/consolidated_test_report.py621 # Create the Slack payload with character limit enforcementCOMMENT
MEDIUMutils/check_support_list.py68 # Define the checks we need to performCOMMENT
MEDIUMutils/tests_fetcher.py938 # Create the map that will give us all impacted modules.COMMENT
MEDIUMutils/tests_fetcher.py980 # Create a map that maps test categories to test files, i.e. `models/bert` -> [...test_modeling_bert.py, ...]COMMENT
MEDIUMutils/check_dummies.py124 dummy_file = "# This file is autogenerated by the command `make fix-copies`, do not edit.\n"CODE
MEDIUMexamples/instruct_pix2pix/train_instruct_pix2pix.py1008 # Create the pipeline using the trained modules and save it.COMMENT
MEDIUM…amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py1219 # Create the pipeline using the trained modules and save it.COMMENT
MEDIUMexamples/controlnet/train_controlnet_flux.py1399 # Create the pipeline using using the trained modules and save it.STRING
MEDIUMexamples/controlnet/train_controlnet_sdxl.py1343 # Create the pipeline using using the trained modules and save it.STRING
MEDIUMexamples/controlnet/train_controlnet.py1156 # Create the pipeline using the trained modules and save it.STRING
MEDIUMexamples/controlnet/train_controlnet_sd3.py1434 # Create the pipeline using using the trained modules and save it.STRING
MEDIUMexamples/flux-control/train_control_lora_flux.py1111 # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed.STRING
MEDIUMexamples/flux-control/train_control_lora_flux.py1352 # Create the pipeline using using the trained modules and save it.STRING
MEDIUMexamples/flux-control/train_control_flux.py966 # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed.STRING
MEDIUMexamples/flux-control/train_control_flux.py1206 # Create the pipeline using using the trained modules and save it.STRING
MEDIUM…andinsky2_2/text_to_image/train_text_to_image_prior.py913 # Create the pipeline using the trained modules and save it.STRING
MEDIUM…dinsky2_2/text_to_image/train_text_to_image_decoder.py893 # Create the pipeline using the trained modules and save it.STRING
MEDIUMexamples/t2i_adapter/train_t2i_adapter_sdxl.py1301 # Create the pipeline using using the trained modules and save it.STRING
MEDIUMexamples/research_projects/gligen/train_gligen_text.py674 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…rch_projects/controlnet/train_controlnet_webdataset.py1445 # Create the pipeline using using the trained modules and save it.STRING
MEDIUM…rojects/dreambooth_inpaint/train_dreambooth_inpaint.py791 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…cts/onnxruntime/textual_inversion/textual_inversion.py920 # Create the pipeline using the trained modules and save it.STRING
MEDIUM…jects/onnxruntime/text_to_image/train_text_to_image.py927 # Create the pipeline using the trained modules and save it.COMMENT
MEDIUM…ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py1116 # Create the pipeline using the trained modules and save it.STRING
MEDIUM…/wuerstchen/text_to_image/train_text_to_image_prior.py886 # Create the pipeline using the trained modules and save it.STRING
MEDIUM…stchen/text_to_image/train_text_to_image_lora_prior.py903 # Create the pipeline using the trained modules and save it.STRING
MEDIUM…research_projects/autoencoderkl/train_autoencoderkl.py1023 # Create the pipeline using using the trained modules and save it.STRING
MEDIUM…ber_loss_training/text_to_image/train_text_to_image.py1111 # Create the pipeline using the trained modules and save it.STRING
MEDIUM…led_huber_loss_training/dreambooth/train_dreambooth.py1463 # Create the pipeline using the trained modules and save it.COMMENT
MEDIUM…i_subject_dreambooth/train_multi_subject_dreambooth.py1171 # Create the pipeline using the trained modules and save it.COMMENT
MEDIUM…/intel_opts/textual_inversion_dfq/textual_inversion.py935 # Create the pipeline using using the trained modules and save it.STRING
MEDIUM…intel_opts/textual_inversion/textual_inversion_bf16.py612 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…cts/multi_token_textual_inversion/textual_inversion.py905 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…ulti_token_textual_inversion/textual_inversion_flax.py609 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…research_projects/sd3_lora_colab/compute_embeddings.py87 # Create a DataFrameCOMMENT
MEDIUM…_projects/flux_lora_quantization/compute_embeddings.py82 # Create a DataFrameCOMMENT
MEDIUMexamples/cogview4-control/train_control_cogview4.py976 # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed.STRING
MEDIUMexamples/cogview4-control/train_control_cogview4.py1199 # Create the pipeline using using the trained modules and save it.STRING
MEDIUM…s/consistency_distillation/train_lcm_distill_sd_wds.py1412 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…onsistency_distillation/train_lcm_distill_lora_sdxl.py1441 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…sistency_distillation/train_lcm_distill_lora_sd_wds.py1447 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…stency_distillation/train_lcm_distill_lora_sdxl_wds.py1510 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUM…consistency_distillation/train_lcm_distill_sdxl_wds.py1515 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUMexamples/model_search/pipeline_easy.py785 # Initialize additional variables with default valuesSTRING
MEDIUMexamples/textual_inversion/textual_inversion.py977 # Create the pipeline using the trained modules and save it.STRING
MEDIUMexamples/textual_inversion/textual_inversion_sdxl.py1066 # Create the pipeline using the trained modules and save it.STRING
MEDIUMexamples/textual_inversion/textual_inversion_flax.py636 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUMexamples/text_to_image/train_text_to_image.py1118 # Create the pipeline using the trained modules and save it.STRING
MEDIUMexamples/text_to_image/train_text_to_image_flax.py582 # Create the pipeline using using the trained modules and save it.COMMENT
MEDIUMexamples/dreambooth/train_dreambooth_flax.py630 # Create the pipeline using the trained modules and save it.COMMENT
71 more matches not shown…
Excessive Try-Catch Wrapping175 hits · 181 pts
SeverityFileLineSnippetContext
MEDIUMtests/testing_utils.py288def parse_flag_from_env(key, default=False):CODE
LOWtests/testing_utils.py1332 except Exception as err:CODE
LOWtests/testing_utils.py1382 except Exception as e:CODE
LOWtests/testing_utils.py1473 except Exception as e:CODE
LOWtests/testing_utils.py1495 except Exception as e:CODE
LOWtests/modular_pipelines/testing_utils/utils.py63 except Exception:CODE
LOWtests/others/test_dependencies.py81 except Exception:CODE
LOWtests/pipelines/test_pipelines.py135 except Exception:CODE
LOWtests/pipelines/diffusion_gemma/test_diffusion_gemma.py89 except Exception as e: # noqa: BLE001 - offline / hub errors should skip, not failCODE
MEDIUMtests/pipelines/diffusion_gemma/test_diffusion_gemma.py81def _load_pipeline():CODE
LOWtests/models/test_attention_dispatch.py106 except Exception as e:CODE
LOWtests/models/test_attention_dispatch.py206 except Exception as e:CODE
LOWtests/models/transformers/_neuron_tp_worker.py108 except Exception:CODE
LOWtests/models/testing_utils/attention.py500 except Exception as e:CODE
LOWtests/models/testing_utils/attention.py573 except Exception as e:CODE
LOWtests/models/testing_utils/parallelism.py123 except Exception as e:CODE
LOWtests/models/testing_utils/parallelism.py181 except Exception as e:CODE
LOWtests/models/testing_utils/parallelism.py240 except Exception as e:CODE
LOWtests/models/testing_utils/parallelism.py304 except Exception as e:CODE
LOWtests/models/testing_utils/parallelism.py374 except Exception as e:CODE
LOWutils/label_issues.py118 except Exception:CODE
MEDIUMutils/label_issues.py86def main():CODE
LOWutils/remind_link_issue.py127 except Exception as e:CODE
LOWutils/remind_link_issue.py271 except Exception as e:CODE
LOWutils/remind_link_issue.py274 except Exception as e:CODE
MEDIUMutils/consolidated_test_report.py88 print(f"Error parsing {file_path}: {e}")CODE
MEDIUMutils/consolidated_test_report.py131 print(f"Error parsing durations file {file_path.replace('_stats.txt', '_durations.txt')}: {e}")CODE
MEDIUMutils/consolidated_test_report.py235 print(f"Error parsing failures in {file_path}: {e}")CODE
MEDIUMutils/consolidated_test_report.py301 print(f"Error parsing summary file: {e}")CODE
MEDIUMutils/consolidated_test_report.py727 print(f"Error: Reports directory '{args.reports_dir}' does not exist.")CODE
MEDIUMutils/consolidated_test_report.py784 print(f"Error sending report to Slack: {e}")CODE
LOWutils/consolidated_test_report.py87 except Exception as e:CODE
LOWutils/consolidated_test_report.py130 except Exception as e:CODE
LOWutils/consolidated_test_report.py170 except Exception:CODE
LOWutils/consolidated_test_report.py234 except Exception as e:CODE
LOWutils/consolidated_test_report.py300 except Exception as e:CODE
LOWutils/consolidated_test_report.py783 except Exception as e:CODE
LOWutils/tests_fetcher.py1115 except Exception as e:CODE
LOWutils/modular_auto_docstring.py94 except Exception as e:CODE
LOWutils/modular_auto_docstring.py112 except Exception as e:CODE
LOWutils/modular_auto_docstring.py233 except Exception as e:CODE
MEDIUM⚡utils/generate_model_tests.py555 print(f"Error: File not found: {args.model_filepath}", file=sys.stderr)CODE
MEDIUM⚡utils/generate_model_tests.py561 print(f"Error: No model classes found in {args.model_filepath}", file=sys.stderr)CODE
MEDIUM⚡utils/generate_model_tests.py568 print(f"Error: Class '{args.class_name}' not found. Available: {available}", file=sys.stderr)CODE
LOWutils/fetch_torch_cuda_pipeline_test_matrix.py69 except Exception as e:CODE
MEDIUMutils/fetch_torch_cuda_pipeline_test_matrix.py66def fetch_pipeline_modules_to_test():CODE
LOWdocs/source/en/optimization/attention_backends.md126except Exception as e:STRING
LOWdocs/source/en/using-diffusers/create_a_server.md48 except Exception as e:CODE
LOW…rch_projects/controlnet/train_controlnet_webdataset.py189 except Exception:CODE
MEDIUM…rch_projects/controlnet/train_controlnet_webdataset.py178def __call__(self, x):CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py867 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1007 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1636 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1722 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1762 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1770 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1792 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1837 except Exception:CODE
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1850 except Exception:CODE
LOW…_xla/training/text_to_image/train_text_to_image_xla.py150 except Exception as e:STRING
115 more matches not shown…
Empty Error Handlers34 hits · 170 pts
SeverityFileLineSnippetContext
HIGHtests/others/test_utils.py263except (AssertionError, RuntimeError):CODE
HIGHtests/others/test_dependencies.py81except Exception:CODE
HIGHtests/pipelines/controlnet/test_controlnet_img2img.py339except NotImplementedError:CODE
HIGHtests/pipelines/controlnet/test_controlnet_inpaint.py415except NotImplementedError:CODE
HIGHtests/pipelines/controlnet/test_controlnet.py358except NotImplementedError:CODE
HIGHtests/pipelines/controlnet/test_controlnet.py546except NotImplementedError:CODE
HIGH…s/models/transformers/test_models_transformer_flux2.py693except RuntimeError:CODE
HIGHutils/print_env.py39except ImportError:CODE
HIGHutils/consolidated_test_report.py77except ValueError:CODE
HIGHutils/consolidated_test_report.py170except Exception:CODE
HIGHutils/consolidated_test_report.py128except ValueError:CODE
HIGH…ples/reinforcement_learning/run_diffuser_locomotion.py56except KeyboardInterrupt:CODE
HIGHexamples/server-async/serverasync.py76except asyncio.CancelledError:CODE
HIGHexamples/server-async/utils/requestscopedpipeline.py161except Exception:CODE
HIGHexamples/server-async/utils/utils.py28except Exception:CODE
HIGHscripts/convert_rae_to_diffusers.py279except Exception:CODE
HIGHsrc/diffusers/experimental/rl/value_guided_sampling.py60except: # noqa: E722CODE
HIGHsrc/diffusers/experimental/rl/value_guided_sampling.py66except: # noqa: E722CODE
HIGHsrc/diffusers/modular_pipelines/modular_pipeline.py2305except ValueError:CODE
HIGHsrc/diffusers/pipelines/onnx_utils.py112except shutil.SameFileError:CODE
HIGHsrc/diffusers/pipelines/onnx_utils.py121except shutil.SameFileError:CODE
HIGHsrc/diffusers/pipelines/pipeline_utils.py1147except ValueError:CODE
HIGHsrc/diffusers/pipelines/pipeline_utils.py2274except RuntimeError:CODE
HIGHsrc/diffusers/pipelines/glm_image/__init__.py26except ImportError:CODE
HIGHsrc/diffusers/pipelines/prx/__init__.py49except ImportError:CODE
HIGHsrc/diffusers/utils/loading_utils.py119except EOFError:CODE
HIGHsrc/diffusers/utils/import_utils.py135except importlib_metadata.PackageNotFoundError:CODE
HIGHsrc/diffusers/utils/import_utils.py155except importlib_metadata.PackageNotFoundError:CODE
HIGHsrc/diffusers/utils/import_utils.py80except Exception as _:CODE
HIGHsrc/diffusers/utils/torch_utils.py141except ValueError:CODE
HIGHsrc/diffusers/models/modeling_utils.py148except ValueError:CODE
HIGHsrc/diffusers/models/modeling_utils.py1602except RuntimeError:CODE
HIGHsrc/diffusers/commands/env.py132except FileNotFoundError:CODE
HIGHsrc/diffusers/commands/env.py155except FileNotFoundError:CODE
Slop Phrases94 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/pipelines/test_pipelines_auto.py305 # make sure you can use pag with inpaint-specific pipelineCOMMENT
LOW⚡tests/pipelines/test_pipelines_auto.py305 # make sure you can use pag with inpaint-specific pipelineCOMMENT
LOWutils/release.py128# print("Cleaning main README, don't forget to run `make fix-copies`.")COMMENT
LOWutils/release.py128# print("Cleaning main README, don't forget to run `make fix-copies`.")COMMENT
LOWutils/release.py148# print("Cleaning main README, don't forget to run `make fix-copies`.")COMMENT
LOWutils/release.py148# print("Cleaning main README, don't forget to run `make fix-copies`.")COMMENT
LOW…/unconditional_image_generation/train_unconditional.py331 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOWexamples/instruct_pix2pix/train_instruct_pix2pix.py560 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py616 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…amples/cogvideo/train_cogvideox_image_to_video_lora.py1119 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/cogvideo/train_cogvideox_lora.py1140 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/flux-control/train_control_lora_flux.py912 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/flux-control/train_control_flux.py836 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…andinsky2_2/text_to_image/train_text_to_image_prior.py552 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…dinsky2_2/text_to_image/train_text_to_image_decoder.py559 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…/unconditional_image_generation/train_unconditional.py322 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…jects/onnxruntime/text_to_image/train_text_to_image.py549 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1020 # make sure to remove all keys > 22COMMENT
LOWexamples/research_projects/realfill/train_realfill.py654 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py651 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…/wuerstchen/text_to_image/train_text_to_image_prior.py551 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…stchen/text_to_image/train_text_to_image_lora_prior.py565 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…/research_projects/sana/train_sana_sprint_diffusers.py1151 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…s/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py771 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…jects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py664 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…ber_loss_training/text_to_image/train_text_to_image.py676 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…oss_training/text_to_image/train_text_to_image_sdxl.py780 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…raining/text_to_image/train_text_to_image_lora_sdxl.py724 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…led_huber_loss_training/dreambooth/train_dreambooth.py1003 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…uber_loss_training/dreambooth/train_dreambooth_lora.py1000 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…loss_training/dreambooth/train_dreambooth_lora_sdxl.py1311 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…research_projects/pixart/train_pixart_controlnet_hf.py679 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/research_projects/lpl/train_sdxl_lpl.py882 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…ects/consistency_training/train_cm_ct_unconditional.py963 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…npainting/train_multi_subject_dreambooth_inpainting.py498 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…rch_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py703 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…research_projects/diffusion_dpo/train_diffusion_dpo.py605 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py746 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…a_quantization/train_dreambooth_lora_flux_miniature.py737 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/cogview4-control/train_control_cogview4.py846 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…fusion_training/train_dreambooth_lora_sd15_advanced.py1350 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…fusion_training/train_dreambooth_lora_flux_advanced.py1626 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…fusion_training/train_dreambooth_lora_sdxl_advanced.py1670 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOWexamples/amused/train_amused.py531 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…s/consistency_distillation/train_lcm_distill_sd_wds.py1003 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…onsistency_distillation/train_lcm_distill_lora_sdxl.py897 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…sistency_distillation/train_lcm_distill_lora_sd_wds.py1055 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…stency_distillation/train_lcm_distill_lora_sdxl_wds.py1070 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOW…consistency_distillation/train_lcm_distill_sdxl_wds.py1063 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOWexamples/text_to_image/train_text_to_image_lora.py726 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/text_to_image/train_text_to_image.py669 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/text_to_image/train_text_to_image_sdxl.py766 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/text_to_image/train_text_to_image_lora_sdxl.py750 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/dreambooth/train_dreambooth_lora_flux2.py1353 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…ples/dreambooth/train_dreambooth_lora_flux2_img2img.py1303 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…reambooth/train_dreambooth_lora_flux2_klein_img2img.py1297 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…mples/dreambooth/train_dreambooth_lora_flux_kontext.py1500 # make sure to pop weight so that corresponding model is not saved againSTRING
LOWexamples/dreambooth/train_dreambooth_lora_hidream.py1192 # make sure to pop weight so that corresponding model is not saved againSTRING
LOW…reambooth/train_dreambooth_lora_qwenimage21_img2img.py1448 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOWexamples/dreambooth/train_dreambooth.py960 # make sure to pop weight so that corresponding model is not saved againCOMMENT
34 more matches not shown…
Redundant / Tautological Comments88 hits · 88 pts
SeverityFileLineSnippetContext
LOWtests/modular_pipelines/testing_utils/common.py323 # Check if cosine similarity is NaN (which can happen if vectors are zero or very small)COMMENT
LOWtests/pipelines/testing_utils/quantization.py601 # Check if inference works.STRING
LOWtests/pipelines/testing_utils/quantization.py881 # Check if inference works.STRING
LOWtests/models/unets/test_models_unet_2d_condition.py560 # Check if input and output shapes are the sameCOMMENT
LOWtests/models/testing_utils/attention.py338 # Check if model has attention processorsCOMMENT
LOWtests/models/testing_utils/quantization.py396 # Check if this module is in the exclusion listCOMMENT
LOWtests/models/testing_utils/quantization.py410 # Check if this module is NOT in the exclusion listCOMMENT
LOWtests/models/testing_utils/common.py669 # Check if the right number of shards existsCOMMENT
LOWtests/models/testing_utils/common.py705 # Check if the right number of shards existsCOMMENT
LOWtests/models/testing_utils/common.py746 # Check if the right number of shards existsCOMMENT
LOWutils/consolidated_test_report.py145 # Check if it's a short stack formatCOMMENT
LOWutils/consolidated_test_report.py733 # Check if we found any test resultsCOMMENT
LOWutils/check_inits.py100 # Check if the backend declaration is inside a try block:COMMENT
LOWutils/check_inits.py159 # Check if the backend declaration is inside a try block:COMMENT
LOWutils/custom_init_isort.py257 # Check if the block contains some `_import_structure`s thingy to sort.COMMENT
LOW…amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py813 # Set UNet to trainable.COMMENT
LOWexamples/controlnet/train_controlnet_flux.py1339 # Check if the gradient of each model parameter contains NaNSTRING
LOW…andinsky2_2/text_to_image/train_text_to_image_prior.py533 # Set prior to trainable.STRING
LOW…dinsky2_2/text_to_image/train_text_to_image_decoder.py528 # Set unet to trainable.STRING
LOW…cts/onnxruntime/textual_inversion/textual_inversion.py658 # Check if initializer_token is a single token or a sequence of tokensSTRING
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1463 # Check if we have a SDXL or SD model and initialize default pipelineCOMMENT
LOW…es/research_projects/ip_adapter/tutorial_train_plus.py135 # Check if 'latents' exists in both the saved state_dict and the current model's state_dictCOMMENT
LOW…es/research_projects/ip_adapter/tutorial_train_plus.py138 # Check if the shapes are mismatchedCOMMENT
LOW…es/research_projects/ip_adapter/tutorial_train_plus.py153 # Verify if the weights have changedCOMMENT
LOW…earch_projects/ip_adapter/tutorial_train_ip-adapter.py143 # Verify if the weights have changedCOMMENT
LOW…/research_projects/ip_adapter/tutorial_train_faceid.py141 # Verify if the weights have changedCOMMENT
LOW…es/research_projects/ip_adapter/tutorial_train_sdxl.py203 # Verify if the weights have changedCOMMENT
LOW…/intel_opts/textual_inversion_dfq/textual_inversion.py500 # Check if initializer_token is a single token or a sequence of tokensSTRING
LOW…intel_opts/textual_inversion/textual_inversion_bf16.py415 # Check if initializer_token is a single token or a sequence of tokensCOMMENT
LOW…ulti_token_textual_inversion/textual_inversion_flax.py396 # Check if initializer_token is a single token or a sequence of tokensCOMMENT
LOW…ffusion_training/test_dreambooth_lora_flux_advanced.py313 # Check if the metadata was properly serialized.STRING
LOWexamples/server-async/Pipelines.py73 # Check if model exists in PresetModelsCOMMENT
LOWexamples/custom_diffusion/train_custom_diffusion.py861 # Check if initializer_token is a single token or a sequence of tokensCOMMENT
LOW⚡examples/model_search/pipeline_easy.py434 # Check if the keyword is an HTTP or HTTPS URLSTRING
LOW⚡examples/model_search/pipeline_easy.py437 # Check if the keyword is a fileSTRING
LOW⚡examples/model_search/pipeline_easy.py443 # Check if the keyword is a directorySTRING
LOW⚡examples/model_search/pipeline_easy.py451 # Check if the keyword is a Civitai URLSTRING
LOW⚡examples/model_search/pipeline_easy.py457 # Check if the keyword starts with any valid URL prefixesSTRING
LOWexamples/model_search/pipeline_easy.py469 # Check if the keyword matches a Hugging Face repository formatSTRING
LOWexamples/model_search/pipeline_easy.py527 # Check if the file already exists at the save pathSTRING
LOWexamples/model_search/pipeline_easy.py538 # Open the file in the appropriate mode (write or append)STRING
LOWexamples/model_search/pipeline_easy.py850 # Check if the file passes security scans and has a valid extensionSTRING
LOWexamples/model_search/pipeline_easy.py1030 # Check if tokenizer and text encoder are providedSTRING
LOWexamples/model_search/pipeline_easy.py1047 # Check if token is already in tokenizer vocabularySTRING
LOWexamples/textual_inversion/textual_inversion.py685 # Check if initializer_token is a single token or a sequence of tokensSTRING
LOWexamples/textual_inversion/textual_inversion_sdxl.py693 # Check if initializer_token is a single token or a sequence of tokensSTRING
LOWexamples/textual_inversion/textual_inversion_flax.py409 # Check if initializer_token is a single token or a sequence of tokensCOMMENT
LOWexamples/dreambooth/test_dreambooth_lora_qwenimage.py234 # Check if the metadata was properly serialized.STRING
LOWexamples/dreambooth/test_dreambooth_lora_qwenimage21.py297 # Check if the metadata was properly serialized.STRING
LOW…dreambooth/test_dreambooth_lora_qwenimage21_img2img.py138 # Check if the metadata was properly serialized.STRING
LOWexamples/dreambooth/test_dreambooth_lora_flux2_klein.py248 # Check if the metadata was properly serialized.STRING
LOWexamples/dreambooth/test_dreambooth_lora_flux2.py247 # Check if the metadata was properly serialized.STRING
LOWexamples/dreambooth/test_dreambooth_lora_sana.py233 # Check if the metadata was properly serialized.STRING
LOWexamples/dreambooth/test_dreambooth_lora_flux.py266 # Check if the metadata was properly serialized.STRING
LOW…amples/dreambooth/test_dreambooth_lora_flux_kontext.py266 # Check if the metadata was properly serialized.STRING
LOW…unity/pipeline_stable_diffusion_xl_attentive_eraser.py116 >>> prompt = "" # Set prompt to nullCODE
LOWexamples/community/dps_pipeline.py345 # Assign weight to each pixel in the field of view. A matrix whose horizontal dim is the output pixeSTRING
LOWexamples/community/marigold_depth_estimation.py184 # Check if denoising step is reasonableCOMMENT
LOWsrc/diffusers/image_processor.py1457 # Check if resizing is neededSTRING
LOWsrc/diffusers/video_processor.py155 # Check if resizing is neededSTRING
28 more matches not shown…
Modern Structural Boilerplate94 hits · 84 pts
SeverityFileLineSnippetContext
LOWtests/modular_pipelines/testing_utils/__init__.py19__all__ = [CODE
LOWtests/pipelines/testing_utils/__init__.py21__all__ = [CODE
LOW⚡tests/models/testing_utils/attention.py32logger = logging.getLogger(__name__)CODE
LOWtests/models/testing_utils/__init__.py59__all__ = [CODE
LOWutils/remind_link_issue.py47logger = logging.getLogger(__name__)CODE
LOWutils/fetch_torch_cuda_pipeline_test_matrix.py26logger = logging.getLogger(__name__)CODE
LOWexamples/controlnet/train_controlnet_flax.py66logger = logging.getLogger(__name__)CODE
LOW…ulti_token_textual_inversion/textual_inversion_flax.py61logger = logging.getLogger(__name__)CODE
LOWexamples/cosmos/train_cosmos_predict25_lora.py316 def _setup_caption_format(self) -> None:CODE
LOWexamples/server/server.py19logger = logging.getLogger(__name__)CODE
LOWexamples/server-async/Pipelines.py12logger = logging.getLogger(__name__)CODE
LOWexamples/server-async/utils/utils.py10logger = logging.getLogger(__name__)CODE
LOWexamples/profiling/profiling_utils.py13logger = logging.getLogger(__name__)CODE
LOWexamples/profiling/profiling_pipelines.py26logger = logging.getLogger(__name__)CODE
LOWexamples/textual_inversion/textual_inversion_flax.py61logger = logging.getLogger(__name__)CODE
LOWexamples/text_to_image/train_text_to_image_flax.py54logger = logging.getLogger(__name__)CODE
LOWexamples/dreambooth/train_dreambooth_flax.py43logger = logging.getLogger(__name__)CODE
LOWbenchmarks/benchmarking_utils.py20logger = logging.getLogger(__name__)CODE
LOWbenchmarks/run_all.py10logger = logging.getLogger(__name__)CODE
LOWscripts/convert_ltx2_to_diffusers.py163def update_state_dict_inplace(state_dict: dict[str, Any], old_key: str, new_key: str) -> None:CODE
LOWscripts/convert_hunyuan_image_to_diffusers.py10logger = logging.getLogger(__name__) # pylint: disable=invalid-nameCODE
LOWscripts/convert_anyflow_to_diffusers.py51logger = logging.getLogger(__name__)CODE
LOWscripts/convert_flux2_to_diffusers.py383def update_state_dict(state_dict: Dict[str, Any], old_key: str, new_key: str) -> None:CODE
LOWsrc/diffusers/modular_pipelines/mellon_node_utils.py28logger = logging.getLogger(__name__)CODE
LOWsrc/diffusers/quantizers/nunchaku/utils.py334def _set_submodule(model: nn.Module, path: str, module: nn.Module) -> None:CODE
LOWsrc/diffusers/guiders/guider_utils.py100 def set_state(self, step: int, num_inference_steps: int, timestep: torch.LongTensor) -> None:CODE
LOW⚡src/diffusers/pipelines/pipeline_utils.py2030 def set_use_memory_efficient_attention_xformers(self, valid: bool, attention_op: Callable | None = None) -> None:STRING
LOWsrc/diffusers/pipelines/ddim/pipeline_ddim.py26logger = logging.getLogger(__name__)CODE
LOWsrc/diffusers/pipelines/llada2/pipeline_llada2.py563__all__ = ["LLaDA2Pipeline", "LLaDA2PipelineOutput"]CODE
LOW…/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py468__all__ = ["DiffusionGemmaPipeline", "DiffusionGemmaPipelineOutput"]CODE
LOWsrc/diffusers/utils/logging.py167def set_verbosity(verbosity: int) -> None:CODE
LOW⚡src/diffusers/utils/logging.py186def set_verbosity_info() -> None:CODE
LOW⚡src/diffusers/utils/logging.py191def set_verbosity_warning() -> None:CODE
LOW⚡src/diffusers/utils/logging.py196def set_verbosity_debug() -> None:CODE
LOW⚡src/diffusers/utils/logging.py201def set_verbosity_error() -> None:CODE
LOWsrc/diffusers/models/attention.py127 def set_processor(self, processor: AttentionProcessor) -> None:STRING
LOWsrc/diffusers/models/attention.py171 def set_use_npu_flash_attention(self, use_npu_flash_attention: bool) -> None:STRING
LOWsrc/diffusers/models/attention.py340 def set_attention_slice(self, slice_size: int) -> None:STRING
LOWsrc/diffusers/models/attention.py1551 def set_chunk_feed_forward(self, chunk_size: int | None, dim: int = 0) -> None:STRING
LOWsrc/diffusers/models/attention_processor.py344 def set_use_npu_flash_attention(self, use_npu_flash_attention: bool) -> None:STRING
LOWsrc/diffusers/models/attention_processor.py507 def set_attention_slice(self, slice_size: int) -> None:STRING
LOWsrc/diffusers/models/attention_processor.py535 def set_processor(self, processor: "AttnProcessor") -> None:STRING
LOW⚡src/diffusers/models/modeling_utils.py335 def set_use_npu_flash_attention(self, valid: bool) -> None:STRING
LOW⚡src/diffusers/models/modeling_utils.py394 def set_use_memory_efficient_attention_xformers(self, valid: bool, attention_op: Callable | None = None) -> None:STRING
LOWsrc/diffusers/models/modeling_utils.py608 def set_attention_backend(self, backend: str) -> None:STRING
LOWsrc/diffusers/models/unets/unet_motion_model.py1801 def set_default_attn_processor(self) -> None:STRING
LOWsrc/diffusers/models/unets/unet_3d_condition.py290 def set_attention_slice(self, slice_size: str | int | list[int]) -> None:STRING
LOWsrc/diffusers/models/unets/unet_dreamlite.py2032__all__ = [STRING
LOWsrc/diffusers/models/controlnets/controlnet.py537 def set_attention_slice(self, slice_size: str | int | list[int]) -> None:STRING
LOW…/diffusers/models/controlnets/controlnet_sparsectrl.py469 def set_attention_slice(self, slice_size: str | int | list[int]) -> None:STRING
LOWsrc/diffusers/models/controlnets/controlnet_union.py476 def set_attention_slice(self, slice_size: str | int | list[int]) -> None:STRING
LOWsrc/diffusers/hooks/hooks.py50def _set_cache_context(module: torch.nn.Module, context: CacheContext | None) -> None:CODE
LOWsrc/diffusers/hooks/hooks.py85 def set_context(self, context: CacheContext | None) -> None:CODE
LOWsrc/diffusers/commands/run.py414def _set_attention_backend(pipeline: Any, backend: str) -> None:CODE
LOWsrc/diffusers/loaders/peft.py555 def set_adapter(self, adapter_name: str | list[str]) -> None:STRING
LOWsrc/diffusers/loaders/lora_base.py954 def set_lora_device(self, adapter_names: list[str], device: torch.device | str | int) -> None:STRING
LOWsrc/diffusers/loaders/single_file_utils.py3973 def update_state_dict(state_dict: dict[str, object], old_key: str, new_key: str) -> None:STRING
LOWsrc/diffusers/loaders/single_file_utils.py4033 def update_state_dict(state_dict: dict[str, object], old_key: str, new_key: str) -> None:STRING
LOWsrc/diffusers/loaders/single_file_utils.py4097 def update_state_dict_inplace(state_dict, old_key: str, new_key: str) -> None:STRING
LOWsrc/diffusers/loaders/single_file_utils.py4176 def update_state_dict_inplace(state_dict, old_key: str, new_key: str) -> None:STRING
34 more matches not shown…
Magic Placeholder Names10 hits · 75 pts
SeverityFileLineSnippetContext
HIGHexamples/dreambooth/README_qwen.md109* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_flux2.md261* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_lumina2.md109* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_flux.md121* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_sana.md109* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_sdxl.md102* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_qwenimage21.md113* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_hidream.md103* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_sd3.md108* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use itCOMMENT
HIGHexamples/dreambooth/README_z_image.md156* `report_to="wandb"` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use iCOMMENT
Structural Annotation Overuse51 hits · 68 pts
SeverityFileLineSnippetContext
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py268 # Step 1: Create an external model repo with custom code (requires trust_remote_code)COMMENT
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py283 # Step 2: Create a custom block that references the external repo.COMMENT
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py369 # Step 3: Load the pipeline from the saved directory.COMMENT
LOW⚡tests/pipelines/glm_image/test_glm_image.py168 # Step 1: Run with prompt only to get prior_token_ids from AR modelCOMMENT
LOW⚡tests/pipelines/glm_image/test_glm_image.py177 # Step 2: Run with both prompt and prior_token_ids — should not raiseCOMMENT
LOW⚡tests/models/testing_utils/quantization.py520 # Step 1: freeze all parametersCOMMENT
LOW⚡tests/models/testing_utils/quantization.py527 # Step 2: add adapters to attention layersCOMMENT
LOW⚡tests/models/testing_utils/quantization.py544 # Step 3: run forward and backward passCOMMENT
LOW⚡tests/models/testing_utils/quantization.py554 # Step 4: verify gradients are computedCOMMENT
LOW⚡tests/hooks/test_mag_cache.py128 # Step 0: Input 10.0 -> Output 40.0 (2 blocks * 2x each)COMMENT
LOW⚡tests/hooks/test_mag_cache.py134 # Step 1: Input 11.0.COMMENT
LOW⚡tests/hooks/test_mag_cache.py162 # Step 1: Should COMPUTE (44.0) not SKIP (41.0) because of retentionCOMMENT
LOW⚡tests/hooks/test_mag_cache.py181 # Step 0: Compute. Input 10.0 -> Output 20.0 (1 block * 2x)COMMENT
LOW⚡tests/hooks/test_mag_cache.py188 # Step 1: Skip. Input 11.0.COMMENT
LOWexamples/research_projects/ip_adapter/README.md194 # Step 1: Project the image featuresCOMMENT
LOWexamples/research_projects/ip_adapter/README.md197 # Step 2: Pass the projected features through the IP AdapterCOMMENT
LOWexamples/profiling/README.md124### Step 3: Known Sync Issues to ValidateCOMMENT
LOW⚡examples/community/README.md1341# Step 1: Resize input image for CLIPSeg (224x224)STRING
LOW⚡examples/community/README.md1344# Step 2: Generate segmentation maskSTRING
LOW⚡examples/community/README.md1354# Step 3: Resize input image for Stable DiffusionSTRING
LOW⚡examples/community/README.md1357# Step 4: Run inpainting with Stable DiffusionSTRING
LOWexamples/community/checkpoint_merger.py124 # Step 1: Load the model config and compare the checkpoints. We'll compare the model_index.json first while ignoCOMMENT
LOWexamples/community/checkpoint_merger.py144 # Step 2: Basic Validation has succeeded. Let's download the models and save them into our local files.COMMENT
LOWscripts/convert_dcae_to_diffusers.py31 # NOTE: The below two lines work because scales in the available configs only have a tuple length of 1COMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py139 # Step 1: Collect model inputsCOMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py147 # Step 2: Update guider stateCOMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py150 # Step 3: Prepare batched inputsCOMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py153 # Step 4: Run denoiser for each batchCOMMENT
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py172 # Step 5: Combine predictionsCOMMENT
LOW…c/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py795 # Step 0: include ref tokens, extract KV cacheSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py741 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py750 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py753 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py763 # Step 4: Run the denoiser for each batchSTRING
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py790 # Step 5: Combine predictions using the guidance methodSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py864 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py873 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py876 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py886 # Step 4: Run the denoiser for each batchSTRING
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py914 # Step 5: Combine predictions using the guidance methodSTRING
LOW⚡…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py656 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py663 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py666 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py677 # Step 4: Run the denoiser for each batchSTRING
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py704 # Step 5: Combine predictions using the guidance methodSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py764 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py773 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py776 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py786 # Step 4: Run the denoiser for each batchSTRING
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py814 # Step 5: Combine predictions using the guidance methodSTRING
LOWsrc/diffusers/loaders/single_file_utils.py2633 # NOTE: The below two lines work because scales in the available configs only have a tuple length of 1COMMENT
Verbosity Indicators43 hits · 58 pts
SeverityFileLineSnippetContext
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py268 # Step 1: Create an external model repo with custom code (requires trust_remote_code)COMMENT
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py283 # Step 2: Create a custom block that references the external repo.COMMENT
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py369 # Step 3: Load the pipeline from the saved directory.COMMENT
LOW⚡tests/pipelines/glm_image/test_glm_image.py168 # Step 1: Run with prompt only to get prior_token_ids from AR modelCOMMENT
LOW⚡tests/pipelines/glm_image/test_glm_image.py177 # Step 2: Run with both prompt and prior_token_ids — should not raiseCOMMENT
LOW⚡tests/models/testing_utils/quantization.py520 # Step 1: freeze all parametersCOMMENT
LOW⚡tests/models/testing_utils/quantization.py527 # Step 2: add adapters to attention layersCOMMENT
LOW⚡tests/models/testing_utils/quantization.py544 # Step 3: run forward and backward passCOMMENT
LOW⚡tests/models/testing_utils/quantization.py554 # Step 4: verify gradients are computedCOMMENT
LOW⚡tests/hooks/test_mag_cache.py128 # Step 0: Input 10.0 -> Output 40.0 (2 blocks * 2x each)COMMENT
LOW⚡tests/hooks/test_mag_cache.py134 # Step 1: Input 11.0.COMMENT
LOW⚡tests/hooks/test_mag_cache.py162 # Step 1: Should COMPUTE (44.0) not SKIP (41.0) because of retentionCOMMENT
LOW⚡tests/hooks/test_mag_cache.py181 # Step 0: Compute. Input 10.0 -> Output 20.0 (1 block * 2x)COMMENT
LOW⚡tests/hooks/test_mag_cache.py188 # Step 1: Skip. Input 11.0.COMMENT
LOWexamples/community/checkpoint_merger.py124 # Step 1: Load the model config and compare the checkpoints. We'll compare the model_index.json first while ignoCOMMENT
LOWexamples/community/checkpoint_merger.py144 # Step 2: Basic Validation has succeeded. Let's download the models and save them into our local files.COMMENT
LOWexamples/community/checkpoint_merger.py176 # Step 3:-COMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py139 # Step 1: Collect model inputsCOMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py147 # Step 2: Update guider stateCOMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py150 # Step 3: Prepare batched inputsCOMMENT
LOW⚡…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py153 # Step 4: Run denoiser for each batchCOMMENT
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py172 # Step 5: Combine predictionsCOMMENT
LOW…c/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py795 # Step 0: include ref tokens, extract KV cacheSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py741 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py750 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py753 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW⚡…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py763 # Step 4: Run the denoiser for each batchSTRING
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py790 # Step 5: Combine predictions using the guidance methodSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py864 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py873 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py876 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW⚡…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py886 # Step 4: Run the denoiser for each batchSTRING
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py914 # Step 5: Combine predictions using the guidance methodSTRING
LOW⚡…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py656 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py663 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py666 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py677 # Step 4: Run the denoiser for each batchSTRING
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py704 # Step 5: Combine predictions using the guidance methodSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py764 # Step 1: Collect model inputs needed for the guidance methodSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py773 # Step 2: Update guider's internal state for this denoising stepSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py776 # Step 3: Prepare batched model inputs based on the guidance methodSTRING
LOW⚡…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py786 # Step 4: Run the denoiser for each batchSTRING
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py814 # Step 5: Combine predictions using the guidance methodSTRING
AI Slop Vocabulary41 hits · 52 pts
SeverityFileLineSnippetContext
LOWtests/single_file/single_file_testing_utils.py212 # we just pass it in here otherwise this test will failCOMMENT
LOWtests/single_file/single_file_testing_utils.py232 # we just pass it in here otherwise this test will failCOMMENT
LOWtests/single_file/single_file_testing_utils.py400 # we just pass it in here otherwise this test will failCOMMENT
LOWtests/single_file/single_file_testing_utils.py421 # we just pass it in here otherwise this test will failCOMMENT
LOW⚡…pelines/ltx2/test_pipeline_ltx2_dfr_temporal_refine.py95 # would run to completion and just return a softer canvas.COMMENT
LOWutils/consolidated_test_report.py171 pass # If we can't read the line file, just use what we haveCODE
MEDIUMutils/consolidated_test_report.py351 """Generate a comprehensive markdown report from consolidated data."""STRING
LOWutils/check_inits.py71 # If this is a traditional init, just return.COMMENT
LOW…uber_loss_training/dreambooth/train_dreambooth_lora.py912 # IF does not have a VAE so let's just set it to NoneCOMMENT
LOWexamples/research_projects/lpl/train_sdxl_lpl.py1342 # If no SNR weighting, just use meanSTRING
MEDIUMexamples/research_projects/sdxl_flax/sdxl_single.py1# Show best practices for SDXL JAXCOMMENT
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1718 if args.enable_t5_ti: # whether to do pivotal tuning/textual inversion for T5 as wellSTRING
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1753 else: # regular te training or regular pivotal for clipSTRING
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1757 # pivotal tuning of clip & t5STRING
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1769 else: # regular pivotal tuning of clip & t5STRING
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py2116 elif args.train_text_encoder_ti: # textual inversion / pivotal tuningSTRING
MEDIUM…ffusion_training/test_dreambooth_lora_flux_advanced.py146 # when performing pivotal tuning, all the parameters in the state dict should startSTRING
MEDIUM…ffusion_training/test_dreambooth_lora_flux_advanced.py189 # when performing pivotal tuning, all the parameters in the state dict should startSTRING
LOWexamples/dreambooth/train_dreambooth_lora_flux2.py1259 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOW…ples/dreambooth/train_dreambooth_lora_flux2_img2img.py1209 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOW…reambooth/train_dreambooth_lora_flux2_klein_img2img.py1204 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOWexamples/dreambooth/train_dreambooth_lora_hidream.py1134 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOW…reambooth/train_dreambooth_lora_qwenimage21_img2img.py1393 # we never offload the transformer to CPU, so we can just use the accelerator deviceCOMMENT
LOWexamples/dreambooth/train_dreambooth_lora.py893 # IF does not have a VAE so let's just set it to NoneCOMMENT
LOWexamples/dreambooth/train_dreambooth_lora_z_image.py1248 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOWexamples/dreambooth/train_dreambooth_lora_ideogram4.py1390 # we never offload the transformer to CPU, so we can just use the accelerator device.STRING
LOW…amples/dreambooth/train_dreambooth_lora_flux2_klein.py1263 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOW…amples/dreambooth/train_dreambooth_lora_qwenimage21.py1302 # we never offload the transformer to CPU, so we can just use the accelerator deviceCOMMENT
LOWexamples/dreambooth/train_dreambooth_lora_krea2.py1328 # we never offload the transformer to CPU, so we can just use the accelerator deviceSTRING
LOWexamples/dreambooth/train_dreambooth_lora_qwen_image.py1260 # we never offload the transformer to CPU, so we can just use the accelerator deviceCOMMENT
MEDIUM⚡scripts/convert_diffusers_sdxl_lora_to_webui.py13# Dreambooth Advanced Training Script - state of the art techniques such as pivotal tuning and prodigy optimizer:COMMENT
MEDIUMsrc/diffusers/modular_pipelines/components_manager.py815 """Get comprehensive information about a component.STRING
LOWsrc/diffusers/modular_pipelines/modular_pipeline.py2232 # if it is not set yet, just set it and skip the process to check and warn belowCOMMENT
LOW…rs/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py1472 # Euler step for any other scheduler, so an unchecked component here would run to completion and just returnSTRING
MEDIUMsrc/diffusers/pipelines/prx/pipeline_prx.py129 """Clean text using comprehensive text processing logic."""STRING
MEDIUMsrc/diffusers/utils/state_dict_utils.py155 # This is not a comprehensive dict as kohya format requires replacing `.` with `_` in keys,COMMENT
LOWsrc/diffusers/models/attention_processor.py593 # here we simply pass along all tensors to the selected processor classSTRING
MEDIUMsrc/diffusers/models/modeling_utils.py513 # If users want to apply layerwise casting on peft layers as well, they can utilize theSTRING
LOWsrc/diffusers/models/autoencoders/vae.py634 inds[inds >= self.used.shape[0]] = 0 # simply set to zeroCODE
MEDIUMsrc/diffusers/loaders/lora_conversion_utils.py358 # not utilize it yet.COMMENT
LOW…fusers/schedulers/scheduling_ltx_euler_ancestral_rf.py359 # Already at the end; simply return the current sample.COMMENT
Hallucination Indicators7 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALutils/check_repo.py667 model_types = list(diffusers.models.auto.configuration_auto.MODEL_NAMES_MAPPING.keys())CODE
CRITICALsrc/diffusers/models/lora.py124 w_up = self.lora_linear_layer.up.weight.data.float()CODE
CRITICALsrc/diffusers/models/lora.py125 w_down = self.lora_linear_layer.down.weight.data.float()CODE
CRITICALsrc/diffusers/models/lora.py322 w_up = self.lora_layer.up.weight.data.float()STRING
CRITICALsrc/diffusers/models/lora.py323 w_down = self.lora_layer.down.weight.data.float()STRING
CRITICALsrc/diffusers/models/lora.py408 w_up = self.lora_layer.up.weight.data.float()STRING
CRITICALsrc/diffusers/models/lora.py409 w_down = self.lora_layer.down.weight.data.float()STRING
Modern AI Meta-Vocabulary8 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMCONTRIBUTING.md16> If you use an AI agent to contribute, make sure you read the [AI-assisted and agentic contributions](#ai-assisted-and-CODE
MEDIUMCONTRIBUTING.md611### AI-assisted and agentic contributionsCOMMENT
MEDIUMdocs/source/en/conceptual/contribution.md16> If you use an AI agent to contribute, make sure you read the [AI-assisted and agentic contributions](#ai-assisted-and-CODE
MEDIUMdocs/source/en/conceptual/contribution.md611### AI-assisted and agentic contributionsCOMMENT
MEDIUMscripts/convert_original_audioldm2_to_diffusers.py637 # extract state dict for CLAP text embedding model, discarding the audio componentCOMMENT
MEDIUMscripts/convert_original_audioldm_to_diffusers.py612 # extract state dict for CLAP text embedding model, discarding the audio componentCOMMENT
MEDIUMscripts/convert_original_musicldm_to_diffusers.py617 # extract state dict for CLAP text embedding model, discarding the audio componentCOMMENT
MEDIUMsrc/diffusers/pipelines/dreamlite/pipeline_dreamlite.py215 # (system + chat-template scaffolding) that must be dropped from the encoder hidden states so the cross-STRING
Cross-Language Confusion5 hits · 18 pts
SeverityFileLineSnippetContext
HIGHsetup.py51 python setup.py bdist_wheel && python setup.py sdistSTRING
HIGHsetup.py64 pip install diffusers && pip uninstall diffusersSTRING
HIGHtests/pipelines/testing_utils/quantization.py404 "llm_int8_skip_modules": null,CODE
HIGHutils/label_issues.py43Example: {"labels": ["bug", "models", "needs-code-example"], "model_name": null}CODE
HIGHsrc/diffusers/pipelines/ace_step/pipeline_ace_step.py1181 # Batched guidance: stack (cond, null) on batch dim and run the DiT once.STRING
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…research_projects/pixart/train_pixart_controlnet_hf.py686CODE
MEDIUM…rs/modular_pipelines/z_image/modular_blocks_z_image.py260CODE
MEDIUM…rs/modular_pipelines/z_image/modular_blocks_z_image.py261CODE
MEDIUM…rs/modular_pipelines/z_image/modular_blocks_z_image.py262CODE
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/profiling/run_profiling.sh4# Usage:COMMENT
LOWscripts/convert_longcat_audio_dit_to_diffusers.py16# Usage:COMMENT
LOWscripts/convert_minimax_music3_to_diffusers.py9# Usage:COMMENT
LOWscripts/convert_ace_step_to_diffusers.py3# Usage:COMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…_gligen/pipeline_stable_diffusion_gligen_text_image.py144 ... "placeholder",CODE
LOW…elines/deprecated/unidiffuser/modeling_text_decoder.py153 dummy_token = self.get_dummy_token(input_ids.shape[0], input_ids.device)CODE
LOW…elines/deprecated/unidiffuser/modeling_text_decoder.py154 labels = torch.cat((dummy_token, input_ids), dim=1)CODE
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/diffusers/modular_pipelines/flux/inputs.py104 # TODO: consider adding negative embeddings?COMMENT
LOWsrc/diffusers/models/transformers/transformer_ltx2.py1042 # TODO: consider implementing this as a utility and reuse in `connectors.py`.STRING