🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 9659 finding(s).
Are imports declared and package/API names verified? 2637 finding(s).
Are wrappers, guards, and repeated structures necessary? 9016 finding(s).
Which changes need focused human review? 15476 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | docs/source/zh/conceptual/contribution.md | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | docs/source/ko/conceptual/contribution.md | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | docs/source/en/conceptual/contribution.md | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | …/pipelines/deprecated/alt_diffusion/pipeline_output.py | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | src/diffusers/pipelines/ledits_pp/pipeline_output.py | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | …iffusers/pipelines/stable_diffusion/pipeline_output.py | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | …eprecated/semantic_stable_diffusion/pipeline_output.py | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | …ble_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py | 0 | output class for stable diffusion pipelines. args: rgb (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im | STRING |
| HIGH | tests/testing_utils.py | 0 | helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando | STRING |
| HIGH | src/diffusers/utils/testing_utils.py | 0 | helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando | STRING |
| HIGH | src/diffusers/utils/torch_utils.py | 0 | helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando | STRING |
| HIGH | …fusion_xl/test_modular_pipeline_stable_diffusion_xl.py | 0 | tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as | STRING |
| HIGH | tests/pipelines/flux/testing_utils.py | 0 | tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as | STRING |
| HIGH | tests/pipelines/testing_utils/ip_adapter.py | 0 | tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as | STRING |
| HIGH | tests/pipelines/stable_unclip/test_stable_unclip.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …/pipelines/stable_unclip/test_stable_unclip_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/stable_audio_3/test_stable_audio_3.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …/stable_video_diffusion/test_stable_video_diffusion.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/mochi/test_mochi.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/helios/test_helios.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kolors/test_kolors.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kolors/test_kolors_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/omnigen/test_pipeline_omnigen.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kandinsky/test_kandinsky_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kandinsky/test_kandinsky.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kandinsky/test_kandinsky_combined.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kandinsky/test_kandinsky_prior.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/kandinsky/test_kandinsky_inpaint.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/motif_video/test_motif_video.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …ipelines/controlnet_sd3/test_controlnet_inpaint_sd3.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/controlnet_sd3/test_controlnet_sd3.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …s/pipelines/controlnet/test_controlnet_inpaint_sdxl.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/controlnet/test_controlnet_sdxl.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …s/pipelines/controlnet/test_controlnet_sdxl_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/controlnet/test_controlnet_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/controlnet/test_controlnet_inpaint.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/controlnet/test_controlnet.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx/test_ltx_condition.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx/test_ltx.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx/test_ltx_latent_upsample.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx/test_ltx_image2video.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …tency_models/test_latent_consistency_models_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …t_consistency_models/test_latent_consistency_models.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/chroma/test_pipeline_chroma_img2img.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/chroma/test_pipeline_chroma.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/animatediff/test_animatediff.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/animatediff/test_animatediff_sdxl.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …s/pipelines/animatediff/test_animatediff_sparsectrl.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …s/pipelines/animatediff/test_animatediff_controlnet.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …/pipelines/animatediff/test_animatediff_video2video.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | …animatediff/test_animatediff_video2video_controlnet.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx2/test_ltx2_hdr.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx2/test_ltx2_image2video.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx2/test_ltx2_in_context.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx2/test_ltx2.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ltx2/test_ltx2_condition.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/ddim/test_ddim.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/audioldm2/test_audioldm2.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| HIGH | tests/pipelines/anyflow/test_anyflow_far.py | 0 | memory tests (cpu offload, group offload, layerwise casting) for the sd controlnet pag inpaint pipeline. | STRING |
| 2380 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/testing_utils.py | 1539 | def backend_reset_peak_memory_stats(device: str): | CODE |
| LOW⚡ | tests/testing_utils.py | 1543 | def backend_reset_max_memory_allocated(device: str): | CODE |
| LOW⚡ | tests/testing_utils.py | 1548 | def backend_max_memory_allocated(device: str): | CODE |
| LOW⚡ | tests/testing_utils.py | 1554 | def backend_supports_training(device: str): | CODE |
| LOW | tests/testing_utils.py | 195 | def numpy_cosine_similarity_distance(a, b): | CODE |
| LOW | tests/testing_utils.py | 513 | def require_torch_version_greater_equal(torch_version): | CODE |
| LOW | tests/testing_utils.py | 526 | def require_torch_version_greater(torch_version): | CODE |
| LOW | tests/testing_utils.py | 543 | def require_torch_cuda_compatibility(expected_compute_capability): | CODE |
| LOW | tests/testing_utils.py | 557 | def require_torch_accelerator(test_case): | CODE |
| LOW | tests/testing_utils.py | 592 | def require_torch_multi_accelerator(test_case): | CODE |
| LOW | tests/testing_utils.py | 622 | def require_big_gpu_with_torch_cuda(test_case): | CODE |
| LOW | tests/testing_utils.py | 671 | def require_accelerator_memory(min_memory_gb: int): | CODE |
| LOW | tests/testing_utils.py | 693 | def require_torch_accelerator_with_training(test_case): | CODE |
| LOW | tests/testing_utils.py | 779 | def require_peft_version_greater(peft_version): | CODE |
| LOW | tests/testing_utils.py | 796 | def require_transformers_version_greater(transformers_version): | CODE |
| LOW | tests/testing_utils.py | 814 | def require_accelerate_version_greater(accelerate_version): | CODE |
| LOW | tests/testing_utils.py | 827 | def require_bitsandbytes_version_greater(bnb_version): | CODE |
| LOW | tests/testing_utils.py | 849 | def require_hf_hub_version_greater(hf_hub_version): | CODE |
| LOW | tests/testing_utils.py | 862 | def require_gguf_version_greater_or_equal(gguf_version): | CODE |
| LOW | tests/testing_utils.py | 874 | def require_torchao_version_greater_or_equal(torchao_version): | CODE |
| LOW | tests/testing_utils.py | 886 | def require_auto_round_version_greater_or_equal(auto_round_version): | CODE |
| LOW | tests/testing_utils.py | 899 | def require_kernels_version_greater_or_equal(kernels_version): | CODE |
| LOW | tests/testing_utils.py | 911 | def require_modelopt_version_greater_or_equal(modelopt_version): | CODE |
| LOW | tests/testing_utils.py | 921 | def deprecate_after_peft_backend(test_case): | CODE |
| LOW | tests/testing_utils.py | 1172 | def pytest_terminal_summary_main(tr, id): | CODE |
| LOW | tests/testing_utils.py | 1654 | def _get_expected_safetensors_files( | CODE |
| LOW | tests/testing_utils.py | 1737 | def _check_safetensors_serialization( | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 63 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 85 | def test_single_file_components(self): | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 98 | def test_single_file_components_local_files_only(self): | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 112 | def test_single_file_components_with_original_config(self): | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 121 | def test_single_file_components_with_original_config_local_files_only(self): | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 142 | def test_single_file_components_with_diffusers_config(self): | CODE |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 151 | def test_single_file_components_with_diffusers_config_local_files_only(self): | CODE |
| LOW | …ts/single_file/test_stable_diffusion_xl_single_file.py | 52 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | tests/single_file/test_model_vae_single_file.py | 52 | def test_single_file_inference_same_as_pretrained(self): | CODE |
| LOW | tests/single_file/test_model_vae_single_file.py | 71 | def test_single_file_arguments(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_upscale_single_file.py | 41 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_upscale_single_file.py | 75 | def test_single_file_components_with_original_config(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_upscale_single_file.py | 83 | def test_single_file_components_with_original_config_local_files_only(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 63 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 88 | def test_single_file_components(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 102 | def test_single_file_components_local_files_only(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 123 | def test_single_file_components_with_original_config(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 141 | def test_single_file_components_with_original_config_local_files_only(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 164 | def test_single_file_components_with_diffusers_config(self): | CODE |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 175 | def test_single_file_components_with_diffusers_config_local_files_only(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 61 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 72 | def test_single_file_components_with_original_config(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 76 | def test_single_file_components_with_original_config_local_files_only(self): | CODE |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 119 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …e_file/test_stable_diffusion_xl_img2img_single_file.py | 60 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …e_file/test_stable_diffusion_xl_img2img_single_file.py | 76 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 50 | def test_single_file_inference_same_as_pretrained(self): | CODE |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 67 | def test_single_file_in_type_variant_components(self): | CODE |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 86 | def test_single_file_mix_type_variant_components(self): | CODE |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 70 | def test_single_file_format_inference_is_same_as_pretrained(self): | CODE |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 89 | def test_single_file_components(self): | CODE |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 102 | def test_single_file_components_local_files_only(self): | CODE |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 117 | def test_single_file_components_with_original_config(self): | CODE |
| 4456 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | utils/check_forward_call_docstrings.py | 15 | Check that arguments of ``forward()`` (for models) and ``__call__()`` (for pipelines) match the method's docstring exac | STRING |
| HIGH | examples/research_projects/anytext/anytext.py | 1970 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …_projects/promptdiffusion/pipeline_prompt_diffusion.py | 938 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …ch_projects/pixart/pipeline_pixart_alpha_controlnet.py | 820 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_zero1to3.py | 624 | Function invoked when calling the pipeline for generation. Args: input_imgs (`PIL` or `Lis | STRING |
| HIGH | examples/community/mod_controlnet_tile_sr_sdxl.py | 1084 | Calculates the number of tiles needed to cover an image, choosing the appropriate formula based on the | STRING |
| HIGH | examples/community/mod_controlnet_tile_sr_sdxl.py | 1292 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …mmunity/stable_diffusion_controlnet_inpaint_img2img.py | 755 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …les/community/pipeline_flux_kontext_multiple_images.py | 851 | Function invoked when calling the pipeline for generation. Args: image (`torch.Tensor`, `P | STRING |
| HIGH | …munity/pipeline_stable_diffusion_3_instruct_pix2pix.py | 896 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …/community/stable_diffusion_xl_controlnet_reference.py | 375 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/mixture_tiling.py | 184 | Function to run the diffusion pipeline with tiling support. Args: prompt: either a single | STRING |
| HIGH | examples/community/pipeline_stg_hunyuan_video.py | 586 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/pipeline_flux_with_cfg.py | 632 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_stable_diffusion_xl_ipex.py | 759 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/stable_diffusion_repaint.py | 43 | Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be | STRING |
| HIGH | examples/community/stable_diffusion_repaint.py | 633 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str | STRING |
| HIGH | …/community/pipeline_hunyuandit_differential_img2img.py | 770 | The call function to the pipeline for generation with HunyuanDiT. Args: prompt (`str` or ` | STRING |
| HIGH | examples/community/pipeline_stable_diffusion_boxdiff.py | 1353 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/adaptive_mask_inpainting.py | 206 | Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be | STRING |
| HIGH | examples/community/adaptive_mask_inpainting.py | 884 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/fresco_v2v.py | 2082 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …line_stable_diffusion_xl_controlnet_adapter_inpaint.py | 175 | Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be | STRING |
| HIGH | …line_stable_diffusion_xl_controlnet_adapter_inpaint.py | 1240 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …ty/pipeline_stable_diffusion_3_differential_img2img.py | 699 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_demofusion_sdxl.py | 662 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/run_tensorrt_controlnet.py | 651 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_stg_ltx.py | 589 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_animatediff_ipex.py | 598 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …es/community/pipeline_faithdiff_stable_diffusion_xl.py | 1838 | Function invoked when calling the pipeline for generation. Args: lr_img (PipelineImageInpu | STRING |
| HIGH | examples/community/pipeline_stable_diffusion_pag.py | 1126 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opti | STRING |
| HIGH | examples/community/stable_diffusion_reference.py | 286 | Check the validity of the input arguments for the diffusion model. Args: prompt (Optional[ | STRING |
| HIGH | examples/community/stable_diffusion_reference.py | 849 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …unity/pipeline_stable_diffusion_xl_attentive_eraser.py | 326 | Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be | STRING |
| HIGH | …unity/pipeline_stable_diffusion_xl_attentive_eraser.py | 1660 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …les/community/stable_diffusion_controlnet_reference.py | 135 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/stable_diffusion_xl_reference.py | 317 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …les/community/pipeline_controlnet_xl_kolors_img2img.py | 995 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_controlnet_xl_kolors.py | 821 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …y/pipeline_stable_diffusion_xl_differential_img2img.py | 978 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/matryoshka.py | 4278 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …les/community/pipeline_z_image_differential_img2img.py | 477 | Function invoked when calling the pipeline for image-to-image generation. Args: prompt (`s | STRING |
| HIGH | examples/community/pipeline_stg_mochi.py | 592 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …s/community/pipeline_stable_diffusion_upscale_ldm3d.py | 533 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/rerender_a_video.py | 627 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …es/community/pipeline_stable_diffusion_xl_instantid.py | 586 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/lpw_stable_diffusion_xl.py | 1437 | Function invoked when calling the pipeline for generation. Args: prompt (`str`): | STRING |
| HIGH | examples/community/pipeline_kolors_inpainting.py | 123 | Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be | STRING |
| HIGH | examples/community/pipeline_kolors_inpainting.py | 1121 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/stable_diffusion_ipex.py | 583 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/mixture_tiling_sdxl.py | 803 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/gluegen.py | 607 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/instaflow_one_step.py | 522 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …mples/community/stable_diffusion_controlnet_inpaint.py | 767 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …ples/community/pipeline_kolors_differential_img2img.py | 819 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | examples/community/pipeline_fabric.py | 521 | The call function to the pipeline for generation. Generate a trajectory of images with binary feedback. The | STRING |
| HIGH | examples/community/pipeline_animatediff_controlnet.py | 777 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | examples/community/pipeline_flux_semantic_guidance.py | 825 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …nity/pipeline_stable_diffusion_xl_instandid_img2img.py | 590 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt | STRING |
| HIGH | …ples/community/pipline_flux_fill_controlnet_Inpaint.py | 865 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| 326 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 6 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 7 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 8 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 8 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 15 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 15 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 15 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 16 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 9 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 10 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 11 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 12 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 12 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 12 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 13 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 13 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 13 | CODE | |
| LOW | tests/pipelines/testing_utils/__init__.py | 13 | CODE | |
| LOW | tests/models/unets/test_unet_2d_blocks.py | 17 | CODE | |
| LOW | tests/models/transformers/_neuron_tp_worker.py | 46 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 1 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 2 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 17 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 17 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 18 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 19 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 20 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 21 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 21 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 22 | CODE | |
| LOW | tests/models/testing_utils/__init__.py | 22 | CODE | |
| 2552 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | setup.py | 161 | # | COMMENT |
| LOW | tests/conftest.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | …/single_file/test_model_wan_autoencoder_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/single_file/test_lumina2_transformer.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …single_file/test_model_flux_transformer_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/single_file/test_model_vae_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/single_file/test_model_controlnet_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …ingle_file/test_model_wan_transformer3d_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …/single_file/test_model_sd_cascade_unet_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …s/single_file/test_model_motion_adapter_single_file.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …sts/modular_pipelines/test_modular_pipeline_loading.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …/modular_pipelines/test_conditional_pipeline_blocks.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | tests/modular_pipelines/test_modular_pipeline_cache.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | tests/modular_pipelines/test_components_manager.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | tests/modular_pipelines/test_modular_model_card.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …dular_pipelines/helios/test_modular_pipeline_helios.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …s/wan_animate_2/test_modular_pipeline_wan_animate_2.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …sts/modular_pipelines/ltx/test_modular_pipeline_ltx.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …modular_pipelines/krea2/test_modular_pipeline_krea2.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …r_pipelines/krea2/test_modular_pipeline_krea2_turbo.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/echo/testing_utils.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …s/modular_pipelines/echo/test_modular_pipeline_echo.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …/modular_pipelines/ltx2/test_modular_pipeline_ltx25.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …s/modular_pipelines/ltx2/test_modular_pipeline_ltx2.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …s/modular_pipelines/flux/test_modular_pipeline_flux.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …modular_pipelines/flux2/test_modular_pipeline_flux2.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …r_pipelines/flux2/test_modular_pipeline_flux2_klein.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …elines/flux2/test_modular_pipeline_flux2_klein_base.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …modular_pipelines/anima/test_modular_pipeline_anima.py | 1 | # Copyright 2026 The HuggingFace Team. | COMMENT |
| LOW | …ular_pipelines/cosmos/test_modular_pipeline_cosmos3.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …ines/cosmos/test_modular_pipeline_cosmos3_distilled.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …ular_pipelines/qwen/test_modular_pipeline_qwenimage.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …minimax_music3/test_modular_pipeline_minimax_music3.py | 1 | # Copyright 2026 The HuggingFace Team. | COMMENT |
| LOW | …pelines/minimax_h3/test_modular_pipeline_minimax_h3.py | 1 | # Copyright 2026 The HuggingFace Team. | COMMENT |
| LOW | …odular_pipelines/wan/test_modular_pipeline_wan_vace.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …sts/modular_pipelines/wan/test_modular_pipeline_wan.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …lar_pipelines/z_image/test_modular_pipeline_z_image.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …iffusion_3/test_modular_pipeline_stable_diffusion_3.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …fusion_xl/test_modular_pipeline_stable_diffusion_xl.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/loading.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/guider.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/memory.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/common.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/utils.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/workflow.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/modular_pipelines/testing_utils/lora.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …uan_video1_5/test_modular_pipeline_hunyuan_video1_5.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …lines/ernie_image/test_modular_pipeline_ernie_image.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/others/test_utils.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/others/test_ema.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/others/test_hub_utils.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/others/test_dependencies.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | tests/others/test_check_copies.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | tests/others/test_check_dummies.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | tests/others/test_flashpack.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/others/test_training.py | 1 | # coding=utf-8 | COMMENT |
| LOW | tests/others/test_image_processor.py | 1 | # coding=utf-8 | COMMENT |
| 1461 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/testing_utils.py | 934 | CODE | |
| LOW | tests/testing_utils.py | 1172 | CODE | |
| LOW | tests/testing_utils.py | 1654 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/loading.py | 86 | CODE | |
| LOW | tests/modular_pipelines/testing_utils/common.py | 357 | CODE | |
| LOW | tests/others/test_dependencies.py | 25 | CODE | |
| LOW | tests/others/test_video_processor.py | 29 | CODE | |
| LOW | tests/others/test_video_processor.py | 74 | CODE | |
| LOW | …elines/ip_adapters/test_ip_adapter_stable_diffusion.py | 101 | CODE | |
| LOW | tests/pipelines/testing_utils/memory.py | 46 | CODE | |
| LOW | tests/pipelines/testing_utils/memory.py | 181 | CODE | |
| LOW | tests/pipelines/testing_utils/common.py | 610 | CODE | |
| LOW | tests/pipelines/testing_utils/common.py | 823 | CODE | |
| LOW | tests/models/test_modeling_common.py | 228 | CODE | |
| LOW | tests/models/test_attention_dispatch.py | 197 | CODE | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 74 | CODE | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 129 | CODE | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 229 | CODE | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 287 | CODE | |
| LOW | tests/models/testing_utils/memory.py | 322 | CODE | |
| LOW | tests/models/testing_utils/quantization.py | 322 | CODE | |
| LOW | tests/models/testing_utils/quantization.py | 374 | CODE | |
| LOW | tests/models/testing_utils/quantization.py | 960 | CODE | |
| LOW | tests/models/testing_utils/cache.py | 138 | CODE | |
| LOW | tests/models/testing_utils/common.py | 64 | CODE | |
| LOW | tests/models/testing_utils/parallelism.py | 313 | CODE | |
| LOW | tests/lora/utils.py | 1584 | CODE | |
| LOW | tests/schedulers/test_scheduler_dpm_single.py | 179 | CODE | |
| LOW | tests/schedulers/test_scheduler_dpm_single.py | 198 | CODE | |
| LOW | tests/schedulers/test_schedulers.py | 673 | CODE | |
| LOW | tests/schedulers/test_scheduler_dpm_multi_inverse.py | 146 | CODE | |
| LOW | tests/schedulers/test_scheduler_dpm_multi_inverse.py | 165 | CODE | |
| LOW | …s/schedulers/test_scheduler_edm_dpmsolver_multistep.py | 149 | CODE | |
| LOW | …s/schedulers/test_scheduler_edm_dpmsolver_multistep.py | 170 | CODE | |
| LOW | tests/schedulers/test_scheduler_deis.py | 168 | CODE | |
| LOW | tests/schedulers/test_scheduler_deis.py | 187 | CODE | |
| LOW | tests/schedulers/test_scheduler_dpm_multi.py | 180 | CODE | |
| LOW | tests/schedulers/test_scheduler_dpm_multi.py | 199 | CODE | |
| LOW | tests/schedulers/test_scheduler_unipc.py | 165 | CODE | |
| LOW | tests/schedulers/test_scheduler_unipc.py | 235 | CODE | |
| LOW | utils/label_issues.py | 72 | CODE | |
| LOW | utils/remind_link_issue.py | 204 | CODE | |
| LOW | utils/log_reports.py | 17 | CODE | |
| LOW | utils/consolidated_test_report.py | 24 | CODE | |
| LOW | utils/consolidated_test_report.py | 92 | CODE | |
| LOW | utils/consolidated_test_report.py | 136 | CODE | |
| LOW | utils/consolidated_test_report.py | 240 | CODE | |
| LOW | utils/consolidated_test_report.py | 350 | CODE | |
| LOW | utils/consolidated_test_report.py | 675 | CODE | |
| LOW | utils/consolidated_test_report.py | 724 | CODE | |
| LOW | utils/tests_fetcher.py | 235 | CODE | |
| LOW | utils/tests_fetcher.py | 310 | CODE | |
| LOW | utils/tests_fetcher.py | 560 | CODE | |
| LOW | utils/tests_fetcher.py | 729 | CODE | |
| LOW | utils/modular_auto_docstring.py | 118 | CODE | |
| LOW | utils/check_return_annotations.py | 136 | CODE | |
| LOW | utils/check_dummies.py | 67 | CODE | |
| LOW | utils/check_dummies.py | 132 | CODE | |
| LOW | utils/generate_model_tests.py | 206 | CODE | |
| LOW | utils/generate_model_tests.py | 312 | CODE | |
| 1394 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/modular_pipelines/test_modular_model_card.py | 37 | CODE | |
| LOW | tests/pipelines/testing_utils/quantization.py | 424 | CODE | |
| LOW | …amples/cogvideo/train_cogvideox_image_to_video_lora.py | 433 | CODE | |
| LOW | examples/cogvideo/train_cogvideox_lora.py | 417 | CODE | |
| LOW | …amples/research_projects/anytext/anytext_controlnet.py | 176 | CODE | |
| LOW | …amples/research_projects/anytext/anytext_controlnet.py | 258 | CODE | |
| LOW | examples/research_projects/anytext/anytext.py | 321 | CODE | |
| LOW | examples/research_projects/anytext/anytext.py | 1658 | CODE | |
| LOW | examples/research_projects/anytext/anytext.py | 1935 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RecSVTR.py | 20 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RecSVTR.py | 53 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RecSVTR.py | 128 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RecSVTR.py | 191 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RecSVTR.py | 362 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RNN.py | 102 | CODE | |
| LOW | examples/research_projects/anytext/ocr_recog/RNN.py | 106 | CODE | |
| LOW | …rch_projects/controlnet/train_controlnet_webdataset.py | 194 | CODE | |
| LOW | …cts/onnxruntime/textual_inversion/textual_inversion.py | 480 | CODE | |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1258 | CODE | |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1927 | CODE | |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1980 | CODE | |
| LOW | …_projects/promptdiffusion/pipeline_prompt_diffusion.py | 908 | CODE | |
| LOW | …_projects/promptdiffusion/promptdiffusioncontrolnet.py | 102 | CODE | |
| LOW | …_projects/promptdiffusion/promptdiffusioncontrolnet.py | 182 | CODE | |
| LOW | …led_huber_loss_training/dreambooth/train_dreambooth.py | 637 | CODE | |
| LOW | …uber_loss_training/dreambooth/train_dreambooth_lora.py | 577 | CODE | |
| LOW | examples/research_projects/rdm/retriever.py | 41 | CODE | |
| LOW | examples/research_projects/rdm/pipeline_rdm.py | 155 | CODE | |
| LOW | …es/research_projects/pixart/controlnet_pixart_alpha.py | 14 | CODE | |
| LOW | …es/research_projects/pixart/controlnet_pixart_alpha.py | 153 | CODE | |
| LOW | …ch_projects/pixart/pipeline_pixart_alpha_controlnet.py | 318 | CODE | |
| LOW | …ch_projects/pixart/pipeline_pixart_alpha_controlnet.py | 789 | CODE | |
| LOW | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 331 | CODE | |
| LOW | …intel_opts/textual_inversion/textual_inversion_bf16.py | 273 | CODE | |
| LOW | …cts/multi_token_textual_inversion/textual_inversion.py | 458 | CODE | |
| LOW | …ulti_token_textual_inversion/textual_inversion_flax.py | 243 | CODE | |
| LOW | …fusion_training/train_dreambooth_lora_sd15_advanced.py | 96 | CODE | |
| LOW | …fusion_training/train_dreambooth_lora_flux_advanced.py | 102 | CODE | |
| LOW | …fusion_training/train_dreambooth_lora_sdxl_advanced.py | 117 | CODE | |
| LOW | examples/server-async/serverasync.py | 125 | CODE | |
| LOW | examples/textual_inversion/textual_inversion.py | 508 | CODE | |
| LOW | examples/textual_inversion/textual_inversion_sdxl.py | 494 | CODE | |
| LOW | examples/textual_inversion/textual_inversion_flax.py | 256 | CODE | |
| LOW | examples/dreambooth/train_dreambooth_lora_flux2.py | 783 | CODE | |
| LOW | …mples/dreambooth/train_dreambooth_lora_flux_kontext.py | 787 | CODE | |
| LOW | …reambooth/train_dreambooth_lora_qwenimage21_img2img.py | 809 | CODE | |
| LOW | examples/dreambooth/train_dreambooth.py | 617 | CODE | |
| LOW | examples/dreambooth/train_dreambooth_lora.py | 578 | CODE | |
| LOW | examples/dreambooth/train_dreambooth_lora_z_image.py | 772 | CODE | |
| LOW | …amples/dreambooth/train_dreambooth_lora_flux2_klein.py | 788 | CODE | |
| LOW | …amples/dreambooth/train_dreambooth_lora_qwenimage21.py | 774 | CODE | |
| LOW | examples/dreambooth/train_dreambooth_lora_krea2.py | 850 | CODE | |
| LOW | examples/dreambooth/train_dreambooth_lora_qwen_image.py | 742 | CODE | |
| LOW | examples/community/pipeline_zero1to3.py | 600 | CODE | |
| LOW | examples/community/mod_controlnet_tile_sr_sdxl.py | 395 | CODE | |
| LOW | examples/community/mod_controlnet_tile_sr_sdxl.py | 1253 | CODE | |
| LOW | examples/community/pipeline_null_text_inversion.py | 194 | CODE | |
| LOW | …mmunity/stable_diffusion_controlnet_inpaint_img2img.py | 728 | CODE | |
| LOW | examples/community/stable_diffusion_comparison.py | 88 | CODE | |
| LOW | examples/community/stable_diffusion_comparison.py | 125 | CODE | |
| 1260 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/modular_pipelines/test_components_manager.py | 96 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/modular_pipelines/test_components_manager.py | 98 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/modular_pipelines/test_components_manager.py | 202 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/modular_pipelines/test_components_manager.py | 204 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/modular_pipelines/test_components_manager.py | 234 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/modular_pipelines/test_components_manager.py | 236 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/others/test_cli_commands.py | 182 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/others/test_cli_commands.py | 186 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pipelines/marigold/test_marigold_depth.py | 15 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pipelines/marigold/test_marigold_depth.py | 18 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pipelines/marigold/test_marigold_intrinsics.py | 15 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pipelines/marigold/test_marigold_intrinsics.py | 18 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pipelines/marigold/test_marigold_normals.py | 15 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pipelines/marigold/test_marigold_normals.py | 18 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/transformers/test_models_transformer_stable_audio3.py | 48 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/transformers/test_models_transformer_stable_audio3.py | 50 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …/transformers/test_models_transformer_stable_audio3.py | 219 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …/transformers/test_models_transformer_stable_audio3.py | 221 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ts/models/autoencoders/test_models_autoencoder_same.py | 36 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ts/models/autoencoders/test_models_autoencoder_same.py | 38 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 45 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 47 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 86 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 88 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/models/testing_utils/attention.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/models/testing_utils/attention.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 144 | # ── Experiment tracking (optional) ────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 152 | # ── Model ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 159 | # ── Training schedule ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 169 | # ── Data ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 186 | # ── Optimizer ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 195 | # ── Learning rate scheduler ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/source/en/training/nemo_automodel.md | 202 | # ── Flow matching ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 219 | # ── FSDP2 distributed training ────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 230 | # ── Checkpointing ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/source/en/api/pipelines/control_flux_inpaint.md | 47 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/source/en/api/pipelines/control_flux_inpaint.md | 57 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | …cts/onnxruntime/textual_inversion/textual_inversion.py | 79 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 46 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …intel_opts/textual_inversion/textual_inversion_bf16.py | 49 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …cts/multi_token_textual_inversion/textual_inversion.py | 74 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ulti_token_textual_inversion/textual_inversion_flax.py | 56 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/textual_inversion/textual_inversion.py | 81 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/textual_inversion/textual_inversion_sdxl.py | 76 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/textual_inversion/textual_inversion_flax.py | 56 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/cosmos3/cosmos_parallel.py | 107 | # ============================================================================= | COMMENT |
| MEDIUM | examples/cosmos3/cosmos_parallel.py | 109 | # ============================================================================= | COMMENT |
| MEDIUM | examples/cosmos3/cosmos_parallel.py | 349 | # ============================================================================= | COMMENT |
| MEDIUM | examples/cosmos3/cosmos_parallel.py | 351 | # ============================================================================= | COMMENT |
| MEDIUM | examples/cosmos3/cosmos_parallel.py | 405 | # ============================================================================= | COMMENT |
| MEDIUM | examples/cosmos3/cosmos_parallel.py | 407 | # ============================================================================= | COMMENT |
| MEDIUM | examples/community/lpw_stable_diffusion.py | 31 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/community/lpw_stable_diffusion_onnx.py | 54 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …line_stable_diffusion_xl_controlnet_adapter_inpaint.py | 1642 | # ---------------------------------------------------------------- | STRING |
| MEDIUM | examples/community/imagic_stable_diffusion.py | 46 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/community/README.md | 499 | # ------------------------------------------------ | COMMENT |
| MEDIUM | examples/community/README.md | 504 | # ------------------------------------------------- | COMMENT |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 1 | ## ---------------------------------------------------------- | COMMENT |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 7 | ## ----------------------------------------------------------- | COMMENT |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 467 | # ---------------------------------------------------------------------------------------------------------------------- | STRING |
| 373 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/others/test_check_dummies.py | 83 | expected_dummy_pytorch_file = """# This file is autogenerated by the command `make fix-copies`, do not edit. | STRING |
| MEDIUM | tests/pipelines/ace_step/test_ace_step.py | 144 | # Create a tiny Qwen3Model for testing (matching the real Qwen3-Embedding-0.6B architecture) | COMMENT |
| MEDIUM | tests/pipelines/sana_video/test_sana_video_i2v.py | 119 | # Create a dummy image input (PIL Image) | COMMENT |
| MEDIUM | …ines/visualcloze/test_pipeline_visualcloze_combined.py | 111 | # Create an image list that conforms to the VisualCloze input format | COMMENT |
| MEDIUM | …es/visualcloze/test_pipeline_visualcloze_generation.py | 113 | # Create an image list that conforms to the VisualCloze input format | COMMENT |
| MEDIUM | tests/models/testing_utils/attention.py | 370 | # Create a dict of new processors | COMMENT |
| MEDIUM | tests/models/testing_utils/attention.py | 392 | # Create a dict with wrong number of processors | COMMENT |
| MEDIUM | utils/consolidated_test_report.py | 503 | # Create a list of failing tests for each module | COMMENT |
| MEDIUM | utils/consolidated_test_report.py | 581 | # Create a more compact summary section | COMMENT |
| MEDIUM | utils/consolidated_test_report.py | 587 | # Create the test suites table in markdown format | COMMENT |
| MEDIUM | utils/consolidated_test_report.py | 621 | # Create the Slack payload with character limit enforcement | COMMENT |
| MEDIUM | utils/check_support_list.py | 68 | # Define the checks we need to perform | COMMENT |
| MEDIUM | utils/tests_fetcher.py | 938 | # Create the map that will give us all impacted modules. | COMMENT |
| MEDIUM | utils/tests_fetcher.py | 980 | # Create a map that maps test categories to test files, i.e. `models/bert` -> [...test_modeling_bert.py, ...] | COMMENT |
| MEDIUM | utils/check_dummies.py | 124 | dummy_file = "# This file is autogenerated by the command `make fix-copies`, do not edit.\n" | CODE |
| MEDIUM | examples/instruct_pix2pix/train_instruct_pix2pix.py | 1008 | # Create the pipeline using the trained modules and save it. | COMMENT |
| MEDIUM | …amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py | 1219 | # Create the pipeline using the trained modules and save it. | COMMENT |
| MEDIUM | examples/controlnet/train_controlnet_flux.py | 1399 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | examples/controlnet/train_controlnet_sdxl.py | 1343 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | examples/controlnet/train_controlnet.py | 1156 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | examples/controlnet/train_controlnet_sd3.py | 1434 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | examples/flux-control/train_control_lora_flux.py | 1111 | # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed. | STRING |
| MEDIUM | examples/flux-control/train_control_lora_flux.py | 1352 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | examples/flux-control/train_control_flux.py | 966 | # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed. | STRING |
| MEDIUM | examples/flux-control/train_control_flux.py | 1206 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | …andinsky2_2/text_to_image/train_text_to_image_prior.py | 913 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | …dinsky2_2/text_to_image/train_text_to_image_decoder.py | 893 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | examples/t2i_adapter/train_t2i_adapter_sdxl.py | 1301 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | examples/research_projects/gligen/train_gligen_text.py | 674 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …rch_projects/controlnet/train_controlnet_webdataset.py | 1445 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | …rojects/dreambooth_inpaint/train_dreambooth_inpaint.py | 791 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …cts/onnxruntime/textual_inversion/textual_inversion.py | 920 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | …jects/onnxruntime/text_to_image/train_text_to_image.py | 927 | # Create the pipeline using the trained modules and save it. | COMMENT |
| MEDIUM | …ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py | 1116 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | …/wuerstchen/text_to_image/train_text_to_image_prior.py | 886 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | …stchen/text_to_image/train_text_to_image_lora_prior.py | 903 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | …research_projects/autoencoderkl/train_autoencoderkl.py | 1023 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | …ber_loss_training/text_to_image/train_text_to_image.py | 1111 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | …led_huber_loss_training/dreambooth/train_dreambooth.py | 1463 | # Create the pipeline using the trained modules and save it. | COMMENT |
| MEDIUM | …i_subject_dreambooth/train_multi_subject_dreambooth.py | 1171 | # Create the pipeline using the trained modules and save it. | COMMENT |
| MEDIUM | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 935 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | …intel_opts/textual_inversion/textual_inversion_bf16.py | 612 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …cts/multi_token_textual_inversion/textual_inversion.py | 905 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …ulti_token_textual_inversion/textual_inversion_flax.py | 609 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …research_projects/sd3_lora_colab/compute_embeddings.py | 87 | # Create a DataFrame | COMMENT |
| MEDIUM | …_projects/flux_lora_quantization/compute_embeddings.py | 82 | # Create a DataFrame | COMMENT |
| MEDIUM | examples/cogview4-control/train_control_cogview4.py | 976 | # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed. | STRING |
| MEDIUM | examples/cogview4-control/train_control_cogview4.py | 1199 | # Create the pipeline using using the trained modules and save it. | STRING |
| MEDIUM | …s/consistency_distillation/train_lcm_distill_sd_wds.py | 1412 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …onsistency_distillation/train_lcm_distill_lora_sdxl.py | 1441 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …sistency_distillation/train_lcm_distill_lora_sd_wds.py | 1447 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …stency_distillation/train_lcm_distill_lora_sdxl_wds.py | 1510 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | …consistency_distillation/train_lcm_distill_sdxl_wds.py | 1515 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | examples/model_search/pipeline_easy.py | 785 | # Initialize additional variables with default values | STRING |
| MEDIUM | examples/textual_inversion/textual_inversion.py | 977 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | examples/textual_inversion/textual_inversion_sdxl.py | 1066 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | examples/textual_inversion/textual_inversion_flax.py | 636 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | examples/text_to_image/train_text_to_image.py | 1118 | # Create the pipeline using the trained modules and save it. | STRING |
| MEDIUM | examples/text_to_image/train_text_to_image_flax.py | 582 | # Create the pipeline using using the trained modules and save it. | COMMENT |
| MEDIUM | examples/dreambooth/train_dreambooth_flax.py | 630 | # Create the pipeline using the trained modules and save it. | COMMENT |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/testing_utils.py | 288 | def parse_flag_from_env(key, default=False): | CODE |
| LOW | tests/testing_utils.py | 1332 | except Exception as err: | CODE |
| LOW | tests/testing_utils.py | 1382 | except Exception as e: | CODE |
| LOW | tests/testing_utils.py | 1473 | except Exception as e: | CODE |
| LOW | tests/testing_utils.py | 1495 | except Exception as e: | CODE |
| LOW | tests/modular_pipelines/testing_utils/utils.py | 63 | except Exception: | CODE |
| LOW | tests/others/test_dependencies.py | 81 | except Exception: | CODE |
| LOW | tests/pipelines/test_pipelines.py | 135 | except Exception: | CODE |
| LOW | tests/pipelines/diffusion_gemma/test_diffusion_gemma.py | 89 | except Exception as e: # noqa: BLE001 - offline / hub errors should skip, not fail | CODE |
| MEDIUM | tests/pipelines/diffusion_gemma/test_diffusion_gemma.py | 81 | def _load_pipeline(): | CODE |
| LOW | tests/models/test_attention_dispatch.py | 106 | except Exception as e: | CODE |
| LOW | tests/models/test_attention_dispatch.py | 206 | except Exception as e: | CODE |
| LOW | tests/models/transformers/_neuron_tp_worker.py | 108 | except Exception: | CODE |
| LOW | tests/models/testing_utils/attention.py | 500 | except Exception as e: | CODE |
| LOW | tests/models/testing_utils/attention.py | 573 | except Exception as e: | CODE |
| LOW | tests/models/testing_utils/parallelism.py | 123 | except Exception as e: | CODE |
| LOW | tests/models/testing_utils/parallelism.py | 181 | except Exception as e: | CODE |
| LOW | tests/models/testing_utils/parallelism.py | 240 | except Exception as e: | CODE |
| LOW | tests/models/testing_utils/parallelism.py | 304 | except Exception as e: | CODE |
| LOW | tests/models/testing_utils/parallelism.py | 374 | except Exception as e: | CODE |
| LOW | utils/label_issues.py | 118 | except Exception: | CODE |
| MEDIUM | utils/label_issues.py | 86 | def main(): | CODE |
| LOW | utils/remind_link_issue.py | 127 | except Exception as e: | CODE |
| LOW | utils/remind_link_issue.py | 271 | except Exception as e: | CODE |
| LOW | utils/remind_link_issue.py | 274 | except Exception as e: | CODE |
| MEDIUM | utils/consolidated_test_report.py | 88 | print(f"Error parsing {file_path}: {e}") | CODE |
| MEDIUM | utils/consolidated_test_report.py | 131 | print(f"Error parsing durations file {file_path.replace('_stats.txt', '_durations.txt')}: {e}") | CODE |
| MEDIUM | utils/consolidated_test_report.py | 235 | print(f"Error parsing failures in {file_path}: {e}") | CODE |
| MEDIUM | utils/consolidated_test_report.py | 301 | print(f"Error parsing summary file: {e}") | CODE |
| MEDIUM | utils/consolidated_test_report.py | 727 | print(f"Error: Reports directory '{args.reports_dir}' does not exist.") | CODE |
| MEDIUM | utils/consolidated_test_report.py | 784 | print(f"Error sending report to Slack: {e}") | CODE |
| LOW | utils/consolidated_test_report.py | 87 | except Exception as e: | CODE |
| LOW | utils/consolidated_test_report.py | 130 | except Exception as e: | CODE |
| LOW | utils/consolidated_test_report.py | 170 | except Exception: | CODE |
| LOW | utils/consolidated_test_report.py | 234 | except Exception as e: | CODE |
| LOW | utils/consolidated_test_report.py | 300 | except Exception as e: | CODE |
| LOW | utils/consolidated_test_report.py | 783 | except Exception as e: | CODE |
| LOW | utils/tests_fetcher.py | 1115 | except Exception as e: | CODE |
| LOW | utils/modular_auto_docstring.py | 94 | except Exception as e: | CODE |
| LOW | utils/modular_auto_docstring.py | 112 | except Exception as e: | CODE |
| LOW | utils/modular_auto_docstring.py | 233 | except Exception as e: | CODE |
| MEDIUM⚡ | utils/generate_model_tests.py | 555 | print(f"Error: File not found: {args.model_filepath}", file=sys.stderr) | CODE |
| MEDIUM⚡ | utils/generate_model_tests.py | 561 | print(f"Error: No model classes found in {args.model_filepath}", file=sys.stderr) | CODE |
| MEDIUM⚡ | utils/generate_model_tests.py | 568 | print(f"Error: Class '{args.class_name}' not found. Available: {available}", file=sys.stderr) | CODE |
| LOW | utils/fetch_torch_cuda_pipeline_test_matrix.py | 69 | except Exception as e: | CODE |
| MEDIUM | utils/fetch_torch_cuda_pipeline_test_matrix.py | 66 | def fetch_pipeline_modules_to_test(): | CODE |
| LOW | docs/source/en/optimization/attention_backends.md | 126 | except Exception as e: | STRING |
| LOW | docs/source/en/using-diffusers/create_a_server.md | 48 | except Exception as e: | CODE |
| LOW | …rch_projects/controlnet/train_controlnet_webdataset.py | 189 | except Exception: | CODE |
| MEDIUM | …rch_projects/controlnet/train_controlnet_webdataset.py | 178 | def __call__(self, x): | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 867 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1007 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1636 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1722 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1762 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1770 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1792 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1837 | except Exception: | CODE |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1850 | except Exception: | CODE |
| LOW | …_xla/training/text_to_image/train_text_to_image_xla.py | 150 | except Exception as e: | STRING |
| 115 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/others/test_utils.py | 263 | except (AssertionError, RuntimeError): | CODE |
| HIGH | tests/others/test_dependencies.py | 81 | except Exception: | CODE |
| HIGH | tests/pipelines/controlnet/test_controlnet_img2img.py | 339 | except NotImplementedError: | CODE |
| HIGH | tests/pipelines/controlnet/test_controlnet_inpaint.py | 415 | except NotImplementedError: | CODE |
| HIGH | tests/pipelines/controlnet/test_controlnet.py | 358 | except NotImplementedError: | CODE |
| HIGH | tests/pipelines/controlnet/test_controlnet.py | 546 | except NotImplementedError: | CODE |
| HIGH | …s/models/transformers/test_models_transformer_flux2.py | 693 | except RuntimeError: | CODE |
| HIGH | utils/print_env.py | 39 | except ImportError: | CODE |
| HIGH | utils/consolidated_test_report.py | 77 | except ValueError: | CODE |
| HIGH | utils/consolidated_test_report.py | 170 | except Exception: | CODE |
| HIGH | utils/consolidated_test_report.py | 128 | except ValueError: | CODE |
| HIGH | …ples/reinforcement_learning/run_diffuser_locomotion.py | 56 | except KeyboardInterrupt: | CODE |
| HIGH | examples/server-async/serverasync.py | 76 | except asyncio.CancelledError: | CODE |
| HIGH | examples/server-async/utils/requestscopedpipeline.py | 161 | except Exception: | CODE |
| HIGH | examples/server-async/utils/utils.py | 28 | except Exception: | CODE |
| HIGH | scripts/convert_rae_to_diffusers.py | 279 | except Exception: | CODE |
| HIGH | src/diffusers/experimental/rl/value_guided_sampling.py | 60 | except: # noqa: E722 | CODE |
| HIGH | src/diffusers/experimental/rl/value_guided_sampling.py | 66 | except: # noqa: E722 | CODE |
| HIGH | src/diffusers/modular_pipelines/modular_pipeline.py | 2305 | except ValueError: | CODE |
| HIGH | src/diffusers/pipelines/onnx_utils.py | 112 | except shutil.SameFileError: | CODE |
| HIGH | src/diffusers/pipelines/onnx_utils.py | 121 | except shutil.SameFileError: | CODE |
| HIGH | src/diffusers/pipelines/pipeline_utils.py | 1147 | except ValueError: | CODE |
| HIGH | src/diffusers/pipelines/pipeline_utils.py | 2274 | except RuntimeError: | CODE |
| HIGH | src/diffusers/pipelines/glm_image/__init__.py | 26 | except ImportError: | CODE |
| HIGH | src/diffusers/pipelines/prx/__init__.py | 49 | except ImportError: | CODE |
| HIGH | src/diffusers/utils/loading_utils.py | 119 | except EOFError: | CODE |
| HIGH | src/diffusers/utils/import_utils.py | 135 | except importlib_metadata.PackageNotFoundError: | CODE |
| HIGH | src/diffusers/utils/import_utils.py | 155 | except importlib_metadata.PackageNotFoundError: | CODE |
| HIGH | src/diffusers/utils/import_utils.py | 80 | except Exception as _: | CODE |
| HIGH | src/diffusers/utils/torch_utils.py | 141 | except ValueError: | CODE |
| HIGH | src/diffusers/models/modeling_utils.py | 148 | except ValueError: | CODE |
| HIGH | src/diffusers/models/modeling_utils.py | 1602 | except RuntimeError: | CODE |
| HIGH | src/diffusers/commands/env.py | 132 | except FileNotFoundError: | CODE |
| HIGH | src/diffusers/commands/env.py | 155 | except FileNotFoundError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/pipelines/test_pipelines_auto.py | 305 | # make sure you can use pag with inpaint-specific pipeline | COMMENT |
| LOW⚡ | tests/pipelines/test_pipelines_auto.py | 305 | # make sure you can use pag with inpaint-specific pipeline | COMMENT |
| LOW | utils/release.py | 128 | # print("Cleaning main README, don't forget to run `make fix-copies`.") | COMMENT |
| LOW | utils/release.py | 128 | # print("Cleaning main README, don't forget to run `make fix-copies`.") | COMMENT |
| LOW | utils/release.py | 148 | # print("Cleaning main README, don't forget to run `make fix-copies`.") | COMMENT |
| LOW | utils/release.py | 148 | # print("Cleaning main README, don't forget to run `make fix-copies`.") | COMMENT |
| LOW | …/unconditional_image_generation/train_unconditional.py | 331 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | examples/instruct_pix2pix/train_instruct_pix2pix.py | 560 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py | 616 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …amples/cogvideo/train_cogvideox_image_to_video_lora.py | 1119 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/cogvideo/train_cogvideox_lora.py | 1140 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/flux-control/train_control_lora_flux.py | 912 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/flux-control/train_control_flux.py | 836 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …andinsky2_2/text_to_image/train_text_to_image_prior.py | 552 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …dinsky2_2/text_to_image/train_text_to_image_decoder.py | 559 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …/unconditional_image_generation/train_unconditional.py | 322 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …jects/onnxruntime/text_to_image/train_text_to_image.py | 549 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1020 | # make sure to remove all keys > 22 | COMMENT |
| LOW | examples/research_projects/realfill/train_realfill.py | 654 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py | 651 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …/wuerstchen/text_to_image/train_text_to_image_prior.py | 551 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …stchen/text_to_image/train_text_to_image_lora_prior.py | 565 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …/research_projects/sana/train_sana_sprint_diffusers.py | 1151 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …s/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py | 771 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …jects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py | 664 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …ber_loss_training/text_to_image/train_text_to_image.py | 676 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …oss_training/text_to_image/train_text_to_image_sdxl.py | 780 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …raining/text_to_image/train_text_to_image_lora_sdxl.py | 724 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …led_huber_loss_training/dreambooth/train_dreambooth.py | 1003 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …uber_loss_training/dreambooth/train_dreambooth_lora.py | 1000 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …loss_training/dreambooth/train_dreambooth_lora_sdxl.py | 1311 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …research_projects/pixart/train_pixart_controlnet_hf.py | 679 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/research_projects/lpl/train_sdxl_lpl.py | 882 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …ects/consistency_training/train_cm_ct_unconditional.py | 963 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …npainting/train_multi_subject_dreambooth_inpainting.py | 498 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …rch_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py | 703 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …research_projects/diffusion_dpo/train_diffusion_dpo.py | 605 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py | 746 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …a_quantization/train_dreambooth_lora_flux_miniature.py | 737 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/cogview4-control/train_control_cogview4.py | 846 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …fusion_training/train_dreambooth_lora_sd15_advanced.py | 1350 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1626 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …fusion_training/train_dreambooth_lora_sdxl_advanced.py | 1670 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | examples/amused/train_amused.py | 531 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …s/consistency_distillation/train_lcm_distill_sd_wds.py | 1003 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …onsistency_distillation/train_lcm_distill_lora_sdxl.py | 897 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …sistency_distillation/train_lcm_distill_lora_sd_wds.py | 1055 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …stency_distillation/train_lcm_distill_lora_sdxl_wds.py | 1070 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | …consistency_distillation/train_lcm_distill_sdxl_wds.py | 1063 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | examples/text_to_image/train_text_to_image_lora.py | 726 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/text_to_image/train_text_to_image.py | 669 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/text_to_image/train_text_to_image_sdxl.py | 766 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/text_to_image/train_text_to_image_lora_sdxl.py | 750 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/dreambooth/train_dreambooth_lora_flux2.py | 1353 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …ples/dreambooth/train_dreambooth_lora_flux2_img2img.py | 1303 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …reambooth/train_dreambooth_lora_flux2_klein_img2img.py | 1297 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …mples/dreambooth/train_dreambooth_lora_flux_kontext.py | 1500 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | examples/dreambooth/train_dreambooth_lora_hidream.py | 1192 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| LOW | …reambooth/train_dreambooth_lora_qwenimage21_img2img.py | 1448 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | examples/dreambooth/train_dreambooth.py | 960 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/modular_pipelines/testing_utils/common.py | 323 | # Check if cosine similarity is NaN (which can happen if vectors are zero or very small) | COMMENT |
| LOW | tests/pipelines/testing_utils/quantization.py | 601 | # Check if inference works. | STRING |
| LOW | tests/pipelines/testing_utils/quantization.py | 881 | # Check if inference works. | STRING |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 560 | # Check if input and output shapes are the same | COMMENT |
| LOW | tests/models/testing_utils/attention.py | 338 | # Check if model has attention processors | COMMENT |
| LOW | tests/models/testing_utils/quantization.py | 396 | # Check if this module is in the exclusion list | COMMENT |
| LOW | tests/models/testing_utils/quantization.py | 410 | # Check if this module is NOT in the exclusion list | COMMENT |
| LOW | tests/models/testing_utils/common.py | 669 | # Check if the right number of shards exists | COMMENT |
| LOW | tests/models/testing_utils/common.py | 705 | # Check if the right number of shards exists | COMMENT |
| LOW | tests/models/testing_utils/common.py | 746 | # Check if the right number of shards exists | COMMENT |
| LOW | utils/consolidated_test_report.py | 145 | # Check if it's a short stack format | COMMENT |
| LOW | utils/consolidated_test_report.py | 733 | # Check if we found any test results | COMMENT |
| LOW | utils/check_inits.py | 100 | # Check if the backend declaration is inside a try block: | COMMENT |
| LOW | utils/check_inits.py | 159 | # Check if the backend declaration is inside a try block: | COMMENT |
| LOW | utils/custom_init_isort.py | 257 | # Check if the block contains some `_import_structure`s thingy to sort. | COMMENT |
| LOW | …amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py | 813 | # Set UNet to trainable. | COMMENT |
| LOW | examples/controlnet/train_controlnet_flux.py | 1339 | # Check if the gradient of each model parameter contains NaN | STRING |
| LOW | …andinsky2_2/text_to_image/train_text_to_image_prior.py | 533 | # Set prior to trainable. | STRING |
| LOW | …dinsky2_2/text_to_image/train_text_to_image_decoder.py | 528 | # Set unet to trainable. | STRING |
| LOW | …cts/onnxruntime/textual_inversion/textual_inversion.py | 658 | # Check if initializer_token is a single token or a sequence of tokens | STRING |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1463 | # Check if we have a SDXL or SD model and initialize default pipeline | COMMENT |
| LOW | …es/research_projects/ip_adapter/tutorial_train_plus.py | 135 | # Check if 'latents' exists in both the saved state_dict and the current model's state_dict | COMMENT |
| LOW | …es/research_projects/ip_adapter/tutorial_train_plus.py | 138 | # Check if the shapes are mismatched | COMMENT |
| LOW | …es/research_projects/ip_adapter/tutorial_train_plus.py | 153 | # Verify if the weights have changed | COMMENT |
| LOW | …earch_projects/ip_adapter/tutorial_train_ip-adapter.py | 143 | # Verify if the weights have changed | COMMENT |
| LOW | …/research_projects/ip_adapter/tutorial_train_faceid.py | 141 | # Verify if the weights have changed | COMMENT |
| LOW | …es/research_projects/ip_adapter/tutorial_train_sdxl.py | 203 | # Verify if the weights have changed | COMMENT |
| LOW | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 500 | # Check if initializer_token is a single token or a sequence of tokens | STRING |
| LOW | …intel_opts/textual_inversion/textual_inversion_bf16.py | 415 | # Check if initializer_token is a single token or a sequence of tokens | COMMENT |
| LOW | …ulti_token_textual_inversion/textual_inversion_flax.py | 396 | # Check if initializer_token is a single token or a sequence of tokens | COMMENT |
| LOW | …ffusion_training/test_dreambooth_lora_flux_advanced.py | 313 | # Check if the metadata was properly serialized. | STRING |
| LOW | examples/server-async/Pipelines.py | 73 | # Check if model exists in PresetModels | COMMENT |
| LOW | examples/custom_diffusion/train_custom_diffusion.py | 861 | # Check if initializer_token is a single token or a sequence of tokens | COMMENT |
| LOW⚡ | examples/model_search/pipeline_easy.py | 434 | # Check if the keyword is an HTTP or HTTPS URL | STRING |
| LOW⚡ | examples/model_search/pipeline_easy.py | 437 | # Check if the keyword is a file | STRING |
| LOW⚡ | examples/model_search/pipeline_easy.py | 443 | # Check if the keyword is a directory | STRING |
| LOW⚡ | examples/model_search/pipeline_easy.py | 451 | # Check if the keyword is a Civitai URL | STRING |
| LOW⚡ | examples/model_search/pipeline_easy.py | 457 | # Check if the keyword starts with any valid URL prefixes | STRING |
| LOW | examples/model_search/pipeline_easy.py | 469 | # Check if the keyword matches a Hugging Face repository format | STRING |
| LOW | examples/model_search/pipeline_easy.py | 527 | # Check if the file already exists at the save path | STRING |
| LOW | examples/model_search/pipeline_easy.py | 538 | # Open the file in the appropriate mode (write or append) | STRING |
| LOW | examples/model_search/pipeline_easy.py | 850 | # Check if the file passes security scans and has a valid extension | STRING |
| LOW | examples/model_search/pipeline_easy.py | 1030 | # Check if tokenizer and text encoder are provided | STRING |
| LOW | examples/model_search/pipeline_easy.py | 1047 | # Check if token is already in tokenizer vocabulary | STRING |
| LOW | examples/textual_inversion/textual_inversion.py | 685 | # Check if initializer_token is a single token or a sequence of tokens | STRING |
| LOW | examples/textual_inversion/textual_inversion_sdxl.py | 693 | # Check if initializer_token is a single token or a sequence of tokens | STRING |
| LOW | examples/textual_inversion/textual_inversion_flax.py | 409 | # Check if initializer_token is a single token or a sequence of tokens | COMMENT |
| LOW | examples/dreambooth/test_dreambooth_lora_qwenimage.py | 234 | # Check if the metadata was properly serialized. | STRING |
| LOW | examples/dreambooth/test_dreambooth_lora_qwenimage21.py | 297 | # Check if the metadata was properly serialized. | STRING |
| LOW | …dreambooth/test_dreambooth_lora_qwenimage21_img2img.py | 138 | # Check if the metadata was properly serialized. | STRING |
| LOW | examples/dreambooth/test_dreambooth_lora_flux2_klein.py | 248 | # Check if the metadata was properly serialized. | STRING |
| LOW | examples/dreambooth/test_dreambooth_lora_flux2.py | 247 | # Check if the metadata was properly serialized. | STRING |
| LOW | examples/dreambooth/test_dreambooth_lora_sana.py | 233 | # Check if the metadata was properly serialized. | STRING |
| LOW | examples/dreambooth/test_dreambooth_lora_flux.py | 266 | # Check if the metadata was properly serialized. | STRING |
| LOW | …amples/dreambooth/test_dreambooth_lora_flux_kontext.py | 266 | # Check if the metadata was properly serialized. | STRING |
| LOW | …unity/pipeline_stable_diffusion_xl_attentive_eraser.py | 116 | >>> prompt = "" # Set prompt to null | CODE |
| LOW | examples/community/dps_pipeline.py | 345 | # Assign weight to each pixel in the field of view. A matrix whose horizontal dim is the output pixe | STRING |
| LOW | examples/community/marigold_depth_estimation.py | 184 | # Check if denoising step is reasonable | COMMENT |
| LOW | src/diffusers/image_processor.py | 1457 | # Check if resizing is needed | STRING |
| LOW | src/diffusers/video_processor.py | 155 | # Check if resizing is needed | STRING |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/modular_pipelines/testing_utils/__init__.py | 19 | __all__ = [ | CODE |
| LOW | tests/pipelines/testing_utils/__init__.py | 21 | __all__ = [ | CODE |
| LOW⚡ | tests/models/testing_utils/attention.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/models/testing_utils/__init__.py | 59 | __all__ = [ | CODE |
| LOW | utils/remind_link_issue.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | utils/fetch_torch_cuda_pipeline_test_matrix.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/controlnet/train_controlnet_flax.py | 66 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ulti_token_textual_inversion/textual_inversion_flax.py | 61 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/cosmos/train_cosmos_predict25_lora.py | 316 | def _setup_caption_format(self) -> None: | CODE |
| LOW | examples/server/server.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/server-async/Pipelines.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/server-async/utils/utils.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/profiling/profiling_utils.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/profiling/profiling_pipelines.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/textual_inversion/textual_inversion_flax.py | 61 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/text_to_image/train_text_to_image_flax.py | 54 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/dreambooth/train_dreambooth_flax.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmarks/benchmarking_utils.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmarks/run_all.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | scripts/convert_ltx2_to_diffusers.py | 163 | def update_state_dict_inplace(state_dict: dict[str, Any], old_key: str, new_key: str) -> None: | CODE |
| LOW | scripts/convert_hunyuan_image_to_diffusers.py | 10 | logger = logging.getLogger(__name__) # pylint: disable=invalid-name | CODE |
| LOW | scripts/convert_anyflow_to_diffusers.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | scripts/convert_flux2_to_diffusers.py | 383 | def update_state_dict(state_dict: Dict[str, Any], old_key: str, new_key: str) -> None: | CODE |
| LOW | src/diffusers/modular_pipelines/mellon_node_utils.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/diffusers/quantizers/nunchaku/utils.py | 334 | def _set_submodule(model: nn.Module, path: str, module: nn.Module) -> None: | CODE |
| LOW | src/diffusers/guiders/guider_utils.py | 100 | def set_state(self, step: int, num_inference_steps: int, timestep: torch.LongTensor) -> None: | CODE |
| LOW⚡ | src/diffusers/pipelines/pipeline_utils.py | 2030 | def set_use_memory_efficient_attention_xformers(self, valid: bool, attention_op: Callable | None = None) -> None: | STRING |
| LOW | src/diffusers/pipelines/ddim/pipeline_ddim.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/diffusers/pipelines/llada2/pipeline_llada2.py | 563 | __all__ = ["LLaDA2Pipeline", "LLaDA2PipelineOutput"] | CODE |
| LOW | …/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py | 468 | __all__ = ["DiffusionGemmaPipeline", "DiffusionGemmaPipelineOutput"] | CODE |
| LOW | src/diffusers/utils/logging.py | 167 | def set_verbosity(verbosity: int) -> None: | CODE |
| LOW⚡ | src/diffusers/utils/logging.py | 186 | def set_verbosity_info() -> None: | CODE |
| LOW⚡ | src/diffusers/utils/logging.py | 191 | def set_verbosity_warning() -> None: | CODE |
| LOW⚡ | src/diffusers/utils/logging.py | 196 | def set_verbosity_debug() -> None: | CODE |
| LOW⚡ | src/diffusers/utils/logging.py | 201 | def set_verbosity_error() -> None: | CODE |
| LOW | src/diffusers/models/attention.py | 127 | def set_processor(self, processor: AttentionProcessor) -> None: | STRING |
| LOW | src/diffusers/models/attention.py | 171 | def set_use_npu_flash_attention(self, use_npu_flash_attention: bool) -> None: | STRING |
| LOW | src/diffusers/models/attention.py | 340 | def set_attention_slice(self, slice_size: int) -> None: | STRING |
| LOW | src/diffusers/models/attention.py | 1551 | def set_chunk_feed_forward(self, chunk_size: int | None, dim: int = 0) -> None: | STRING |
| LOW | src/diffusers/models/attention_processor.py | 344 | def set_use_npu_flash_attention(self, use_npu_flash_attention: bool) -> None: | STRING |
| LOW | src/diffusers/models/attention_processor.py | 507 | def set_attention_slice(self, slice_size: int) -> None: | STRING |
| LOW | src/diffusers/models/attention_processor.py | 535 | def set_processor(self, processor: "AttnProcessor") -> None: | STRING |
| LOW⚡ | src/diffusers/models/modeling_utils.py | 335 | def set_use_npu_flash_attention(self, valid: bool) -> None: | STRING |
| LOW⚡ | src/diffusers/models/modeling_utils.py | 394 | def set_use_memory_efficient_attention_xformers(self, valid: bool, attention_op: Callable | None = None) -> None: | STRING |
| LOW | src/diffusers/models/modeling_utils.py | 608 | def set_attention_backend(self, backend: str) -> None: | STRING |
| LOW | src/diffusers/models/unets/unet_motion_model.py | 1801 | def set_default_attn_processor(self) -> None: | STRING |
| LOW | src/diffusers/models/unets/unet_3d_condition.py | 290 | def set_attention_slice(self, slice_size: str | int | list[int]) -> None: | STRING |
| LOW | src/diffusers/models/unets/unet_dreamlite.py | 2032 | __all__ = [ | STRING |
| LOW | src/diffusers/models/controlnets/controlnet.py | 537 | def set_attention_slice(self, slice_size: str | int | list[int]) -> None: | STRING |
| LOW | …/diffusers/models/controlnets/controlnet_sparsectrl.py | 469 | def set_attention_slice(self, slice_size: str | int | list[int]) -> None: | STRING |
| LOW | src/diffusers/models/controlnets/controlnet_union.py | 476 | def set_attention_slice(self, slice_size: str | int | list[int]) -> None: | STRING |
| LOW | src/diffusers/hooks/hooks.py | 50 | def _set_cache_context(module: torch.nn.Module, context: CacheContext | None) -> None: | CODE |
| LOW | src/diffusers/hooks/hooks.py | 85 | def set_context(self, context: CacheContext | None) -> None: | CODE |
| LOW | src/diffusers/commands/run.py | 414 | def _set_attention_backend(pipeline: Any, backend: str) -> None: | CODE |
| LOW | src/diffusers/loaders/peft.py | 555 | def set_adapter(self, adapter_name: str | list[str]) -> None: | STRING |
| LOW | src/diffusers/loaders/lora_base.py | 954 | def set_lora_device(self, adapter_names: list[str], device: torch.device | str | int) -> None: | STRING |
| LOW | src/diffusers/loaders/single_file_utils.py | 3973 | def update_state_dict(state_dict: dict[str, object], old_key: str, new_key: str) -> None: | STRING |
| LOW | src/diffusers/loaders/single_file_utils.py | 4033 | def update_state_dict(state_dict: dict[str, object], old_key: str, new_key: str) -> None: | STRING |
| LOW | src/diffusers/loaders/single_file_utils.py | 4097 | def update_state_dict_inplace(state_dict, old_key: str, new_key: str) -> None: | STRING |
| LOW | src/diffusers/loaders/single_file_utils.py | 4176 | def update_state_dict_inplace(state_dict, old_key: str, new_key: str) -> None: | STRING |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/dreambooth/README_qwen.md | 109 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_flux2.md | 261 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_lumina2.md | 109 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_flux.md | 121 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_sana.md | 109 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_sdxl.md | 102 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_qwenimage21.md | 113 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_hidream.md | 103 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_sd3.md | 108 | * `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it | COMMENT |
| HIGH | examples/dreambooth/README_z_image.md | 156 | * `report_to="wandb"` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use i | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 268 | # Step 1: Create an external model repo with custom code (requires trust_remote_code) | COMMENT |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 283 | # Step 2: Create a custom block that references the external repo. | COMMENT |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 369 | # Step 3: Load the pipeline from the saved directory. | COMMENT |
| LOW⚡ | tests/pipelines/glm_image/test_glm_image.py | 168 | # Step 1: Run with prompt only to get prior_token_ids from AR model | COMMENT |
| LOW⚡ | tests/pipelines/glm_image/test_glm_image.py | 177 | # Step 2: Run with both prompt and prior_token_ids — should not raise | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 520 | # Step 1: freeze all parameters | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 527 | # Step 2: add adapters to attention layers | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 544 | # Step 3: run forward and backward pass | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 554 | # Step 4: verify gradients are computed | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 128 | # Step 0: Input 10.0 -> Output 40.0 (2 blocks * 2x each) | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 134 | # Step 1: Input 11.0. | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 162 | # Step 1: Should COMPUTE (44.0) not SKIP (41.0) because of retention | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 181 | # Step 0: Compute. Input 10.0 -> Output 20.0 (1 block * 2x) | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 188 | # Step 1: Skip. Input 11.0. | COMMENT |
| LOW | examples/research_projects/ip_adapter/README.md | 194 | # Step 1: Project the image features | COMMENT |
| LOW | examples/research_projects/ip_adapter/README.md | 197 | # Step 2: Pass the projected features through the IP Adapter | COMMENT |
| LOW | examples/profiling/README.md | 124 | ### Step 3: Known Sync Issues to Validate | COMMENT |
| LOW⚡ | examples/community/README.md | 1341 | # Step 1: Resize input image for CLIPSeg (224x224) | STRING |
| LOW⚡ | examples/community/README.md | 1344 | # Step 2: Generate segmentation mask | STRING |
| LOW⚡ | examples/community/README.md | 1354 | # Step 3: Resize input image for Stable Diffusion | STRING |
| LOW⚡ | examples/community/README.md | 1357 | # Step 4: Run inpainting with Stable Diffusion | STRING |
| LOW | examples/community/checkpoint_merger.py | 124 | # Step 1: Load the model config and compare the checkpoints. We'll compare the model_index.json first while igno | COMMENT |
| LOW | examples/community/checkpoint_merger.py | 144 | # Step 2: Basic Validation has succeeded. Let's download the models and save them into our local files. | COMMENT |
| LOW | scripts/convert_dcae_to_diffusers.py | 31 | # NOTE: The below two lines work because scales in the available configs only have a tuple length of 1 | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 139 | # Step 1: Collect model inputs | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 147 | # Step 2: Update guider state | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 150 | # Step 3: Prepare batched inputs | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 153 | # Step 4: Run denoiser for each batch | COMMENT |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 172 | # Step 5: Combine predictions | COMMENT |
| LOW | …c/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py | 795 | # Step 0: include ref tokens, extract KV cache | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 741 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 750 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 753 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 763 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 790 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 864 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 873 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 876 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 886 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 914 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW⚡ | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 656 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 663 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 666 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 677 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 704 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 764 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 773 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 776 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 786 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 814 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW | src/diffusers/loaders/single_file_utils.py | 2633 | # NOTE: The below two lines work because scales in the available configs only have a tuple length of 1 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 268 | # Step 1: Create an external model repo with custom code (requires trust_remote_code) | COMMENT |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 283 | # Step 2: Create a custom block that references the external repo. | COMMENT |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 369 | # Step 3: Load the pipeline from the saved directory. | COMMENT |
| LOW⚡ | tests/pipelines/glm_image/test_glm_image.py | 168 | # Step 1: Run with prompt only to get prior_token_ids from AR model | COMMENT |
| LOW⚡ | tests/pipelines/glm_image/test_glm_image.py | 177 | # Step 2: Run with both prompt and prior_token_ids — should not raise | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 520 | # Step 1: freeze all parameters | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 527 | # Step 2: add adapters to attention layers | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 544 | # Step 3: run forward and backward pass | COMMENT |
| LOW⚡ | tests/models/testing_utils/quantization.py | 554 | # Step 4: verify gradients are computed | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 128 | # Step 0: Input 10.0 -> Output 40.0 (2 blocks * 2x each) | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 134 | # Step 1: Input 11.0. | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 162 | # Step 1: Should COMPUTE (44.0) not SKIP (41.0) because of retention | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 181 | # Step 0: Compute. Input 10.0 -> Output 20.0 (1 block * 2x) | COMMENT |
| LOW⚡ | tests/hooks/test_mag_cache.py | 188 | # Step 1: Skip. Input 11.0. | COMMENT |
| LOW | examples/community/checkpoint_merger.py | 124 | # Step 1: Load the model config and compare the checkpoints. We'll compare the model_index.json first while igno | COMMENT |
| LOW | examples/community/checkpoint_merger.py | 144 | # Step 2: Basic Validation has succeeded. Let's download the models and save them into our local files. | COMMENT |
| LOW | examples/community/checkpoint_merger.py | 176 | # Step 3:- | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 139 | # Step 1: Collect model inputs | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 147 | # Step 2: Update guider state | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 150 | # Step 3: Prepare batched inputs | COMMENT |
| LOW⚡ | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 153 | # Step 4: Run denoiser for each batch | COMMENT |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 172 | # Step 5: Combine predictions | COMMENT |
| LOW | …c/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py | 795 | # Step 0: include ref tokens, extract KV cache | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 741 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 750 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 753 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW⚡ | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 763 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 790 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 864 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 873 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 876 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW⚡ | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 886 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 914 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW⚡ | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 656 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 663 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 666 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 677 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 704 | # Step 5: Combine predictions using the guidance method | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 764 | # Step 1: Collect model inputs needed for the guidance method | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 773 | # Step 2: Update guider's internal state for this denoising step | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 776 | # Step 3: Prepare batched model inputs based on the guidance method | STRING |
| LOW⚡ | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 786 | # Step 4: Run the denoiser for each batch | STRING |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 814 | # Step 5: Combine predictions using the guidance method | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/single_file/single_file_testing_utils.py | 212 | # we just pass it in here otherwise this test will fail | COMMENT |
| LOW | tests/single_file/single_file_testing_utils.py | 232 | # we just pass it in here otherwise this test will fail | COMMENT |
| LOW | tests/single_file/single_file_testing_utils.py | 400 | # we just pass it in here otherwise this test will fail | COMMENT |
| LOW | tests/single_file/single_file_testing_utils.py | 421 | # we just pass it in here otherwise this test will fail | COMMENT |
| LOW⚡ | …pelines/ltx2/test_pipeline_ltx2_dfr_temporal_refine.py | 95 | # would run to completion and just return a softer canvas. | COMMENT |
| LOW | utils/consolidated_test_report.py | 171 | pass # If we can't read the line file, just use what we have | CODE |
| MEDIUM | utils/consolidated_test_report.py | 351 | """Generate a comprehensive markdown report from consolidated data.""" | STRING |
| LOW | utils/check_inits.py | 71 | # If this is a traditional init, just return. | COMMENT |
| LOW | …uber_loss_training/dreambooth/train_dreambooth_lora.py | 912 | # IF does not have a VAE so let's just set it to None | COMMENT |
| LOW | examples/research_projects/lpl/train_sdxl_lpl.py | 1342 | # If no SNR weighting, just use mean | STRING |
| MEDIUM | examples/research_projects/sdxl_flax/sdxl_single.py | 1 | # Show best practices for SDXL JAX | COMMENT |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1718 | if args.enable_t5_ti: # whether to do pivotal tuning/textual inversion for T5 as well | STRING |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1753 | else: # regular te training or regular pivotal for clip | STRING |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1757 | # pivotal tuning of clip & t5 | STRING |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1769 | else: # regular pivotal tuning of clip & t5 | STRING |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 2116 | elif args.train_text_encoder_ti: # textual inversion / pivotal tuning | STRING |
| MEDIUM | …ffusion_training/test_dreambooth_lora_flux_advanced.py | 146 | # when performing pivotal tuning, all the parameters in the state dict should start | STRING |
| MEDIUM | …ffusion_training/test_dreambooth_lora_flux_advanced.py | 189 | # when performing pivotal tuning, all the parameters in the state dict should start | STRING |
| LOW | examples/dreambooth/train_dreambooth_lora_flux2.py | 1259 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | …ples/dreambooth/train_dreambooth_lora_flux2_img2img.py | 1209 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | …reambooth/train_dreambooth_lora_flux2_klein_img2img.py | 1204 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | examples/dreambooth/train_dreambooth_lora_hidream.py | 1134 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | …reambooth/train_dreambooth_lora_qwenimage21_img2img.py | 1393 | # we never offload the transformer to CPU, so we can just use the accelerator device | COMMENT |
| LOW | examples/dreambooth/train_dreambooth_lora.py | 893 | # IF does not have a VAE so let's just set it to None | COMMENT |
| LOW | examples/dreambooth/train_dreambooth_lora_z_image.py | 1248 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | examples/dreambooth/train_dreambooth_lora_ideogram4.py | 1390 | # we never offload the transformer to CPU, so we can just use the accelerator device. | STRING |
| LOW | …amples/dreambooth/train_dreambooth_lora_flux2_klein.py | 1263 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | …amples/dreambooth/train_dreambooth_lora_qwenimage21.py | 1302 | # we never offload the transformer to CPU, so we can just use the accelerator device | COMMENT |
| LOW | examples/dreambooth/train_dreambooth_lora_krea2.py | 1328 | # we never offload the transformer to CPU, so we can just use the accelerator device | STRING |
| LOW | examples/dreambooth/train_dreambooth_lora_qwen_image.py | 1260 | # we never offload the transformer to CPU, so we can just use the accelerator device | COMMENT |
| MEDIUM⚡ | scripts/convert_diffusers_sdxl_lora_to_webui.py | 13 | # Dreambooth Advanced Training Script - state of the art techniques such as pivotal tuning and prodigy optimizer: | COMMENT |
| MEDIUM | src/diffusers/modular_pipelines/components_manager.py | 815 | """Get comprehensive information about a component. | STRING |
| LOW | src/diffusers/modular_pipelines/modular_pipeline.py | 2232 | # if it is not set yet, just set it and skip the process to check and warn below | COMMENT |
| LOW | …rs/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py | 1472 | # Euler step for any other scheduler, so an unchecked component here would run to completion and just return | STRING |
| MEDIUM | src/diffusers/pipelines/prx/pipeline_prx.py | 129 | """Clean text using comprehensive text processing logic.""" | STRING |
| MEDIUM | src/diffusers/utils/state_dict_utils.py | 155 | # This is not a comprehensive dict as kohya format requires replacing `.` with `_` in keys, | COMMENT |
| LOW | src/diffusers/models/attention_processor.py | 593 | # here we simply pass along all tensors to the selected processor class | STRING |
| MEDIUM | src/diffusers/models/modeling_utils.py | 513 | # If users want to apply layerwise casting on peft layers as well, they can utilize the | STRING |
| LOW | src/diffusers/models/autoencoders/vae.py | 634 | inds[inds >= self.used.shape[0]] = 0 # simply set to zero | CODE |
| MEDIUM | src/diffusers/loaders/lora_conversion_utils.py | 358 | # not utilize it yet. | COMMENT |
| LOW | …fusers/schedulers/scheduling_ltx_euler_ancestral_rf.py | 359 | # Already at the end; simply return the current sample. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | utils/check_repo.py | 667 | model_types = list(diffusers.models.auto.configuration_auto.MODEL_NAMES_MAPPING.keys()) | CODE |
| CRITICAL | src/diffusers/models/lora.py | 124 | w_up = self.lora_linear_layer.up.weight.data.float() | CODE |
| CRITICAL | src/diffusers/models/lora.py | 125 | w_down = self.lora_linear_layer.down.weight.data.float() | CODE |
| CRITICAL | src/diffusers/models/lora.py | 322 | w_up = self.lora_layer.up.weight.data.float() | STRING |
| CRITICAL | src/diffusers/models/lora.py | 323 | w_down = self.lora_layer.down.weight.data.float() | STRING |
| CRITICAL | src/diffusers/models/lora.py | 408 | w_up = self.lora_layer.up.weight.data.float() | STRING |
| CRITICAL | src/diffusers/models/lora.py | 409 | w_down = self.lora_layer.down.weight.data.float() | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CONTRIBUTING.md | 16 | > If you use an AI agent to contribute, make sure you read the [AI-assisted and agentic contributions](#ai-assisted-and- | CODE |
| MEDIUM | CONTRIBUTING.md | 611 | ### AI-assisted and agentic contributions | COMMENT |
| MEDIUM | docs/source/en/conceptual/contribution.md | 16 | > If you use an AI agent to contribute, make sure you read the [AI-assisted and agentic contributions](#ai-assisted-and- | CODE |
| MEDIUM | docs/source/en/conceptual/contribution.md | 611 | ### AI-assisted and agentic contributions | COMMENT |
| MEDIUM | scripts/convert_original_audioldm2_to_diffusers.py | 637 | # extract state dict for CLAP text embedding model, discarding the audio component | COMMENT |
| MEDIUM | scripts/convert_original_audioldm_to_diffusers.py | 612 | # extract state dict for CLAP text embedding model, discarding the audio component | COMMENT |
| MEDIUM | scripts/convert_original_musicldm_to_diffusers.py | 617 | # extract state dict for CLAP text embedding model, discarding the audio component | COMMENT |
| MEDIUM | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py | 215 | # (system + chat-template scaffolding) that must be dropped from the encoder hidden states so the cross- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | setup.py | 51 | python setup.py bdist_wheel && python setup.py sdist | STRING |
| HIGH | setup.py | 64 | pip install diffusers && pip uninstall diffusers | STRING |
| HIGH | tests/pipelines/testing_utils/quantization.py | 404 | "llm_int8_skip_modules": null, | CODE |
| HIGH | utils/label_issues.py | 43 | Example: {"labels": ["bug", "models", "needs-code-example"], "model_name": null} | CODE |
| HIGH | src/diffusers/pipelines/ace_step/pipeline_ace_step.py | 1181 | # Batched guidance: stack (cond, null) on batch dim and run the DiT once. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …research_projects/pixart/train_pixart_controlnet_hf.py | 686 | CODE | |
| MEDIUM | …rs/modular_pipelines/z_image/modular_blocks_z_image.py | 260 | CODE | |
| MEDIUM | …rs/modular_pipelines/z_image/modular_blocks_z_image.py | 261 | CODE | |
| MEDIUM | …rs/modular_pipelines/z_image/modular_blocks_z_image.py | 262 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/profiling/run_profiling.sh | 4 | # Usage: | COMMENT |
| LOW | scripts/convert_longcat_audio_dit_to_diffusers.py | 16 | # Usage: | COMMENT |
| LOW | scripts/convert_minimax_music3_to_diffusers.py | 9 | # Usage: | COMMENT |
| LOW | scripts/convert_ace_step_to_diffusers.py | 3 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_gligen/pipeline_stable_diffusion_gligen_text_image.py | 144 | ... "placeholder", | CODE |
| LOW | …elines/deprecated/unidiffuser/modeling_text_decoder.py | 153 | dummy_token = self.get_dummy_token(input_ids.shape[0], input_ids.device) | CODE |
| LOW | …elines/deprecated/unidiffuser/modeling_text_decoder.py | 154 | labels = torch.cat((dummy_token, input_ids), dim=1) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/diffusers/modular_pipelines/flux/inputs.py | 104 | # TODO: consider adding negative embeddings? | COMMENT |
| LOW | src/diffusers/models/transformers/transformer_ltx2.py | 1042 | # TODO: consider implementing this as a utility and reuse in `connectors.py`. | STRING |