Repository Analysis

huggingface/diffusers

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

19.9 Moderate AI signal View on GitHub
19.9
Adjusted Score
19.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
33,726
Stars
Python
Language
1,067,080
Lines of Code
2620
Files
12532
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 7HIGH 2294MEDIUM 425LOW 9806

Pattern Findings

12532 matches across 18 categories. Click a row to expand file-level details.

Cross-File Repetition1905 hits · 9525 pts
SeverityFileLineSnippet
HIGHCONTRIBUTING.md0output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im
HIGHdocs/source/zh/conceptual/contribution.md0output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im
HIGHdocs/source/ko/conceptual/contribution.md0output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im
HIGHdocs/source/en/conceptual/contribution.md0output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im
HIGH…/pipelines/deprecated/alt_diffusion/pipeline_output.py0output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im
HIGHtests/testing_utils.py0helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando
HIGHsrc/diffusers/utils/testing_utils.py0helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando
HIGHsrc/diffusers/utils/torch_utils.py0helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando
HIGH…fusion_xl/test_modular_pipeline_stable_diffusion_xl.py0tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as
HIGHtests/pipelines/test_pipelines_common.py0tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as
HIGHtests/pipelines/test_pipelines_common.py0tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as
HIGH…/pipelines/stable_cascade/test_stable_cascade_prior.py0checks if the lora layers are correctly set with peft
HIGHtests/models/test_modeling_common.py0checks if the lora layers are correctly set with peft
HIGHtests/models/unets/test_models_unet_2d_condition.py0checks if the lora layers are correctly set with peft
HIGHtests/lora/utils.py0checks if the lora layers are correctly set with peft
HIGHtests/models/testing_utils/quantization.py0test that modules_to_not_convert parameter works correctly.
HIGHtests/models/testing_utils/quantization.py0test that modules_to_not_convert parameter works correctly.
HIGHtests/models/testing_utils/quantization.py0test that modules_to_not_convert parameter works correctly.
HIGHtests/models/testing_utils/quantization.py0test that modules_to_not_convert parameter works correctly.
HIGHtests/models/testing_utils/quantization.py0test that device_map='auto' works correctly with quantization.
HIGHtests/models/testing_utils/quantization.py0test that device_map='auto' works correctly with quantization.
HIGHtests/models/testing_utils/quantization.py0test that device_map='auto' works correctly with quantization.
HIGHtests/models/testing_utils/quantization.py0test that device_map='auto' works correctly with quantization.
HIGHtests/quantization/gguf/test_gguf.py0a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works.
HIGHtests/quantization/bnb/test_mixed_int8.py0a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works.
HIGHtests/quantization/bnb/test_4bit.py0a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works.
HIGHtests/quantization/quanto/test_quanto.py0a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works.
HIGHtests/quantization/bnb/test_mixed_int8.py0a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver
HIGHtests/quantization/bnb/test_mixed_int8.py0a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver
HIGHtests/quantization/bnb/test_4bit.py0a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver
HIGHtests/quantization/bnb/test_4bit.py0a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver
HIGHtests/quantization/torchao/test_torchao.py0a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver
HIGHtests/lora/utils.py0tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it wo
HIGHtests/lora/utils.py0tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it wo
HIGHtests/lora/utils.py0tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it wo
HIGHdocs/source/pt/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/pt/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/pt/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/pt/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/zh/optimization/speed-memory-optims.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/stable_diffusion.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/quicktour.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/quicktour.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/quicktour.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/quicktour.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/optimization/attention_backends.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/optimization/attention_backends.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/optimization/speed-memory-optims.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/training/distributed_inference.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/training/distributed_inference.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/using-diffusers/loading.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/en/using-diffusers/loading.md0cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol
HIGHdocs/source/zh/optimization/speed-memory-optims.md0the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate
HIGHdocs/source/en/optimization/speed-memory-optims.md0the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate
HIGHdocs/source/en/using-diffusers/text-img2vid.md0the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate
HIGHdocs/source/en/using-diffusers/text-img2vid.md0the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate
HIGHdocs/source/en/api/pipelines/wan.md0the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate
1845 more matches not shown…
Hyper-Verbose Identifiers4333 hits · 3890 pts
SeverityFileLineSnippet
LOWtests/testing_utils.py1522def backend_reset_peak_memory_stats(device: str):
LOWtests/testing_utils.py1526def backend_reset_max_memory_allocated(device: str):
LOWtests/testing_utils.py1530def backend_max_memory_allocated(device: str):
LOWtests/testing_utils.py1536def backend_supports_training(device: str):
LOWtests/testing_utils.py188def numpy_cosine_similarity_distance(a, b):
LOWtests/testing_utils.py506def require_torch_version_greater_equal(torch_version):
LOWtests/testing_utils.py519def require_torch_version_greater(torch_version):
LOWtests/testing_utils.py536def require_torch_cuda_compatibility(expected_compute_capability):
LOWtests/testing_utils.py550def require_torch_accelerator(test_case):
LOWtests/testing_utils.py569def require_torch_multi_accelerator(test_case):
LOWtests/testing_utils.py599def require_big_gpu_with_torch_cuda(test_case):
LOWtests/testing_utils.py648def require_torch_accelerator_with_training(test_case):
LOWtests/testing_utils.py748def require_peft_version_greater(peft_version):
LOWtests/testing_utils.py765def require_transformers_version_greater(transformers_version):
LOWtests/testing_utils.py783def require_accelerate_version_greater(accelerate_version):
LOWtests/testing_utils.py796def require_bitsandbytes_version_greater(bnb_version):
LOWtests/testing_utils.py808def require_hf_hub_version_greater(hf_hub_version):
LOWtests/testing_utils.py821def require_gguf_version_greater_or_equal(gguf_version):
LOWtests/testing_utils.py833def require_torchao_version_greater_or_equal(torchao_version):
LOWtests/testing_utils.py845def require_kernels_version_greater_or_equal(kernels_version):
LOWtests/testing_utils.py857def require_modelopt_version_greater_or_equal(modelopt_version):
LOWtests/testing_utils.py867def deprecate_after_peft_backend(test_case):
LOWtests/testing_utils.py1099def pytest_terminal_summary_main(tr, id):
LOWtests/testing_utils.py1491def _device_agnostic_dispatch(device: str, dispatch_table: dict[str, Callable], *args, **kwargs):
LOWtests/testing_utils.py1641 def _get_expected_safetensors_files(
LOWtests/testing_utils.py1724 def _check_safetensors_serialization(
LOW…e_file/test_stable_diffusion_controlnet_single_file.py63 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…e_file/test_stable_diffusion_controlnet_single_file.py85 def test_single_file_components(self):
LOW…e_file/test_stable_diffusion_controlnet_single_file.py98 def test_single_file_components_local_files_only(self):
LOW…e_file/test_stable_diffusion_controlnet_single_file.py112 def test_single_file_components_with_original_config(self):
LOW…e_file/test_stable_diffusion_controlnet_single_file.py121 def test_single_file_components_with_original_config_local_files_only(self):
LOW…e_file/test_stable_diffusion_controlnet_single_file.py142 def test_single_file_components_with_diffusers_config(self):
LOW…e_file/test_stable_diffusion_controlnet_single_file.py151 def test_single_file_components_with_diffusers_config_local_files_only(self):
LOW…ts/single_file/test_stable_diffusion_xl_single_file.py52 def test_single_file_format_inference_is_same_as_pretrained(self):
LOWtests/single_file/test_model_vae_single_file.py52 def test_single_file_inference_same_as_pretrained(self):
LOWtests/single_file/test_model_vae_single_file.py71 def test_single_file_arguments(self):
LOW…ngle_file/test_stable_diffusion_upscale_single_file.py41 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…ngle_file/test_stable_diffusion_upscale_single_file.py75 def test_single_file_components_with_original_config(self):
LOW…ngle_file/test_stable_diffusion_upscale_single_file.py83 def test_single_file_components_with_original_config_local_files_only(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py63 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py88 def test_single_file_components(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py102 def test_single_file_components_local_files_only(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py123 def test_single_file_components_with_original_config(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py141 def test_single_file_components_with_original_config_local_files_only(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py164 def test_single_file_components_with_diffusers_config(self):
LOW…ile/test_stable_diffusion_xl_controlnet_single_file.py175 def test_single_file_components_with_diffusers_config_local_files_only(self):
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py61 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py72 def test_single_file_components_with_original_config(self):
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py76 def test_single_file_components_with_original_config_local_files_only(self):
LOW…ngle_file/test_stable_diffusion_inpaint_single_file.py119 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…e_file/test_stable_diffusion_xl_img2img_single_file.py60 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…e_file/test_stable_diffusion_xl_img2img_single_file.py76 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…s/single_file/test_model_autoencoder_dc_single_file.py50 def test_single_file_inference_same_as_pretrained(self):
LOW…s/single_file/test_model_autoencoder_dc_single_file.py67 def test_single_file_in_type_variant_components(self):
LOW…s/single_file/test_model_autoencoder_dc_single_file.py86 def test_single_file_mix_type_variant_components(self):
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py70 def test_single_file_format_inference_is_same_as_pretrained(self):
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py89 def test_single_file_components(self):
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py102 def test_single_file_components_local_files_only(self):
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py117 def test_single_file_components_with_original_config(self):
LOW…est_stable_diffusion_controlnet_inpaint_single_file.py127 def test_single_file_components_with_original_config_local_files_only(self):
4273 more matches not shown…
Docstring Block Structure375 hits · 1875 pts
SeverityFileLineSnippet
HIGHutils/check_forward_call_docstrings.py15 Check that arguments of ``forward()`` (for models) and ``__call__()`` (for pipelines) match the method's docstring exac
HIGHexamples/research_projects/anytext/anytext.py1970 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…_projects/promptdiffusion/pipeline_prompt_diffusion.py938 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…ch_projects/pixart/pipeline_pixart_alpha_controlnet.py820 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_zero1to3.py624 Function invoked when calling the pipeline for generation. Args: input_imgs (`PIL` or `Lis
HIGHexamples/community/mod_controlnet_tile_sr_sdxl.py1084 Calculates the number of tiles needed to cover an image, choosing the appropriate formula based on the
HIGHexamples/community/mod_controlnet_tile_sr_sdxl.py1292 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…mmunity/stable_diffusion_controlnet_inpaint_img2img.py755 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…les/community/pipeline_flux_kontext_multiple_images.py851 Function invoked when calling the pipeline for generation. Args: image (`torch.Tensor`, `P
HIGH…munity/pipeline_stable_diffusion_3_instruct_pix2pix.py896 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…/community/stable_diffusion_xl_controlnet_reference.py375 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/mixture_tiling.py184 Function to run the diffusion pipeline with tiling support. Args: prompt: either a single
HIGHexamples/community/pipeline_stg_hunyuan_video.py586 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/pipeline_flux_with_cfg.py632 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_stable_diffusion_xl_ipex.py759 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/stable_diffusion_repaint.py43 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be
HIGHexamples/community/stable_diffusion_repaint.py633 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str
HIGH…/community/pipeline_hunyuandit_differential_img2img.py770 The call function to the pipeline for generation with HunyuanDiT. Args: prompt (`str` or `
HIGHexamples/community/pipeline_stable_diffusion_boxdiff.py1353 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/adaptive_mask_inpainting.py206 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be
HIGHexamples/community/adaptive_mask_inpainting.py884 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/fresco_v2v.py2082 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…line_stable_diffusion_xl_controlnet_adapter_inpaint.py175 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be
HIGH…line_stable_diffusion_xl_controlnet_adapter_inpaint.py1240 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…ty/pipeline_stable_diffusion_3_differential_img2img.py699 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_demofusion_sdxl.py662 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/run_tensorrt_controlnet.py651 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_stg_ltx.py589 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_animatediff_ipex.py598 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…es/community/pipeline_faithdiff_stable_diffusion_xl.py1838 Function invoked when calling the pipeline for generation. Args: lr_img (PipelineImageInpu
HIGHexamples/community/pipeline_stable_diffusion_pag.py1126 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opti
HIGHexamples/community/stable_diffusion_reference.py286 Check the validity of the input arguments for the diffusion model. Args: prompt (Optional[
HIGHexamples/community/stable_diffusion_reference.py849 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…unity/pipeline_stable_diffusion_xl_attentive_eraser.py326 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be
HIGH…unity/pipeline_stable_diffusion_xl_attentive_eraser.py1660 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…les/community/stable_diffusion_controlnet_reference.py135 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/stable_diffusion_xl_reference.py317 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…les/community/pipeline_controlnet_xl_kolors_img2img.py995 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_controlnet_xl_kolors.py821 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…y/pipeline_stable_diffusion_xl_differential_img2img.py978 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/matryoshka.py4278 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…les/community/pipeline_z_image_differential_img2img.py477 Function invoked when calling the pipeline for image-to-image generation. Args: prompt (`s
HIGHexamples/community/pipeline_stg_mochi.py592 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…s/community/pipeline_stable_diffusion_upscale_ldm3d.py533 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/rerender_a_video.py627 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…es/community/pipeline_stable_diffusion_xl_instantid.py586 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/lpw_stable_diffusion_xl.py1437 Function invoked when calling the pipeline for generation. Args: prompt (`str`):
HIGHexamples/community/pipeline_kolors_inpainting.py123 Prepares a pair (image, mask) to be consumed by the Stable Diffusion pipeline. This means that those inputs will be
HIGHexamples/community/pipeline_kolors_inpainting.py1121 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/stable_diffusion_ipex.py583 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/mixture_tiling_sdxl.py803 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/gluegen.py607 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/instaflow_one_step.py522 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…mples/community/stable_diffusion_controlnet_inpaint.py767 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…ples/community/pipeline_kolors_differential_img2img.py819 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGHexamples/community/pipeline_fabric.py521 The call function to the pipeline for generation. Generate a trajectory of images with binary feedback. The
HIGHexamples/community/pipeline_animatediff_controlnet.py777 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGHexamples/community/pipeline_flux_semantic_guidance.py825 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
HIGH…nity/pipeline_stable_diffusion_xl_instandid_img2img.py590 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt
HIGH…ples/community/pipline_flux_fill_controlnet_Inpaint.py865 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st
315 more matches not shown…
Unused Imports2315 hits · 1618 pts
SeverityFileLineSnippet
LOWtests/models/unets/test_unet_2d_blocks.py17
LOWtests/models/testing_utils/__init__.py1
LOWtests/models/testing_utils/__init__.py1
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py2
LOWtests/models/testing_utils/__init__.py11
LOWtests/models/testing_utils/__init__.py11
LOWtests/models/testing_utils/__init__.py12
LOWtests/models/testing_utils/__init__.py13
LOWtests/models/testing_utils/__init__.py14
LOWtests/models/testing_utils/__init__.py14
LOWtests/models/testing_utils/__init__.py15
LOWtests/models/testing_utils/__init__.py15
LOWtests/models/testing_utils/__init__.py15
LOWtests/models/testing_utils/__init__.py15
LOWtests/models/testing_utils/__init__.py16
LOWtests/models/testing_utils/__init__.py16
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py17
LOWtests/models/testing_utils/__init__.py36
LOWtests/models/testing_utils/__init__.py37
LOWutils/check_forward_call_docstrings.py45
LOW…ples/reinforcement_learning/run_diffuser_locomotion.py1
LOWexamples/server-async/utils/__init__.py1
LOWexamples/server-async/utils/__init__.py2
LOWexamples/inference/inpainting.py3
LOWexamples/inference/image_to_image.py3
LOWexamples/community/pipeline_prompt2prompt.py15
LOWscripts/convert_sana_to_diffusers.py2
LOWscripts/convert_sana_video_to_diffusers.py2
LOWscripts/convert_sana_controlnet_to_diffusers.py2
LOWsrc/diffusers/__init__.py5
LOWsrc/diffusers/__init__.py936
LOWsrc/diffusers/__init__.py937
LOWsrc/diffusers/__init__.py945
LOWsrc/diffusers/__init__.py953
LOWsrc/diffusers/__init__.py961
LOWsrc/diffusers/__init__.py969
LOWsrc/diffusers/__init__.py977
LOWsrc/diffusers/__init__.py985
2255 more matches not shown…
Deep Nesting1414 hits · 1379 pts
SeverityFileLineSnippet
LOWtests/testing_utils.py880
LOWtests/testing_utils.py1099
LOWtests/testing_utils.py1641
LOW…sts/modular_pipelines/test_modular_pipelines_common.py328
LOW…sts/modular_pipelines/test_modular_pipelines_common.py418
LOWtests/others/test_dependencies.py25
LOWtests/others/test_video_processor.py31
LOWtests/others/test_video_processor.py76
LOWtests/pipelines/test_pipelines_common.py1433
LOWtests/pipelines/test_pipelines_common.py1627
LOWtests/pipelines/test_pipelines_common.py1802
LOWtests/pipelines/test_pipelines_common.py1904
LOWtests/pipelines/test_pipelines_common.py2072
LOWtests/pipelines/test_pipelines_common.py2129
LOW…ble_diffusion_adapter/test_stable_diffusion_adapter.py428
LOW…ble_diffusion_adapter/test_stable_diffusion_adapter.py492
LOW…ble_diffusion_adapter/test_stable_diffusion_adapter.py521
LOWtests/pipelines/ltx2/test_ltx2_hdr.py287
LOW…elines/ip_adapters/test_ip_adapter_stable_diffusion.py104
LOWtests/pipelines/z_image/test_z_image_img2img.py204
LOWtests/pipelines/z_image/test_z_image_inpaint.py213
LOWtests/pipelines/z_image/test_z_image.py197
LOW…table_diffusion_xl/test_stable_diffusion_xl_adapter.py458
LOW…table_diffusion_xl/test_stable_diffusion_xl_adapter.py520
LOW…table_diffusion_xl/test_stable_diffusion_xl_adapter.py549
LOW…ts/pipelines/nucleusmoe_image/test_nucleusmoe_image.py238
LOWtests/models/test_modeling_common.py169
LOWtests/models/test_modeling_common.py406
LOWtests/models/test_modeling_common.py1861
LOWtests/models/test_modeling_common.py2289
LOWtests/models/unets/test_models_unet_2d_condition.py95
LOWtests/models/unets/test_models_unet_2d_condition.py150
LOWtests/models/unets/test_models_unet_2d_condition.py250
LOWtests/models/unets/test_models_unet_2d_condition.py308
LOWtests/models/testing_utils/memory.py316
LOWtests/models/testing_utils/quantization.py243
LOWtests/models/testing_utils/quantization.py274
LOWtests/models/testing_utils/cache.py122
LOWtests/models/testing_utils/common.py60
LOWtests/quantization/bnb/test_4bit.py777
LOWtests/lora/utils.py1486
LOWtests/lora/utils.py1891
LOWtests/schedulers/test_scheduler_dpm_single.py179
LOWtests/schedulers/test_scheduler_dpm_single.py198
LOWtests/schedulers/test_schedulers.py672
LOWtests/schedulers/test_scheduler_dpm_multi_inverse.py146
LOWtests/schedulers/test_scheduler_dpm_multi_inverse.py165
LOW…s/schedulers/test_scheduler_edm_dpmsolver_multistep.py149
LOW…s/schedulers/test_scheduler_edm_dpmsolver_multistep.py170
LOWtests/schedulers/test_scheduler_deis.py168
LOWtests/schedulers/test_scheduler_deis.py187
LOWtests/schedulers/test_scheduler_dpm_multi.py180
LOWtests/schedulers/test_scheduler_dpm_multi.py199
LOWtests/schedulers/test_scheduler_unipc.py165
LOWtests/schedulers/test_scheduler_unipc.py235
LOWutils/label_issues.py72
LOWutils/log_reports.py17
LOWutils/consolidated_test_report.py24
LOWutils/consolidated_test_report.py92
LOWutils/consolidated_test_report.py136
1354 more matches not shown…
Over-Commented Block1348 hits · 1342 pts
SeverityFileLineSnippet
LOWsetup.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOWsetup.py161#
LOWtests/conftest.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOW…/single_file/test_model_wan_autoencoder_single_file.py1# coding=utf-8
LOWtests/single_file/test_lumina2_transformer.py1# coding=utf-8
LOW…single_file/test_model_flux_transformer_single_file.py1# coding=utf-8
LOWtests/single_file/test_model_vae_single_file.py1# coding=utf-8
LOW…s/single_file/test_model_autoencoder_dc_single_file.py1# coding=utf-8
LOWtests/single_file/test_model_controlnet_single_file.py1# coding=utf-8
LOW…ingle_file/test_model_wan_transformer3d_single_file.py1# coding=utf-8
LOW…/single_file/test_model_sd_cascade_unet_single_file.py1# coding=utf-8
LOW…s/single_file/test_model_motion_adapter_single_file.py1# coding=utf-8
LOW…/modular_pipelines/test_conditional_pipeline_blocks.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOW…dular_pipelines/helios/test_modular_pipeline_helios.py1# coding=utf-8
LOW…sts/modular_pipelines/ltx/test_modular_pipeline_ltx.py1# coding=utf-8
LOW…s/modular_pipelines/flux/test_modular_pipeline_flux.py1# coding=utf-8
LOW…modular_pipelines/flux2/test_modular_pipeline_flux2.py1# coding=utf-8
LOW…r_pipelines/flux2/test_modular_pipeline_flux2_klein.py1# coding=utf-8
LOW…elines/flux2/test_modular_pipeline_flux2_klein_base.py1# coding=utf-8
LOW…modular_pipelines/anima/test_modular_pipeline_anima.py1# Copyright 2026 The HuggingFace Team.
LOW…ular_pipelines/qwen/test_modular_pipeline_qwenimage.py1# coding=utf-8
LOW…sts/modular_pipelines/wan/test_modular_pipeline_wan.py1# coding=utf-8
LOW…lar_pipelines/z_image/test_modular_pipeline_z_image.py1# coding=utf-8
LOW…iffusion_3/test_modular_pipeline_stable_diffusion_3.py1# coding=utf-8
LOW…fusion_xl/test_modular_pipeline_stable_diffusion_xl.py1# coding=utf-8
LOW…uan_video1_5/test_modular_pipeline_hunyuan_video1_5.py1# coding=utf-8
LOW…lines/ernie_image/test_modular_pipeline_ernie_image.py1# coding=utf-8
LOWtests/others/test_utils.py1# coding=utf-8
LOWtests/others/test_ema.py1# coding=utf-8
LOWtests/others/test_hub_utils.py1# coding=utf-8
LOWtests/others/test_dependencies.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOWtests/others/test_check_copies.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOWtests/others/test_check_dummies.py1# Copyright 2025 The HuggingFace Team. All rights reserved.
LOWtests/others/test_flashpack.py1# coding=utf-8
LOWtests/others/test_training.py1# coding=utf-8
LOWtests/others/test_image_processor.py1# coding=utf-8
LOWtests/others/test_config.py1# coding=utf-8
LOWtests/others/test_video_processor.py1# coding=utf-8
LOWtests/pipelines/test_pipelines.py1# coding=utf-8
LOWtests/pipelines/test_pipelines_combined.py1# coding=utf-8
LOWtests/pipelines/test_pipelines_auto.py1# coding=utf-8
LOW…ble_diffusion_adapter/test_stable_diffusion_adapter.py1# coding=utf-8
LOWtests/pipelines/qwenimage/test_qwenimage_controlnet.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/qwenimage/test_qwenimage_edit.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/qwenimage/test_qwenimage_inpaint.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/qwenimage/test_qwenimage_edit_plus.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/qwenimage/test_qwenimage.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/mochi/test_mochi.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/helios/test_helios.py1# Copyright 2025 The HuggingFace Team.
LOWtests/pipelines/kolors/test_kolors.py1# coding=utf-8
LOWtests/pipelines/kolors/test_kolors_img2img.py1# coding=utf-8
LOWtests/pipelines/kandinsky/test_kandinsky_img2img.py1# coding=utf-8
LOWtests/pipelines/kandinsky/test_kandinsky.py1# coding=utf-8
LOWtests/pipelines/kandinsky/test_kandinsky_combined.py1# coding=utf-8
LOWtests/pipelines/kandinsky/test_kandinsky_prior.py1# coding=utf-8
LOWtests/pipelines/kandinsky/test_kandinsky_inpaint.py1# coding=utf-8
LOWtests/pipelines/motif_video/test_motif_video.py1# Copyright 2026 The HuggingFace Team. All rights reserved.
LOW…/pipelines/motif_video/test_motif_video_image2video.py1# Copyright 2026 The HuggingFace Team. All rights reserved.
LOW…ipelines/controlnet_sd3/test_controlnet_inpaint_sd3.py1# coding=utf-8
1288 more matches not shown…
Decorative Section Separators249 hits · 736 pts
SeverityFileLineSnippet
MEDIUMtests/pipelines/marigold/test_marigold_depth.py15# --------------------------------------------------------------------------
MEDIUMtests/pipelines/marigold/test_marigold_depth.py18# --------------------------------------------------------------------------
MEDIUMtests/pipelines/marigold/test_marigold_intrinsics.py15# --------------------------------------------------------------------------
MEDIUMtests/pipelines/marigold/test_marigold_intrinsics.py18# --------------------------------------------------------------------------
MEDIUMtests/pipelines/marigold/test_marigold_normals.py15# --------------------------------------------------------------------------
MEDIUMtests/pipelines/marigold/test_marigold_normals.py18# --------------------------------------------------------------------------
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py45# ---------------------------------------------------------------------------
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py47# ---------------------------------------------------------------------------
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py86# ---------------------------------------------------------------------------
MEDIUM…sts/models/autoencoders/test_models_autoencoder_rae.py88# ---------------------------------------------------------------------------
MEDIUMtests/models/testing_utils/attention.py34# ---------------------------------------------------------------------------
MEDIUMtests/models/testing_utils/attention.py36# ---------------------------------------------------------------------------
MEDIUMdocs/source/en/training/nemo_automodel.md144# ── Experiment tracking (optional) ──────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md152# ── Model ───────────────────────────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md159# ── Training schedule ───────────────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md169# ── Data ────────────────────────────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md186# ── Optimizer ───────────────────────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md195# ── Learning rate scheduler ─────────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md202# ── Flow matching ───────────────────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md219# ── FSDP2 distributed training ──────────────────────────────────────────────
MEDIUMdocs/source/en/training/nemo_automodel.md230# ── Checkpointing ──────────────────────────────────────────────────────────
MEDIUMdocs/source/en/api/pipelines/control_flux_inpaint.md47# ---------------------------------------------------------------
MEDIUMdocs/source/en/api/pipelines/control_flux_inpaint.md57# ---------------------------------------------------------------
MEDIUM…cts/onnxruntime/textual_inversion/textual_inversion.py79# ------------------------------------------------------------------------------
MEDIUM…/intel_opts/textual_inversion_dfq/textual_inversion.py46# ------------------------------------------------------------------------------
MEDIUM…intel_opts/textual_inversion/textual_inversion_bf16.py49# ------------------------------------------------------------------------------
MEDIUM…cts/multi_token_textual_inversion/textual_inversion.py74# ------------------------------------------------------------------------------
MEDIUM…ulti_token_textual_inversion/textual_inversion_flax.py56# ------------------------------------------------------------------------------
MEDIUMexamples/textual_inversion/textual_inversion.py81# ------------------------------------------------------------------------------
MEDIUMexamples/textual_inversion/textual_inversion_sdxl.py76# ------------------------------------------------------------------------------
MEDIUMexamples/textual_inversion/textual_inversion_flax.py56# ------------------------------------------------------------------------------
MEDIUMexamples/community/lpw_stable_diffusion.py31# ------------------------------------------------------------------------------
MEDIUMexamples/community/lpw_stable_diffusion_onnx.py54# ------------------------------------------------------------------------------
MEDIUM…line_stable_diffusion_xl_controlnet_adapter_inpaint.py1642 # ----------------------------------------------------------------
MEDIUMexamples/community/imagic_stable_diffusion.py46# ------------------------------------------------------------------------------
MEDIUMexamples/community/README.md499 # ------------------------------------------------
MEDIUMexamples/community/README.md504 # -------------------------------------------------
MEDIUMexamples/community/lpw_stable_diffusion_xl.py1## ----------------------------------------------------------
MEDIUMexamples/community/lpw_stable_diffusion_xl.py7## -----------------------------------------------------------
MEDIUMexamples/community/lpw_stable_diffusion_xl.py467# ----------------------------------------------------------------------------------------------------------------------
MEDIUMexamples/community/lpw_stable_diffusion_xl.py469# ----------------------------------------------------------------------------------------------------------------------
MEDIUMexamples/community/marigold_depth_estimation.py14# --------------------------------------------------------------------------
MEDIUMexamples/community/marigold_depth_estimation.py18# --------------------------------------------------------------------------
MEDIUMexamples/community/pipeline_stable_diffusion_xl_t5.py144 # ------------------------------------------------------------------
MEDIUMexamples/community/pipeline_stable_diffusion_xl_t5.py147 # ------------------------------------------------------------------
MEDIUMscripts/convert_ace_step_to_diffusers.py129 # =========================================================================
MEDIUMscripts/convert_ace_step_to_diffusers.py131 # =========================================================================
MEDIUMscripts/convert_ace_step_to_diffusers.py196 # =========================================================================
MEDIUMscripts/convert_ace_step_to_diffusers.py198 # =========================================================================
MEDIUMscripts/convert_ace_step_to_diffusers.py304 # =========================================================================
MEDIUMscripts/convert_ace_step_to_diffusers.py323 # =========================================================================
MEDIUMscripts/convert_ace_step_to_diffusers.py329 # =========================================================================
MEDIUMsrc/diffusers/modular_pipelines/mellon_node_utils.py298 # =========================================================================
MEDIUMsrc/diffusers/modular_pipelines/mellon_node_utils.py300 # =========================================================================
MEDIUMsrc/diffusers/modular_pipelines/mellon_node_utils.py390 # =========================================================================
MEDIUMsrc/diffusers/modular_pipelines/mellon_node_utils.py392 # =========================================================================
MEDIUM…/diffusers/modular_pipelines/modular_pipeline_utils.py357# ======================================================
MEDIUM…/diffusers/modular_pipelines/modular_pipeline_utils.py359# ======================================================
MEDIUM…fusers/modular_pipelines/qwenimage/prompt_templates.py25# ============================================
MEDIUM…fusers/modular_pipelines/qwenimage/prompt_templates.py27# ============================================
189 more matches not shown…
Self-Referential Comments130 hits · 302 pts
SeverityFileLineSnippet
MEDIUMtests/others/test_check_dummies.py96 expected_dummy_pytorch_file = """# This file is autogenerated by the command `make fix-copies`, do not edit.
MEDIUMtests/pipelines/ace_step/test_ace_step.py160 # Create a tiny Qwen3Model for testing (matching the real Qwen3-Embedding-0.6B architecture)
MEDIUMtests/pipelines/sana_video/test_sana_video_i2v.py131 # Create a dummy image input (PIL Image)
MEDIUM…ines/visualcloze/test_pipeline_visualcloze_combined.py127 # Create an image list that conforms to the VisualCloze input format
MEDIUM…es/visualcloze/test_pipeline_visualcloze_generation.py129 # Create an image list that conforms to the VisualCloze input format
MEDIUMtests/models/testing_utils/attention.py213 # Create a dict of new processors
MEDIUMtests/models/testing_utils/attention.py235 # Create a dict with wrong number of processors
MEDIUMutils/consolidated_test_report.py503 # Create a list of failing tests for each module
MEDIUMutils/consolidated_test_report.py581 # Create a more compact summary section
MEDIUMutils/consolidated_test_report.py587 # Create the test suites table in markdown format
MEDIUMutils/consolidated_test_report.py621 # Create the Slack payload with character limit enforcement
MEDIUMutils/check_support_list.py68 # Define the checks we need to perform
MEDIUMutils/tests_fetcher.py938 # Create the map that will give us all impacted modules.
MEDIUMutils/tests_fetcher.py980 # Create a map that maps test categories to test files, i.e. `models/bert` -> [...test_modeling_bert.py, ...]
MEDIUMutils/check_dummies.py124 dummy_file = "# This file is autogenerated by the command `make fix-copies`, do not edit.\n"
MEDIUMexamples/instruct_pix2pix/train_instruct_pix2pix.py1008 # Create the pipeline using the trained modules and save it.
MEDIUM…amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py1219 # Create the pipeline using the trained modules and save it.
MEDIUMexamples/controlnet/train_controlnet_flux.py1399 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/controlnet/train_controlnet_sdxl.py1343 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/controlnet/train_controlnet.py1156 # Create the pipeline using the trained modules and save it.
MEDIUMexamples/controlnet/train_controlnet_sd3.py1434 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/flux-control/train_control_lora_flux.py1111 # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed.
MEDIUMexamples/flux-control/train_control_lora_flux.py1352 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/flux-control/train_control_flux.py966 # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed.
MEDIUMexamples/flux-control/train_control_flux.py1206 # Create the pipeline using using the trained modules and save it.
MEDIUM…andinsky2_2/text_to_image/train_text_to_image_prior.py913 # Create the pipeline using the trained modules and save it.
MEDIUM…dinsky2_2/text_to_image/train_text_to_image_decoder.py882 # Create the pipeline using the trained modules and save it.
MEDIUMexamples/t2i_adapter/train_t2i_adapter_sdxl.py1301 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/research_projects/gligen/train_gligen_text.py674 # Create the pipeline using using the trained modules and save it.
MEDIUM…rch_projects/controlnet/train_controlnet_webdataset.py1445 # Create the pipeline using using the trained modules and save it.
MEDIUM…rojects/dreambooth_inpaint/train_dreambooth_inpaint.py791 # Create the pipeline using using the trained modules and save it.
MEDIUM…cts/onnxruntime/textual_inversion/textual_inversion.py920 # Create the pipeline using the trained modules and save it.
MEDIUM…jects/onnxruntime/text_to_image/train_text_to_image.py927 # Create the pipeline using the trained modules and save it.
MEDIUM…ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py1116 # Create the pipeline using the trained modules and save it.
MEDIUM…/wuerstchen/text_to_image/train_text_to_image_prior.py886 # Create the pipeline using the trained modules and save it.
MEDIUM…stchen/text_to_image/train_text_to_image_lora_prior.py892 # Create the pipeline using the trained modules and save it.
MEDIUM…research_projects/autoencoderkl/train_autoencoderkl.py1023 # Create the pipeline using using the trained modules and save it.
MEDIUM…ber_loss_training/text_to_image/train_text_to_image.py1111 # Create the pipeline using the trained modules and save it.
MEDIUM…led_huber_loss_training/dreambooth/train_dreambooth.py1463 # Create the pipeline using the trained modules and save it.
MEDIUM…i_subject_dreambooth/train_multi_subject_dreambooth.py1171 # Create the pipeline using the trained modules and save it.
MEDIUM…/intel_opts/textual_inversion_dfq/textual_inversion.py935 # Create the pipeline using using the trained modules and save it.
MEDIUM…intel_opts/textual_inversion/textual_inversion_bf16.py612 # Create the pipeline using using the trained modules and save it.
MEDIUM…cts/multi_token_textual_inversion/textual_inversion.py905 # Create the pipeline using using the trained modules and save it.
MEDIUM…ulti_token_textual_inversion/textual_inversion_flax.py609 # Create the pipeline using using the trained modules and save it.
MEDIUM…research_projects/sd3_lora_colab/compute_embeddings.py87 # Create a DataFrame
MEDIUM…_projects/flux_lora_quantization/compute_embeddings.py82 # Create a DataFrame
MEDIUMexamples/cogview4-control/train_control_cogview4.py976 # Create a pipeline for text encoding. We will move this pipeline to GPU/CPU as needed.
MEDIUMexamples/cogview4-control/train_control_cogview4.py1199 # Create the pipeline using using the trained modules and save it.
MEDIUM…s/consistency_distillation/train_lcm_distill_sd_wds.py1412 # Create the pipeline using using the trained modules and save it.
MEDIUM…onsistency_distillation/train_lcm_distill_lora_sdxl.py1441 # Create the pipeline using using the trained modules and save it.
MEDIUM…sistency_distillation/train_lcm_distill_lora_sd_wds.py1447 # Create the pipeline using using the trained modules and save it.
MEDIUM…stency_distillation/train_lcm_distill_lora_sdxl_wds.py1510 # Create the pipeline using using the trained modules and save it.
MEDIUM…consistency_distillation/train_lcm_distill_sdxl_wds.py1515 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/model_search/pipeline_easy.py785 # Initialize additional variables with default values
MEDIUMexamples/textual_inversion/textual_inversion.py977 # Create the pipeline using the trained modules and save it.
MEDIUMexamples/textual_inversion/textual_inversion_sdxl.py1066 # Create the pipeline using the trained modules and save it.
MEDIUMexamples/textual_inversion/textual_inversion_flax.py636 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/text_to_image/train_text_to_image.py1118 # Create the pipeline using the trained modules and save it.
MEDIUMexamples/text_to_image/train_text_to_image_flax.py582 # Create the pipeline using using the trained modules and save it.
MEDIUMexamples/dreambooth/train_dreambooth_flax.py630 # Create the pipeline using the trained modules and save it.
70 more matches not shown…
Excessive Try-Catch Wrapping161 hits · 169 pts
SeverityFileLineSnippet
MEDIUMtests/testing_utils.py281def parse_flag_from_env(key, default=False):
LOWtests/testing_utils.py1259 except Exception as err:
LOWtests/testing_utils.py1311 except Exception as e:
LOWtests/testing_utils.py1402 except Exception as e:
LOWtests/testing_utils.py1424 except Exception as e:
LOW…sts/modular_pipelines/test_modular_pipelines_common.py40 except Exception:
LOWtests/others/test_dependencies.py79 except Exception:
LOWtests/pipelines/test_pipelines.py135 except Exception:
LOWtests/pipelines/prx/test_pipeline_prx.py32 except Exception:
LOWtests/pipelines/prx/test_pipeline_prx.py130 except Exception:
LOWtests/pipelines/prx/test_pipeline_prx.py149 except Exception:
LOWtests/models/test_modeling_common.py133 except Exception:
LOWtests/models/testing_utils/attention.py337 except Exception as e:
LOWtests/models/testing_utils/attention.py405 except Exception as e:
LOWtests/models/testing_utils/parallelism.py104 except Exception as e:
LOWtests/models/testing_utils/parallelism.py162 except Exception as e:
LOWtests/models/testing_utils/parallelism.py221 except Exception as e:
LOWutils/label_issues.py118 except Exception:
MEDIUMutils/label_issues.py86def main():
MEDIUMutils/consolidated_test_report.py88 print(f"Error parsing {file_path}: {e}")
MEDIUMutils/consolidated_test_report.py131 print(f"Error parsing durations file {file_path.replace('_stats.txt', '_durations.txt')}: {e}")
MEDIUMutils/consolidated_test_report.py235 print(f"Error parsing failures in {file_path}: {e}")
MEDIUMutils/consolidated_test_report.py301 print(f"Error parsing summary file: {e}")
MEDIUMutils/consolidated_test_report.py727 print(f"Error: Reports directory '{args.reports_dir}' does not exist.")
MEDIUMutils/consolidated_test_report.py784 print(f"Error sending report to Slack: {e}")
LOWutils/consolidated_test_report.py87 except Exception as e:
LOWutils/consolidated_test_report.py130 except Exception as e:
LOWutils/consolidated_test_report.py170 except Exception:
LOWutils/consolidated_test_report.py234 except Exception as e:
LOWutils/consolidated_test_report.py300 except Exception as e:
LOWutils/consolidated_test_report.py783 except Exception as e:
LOWutils/tests_fetcher.py1115 except Exception as e:
LOWutils/modular_auto_docstring.py92 except Exception as e:
LOWutils/modular_auto_docstring.py110 except Exception as e:
LOWutils/modular_auto_docstring.py230 except Exception as e:
MEDIUMutils/generate_model_tests.py560 print(f"Error: File not found: {args.model_filepath}", file=sys.stderr)
MEDIUMutils/generate_model_tests.py566 print(f"Error: No model classes found in {args.model_filepath}", file=sys.stderr)
MEDIUMutils/generate_model_tests.py573 print(f"Error: Class '{args.class_name}' not found. Available: {available}", file=sys.stderr)
LOWutils/fetch_torch_cuda_pipeline_test_matrix.py69 except Exception as e:
MEDIUMutils/fetch_torch_cuda_pipeline_test_matrix.py66def fetch_pipeline_modules_to_test():
LOWdocs/source/en/optimization/attention_backends.md112except Exception as e:
LOWdocs/source/en/using-diffusers/create_a_server.md48 except Exception as e:
LOW…rch_projects/controlnet/train_controlnet_webdataset.py189 except Exception:
MEDIUM…rch_projects/controlnet/train_controlnet_webdataset.py178def __call__(self, x):
LOW…usion/convert_original_promptdiffusion_to_diffusers.py867 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1007 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1636 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1722 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1762 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1770 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1792 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1837 except Exception:
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1850 except Exception:
LOW…_xla/training/text_to_image/train_text_to_image_xla.py150 except Exception as e:
LOWexamples/research_projects/rdm/retriever.py88 except Exception as e:
LOWexamples/research_projects/intel_opts/inference_bf16.py38except Exception:
LOW…cts/multi_token_textual_inversion/textual_inversion.py625 except Exception as e:
LOWexamples/cosmos/train_cosmos_predict25_lora.py348 except Exception as e:
LOWexamples/cosmos/train_cosmos_predict25_lora.py376 except Exception as e:
LOWexamples/cosmos/train_cosmos_predict25_lora.py406 except Exception as e:
101 more matches not shown…
Redundant / Tautological Comments94 hits · 100 pts
SeverityFileLineSnippet
LOW…sts/modular_pipelines/test_modular_pipelines_common.py290 # Check if cosine similarity is NaN (which can happen if vectors are zero or very small)
LOWtests/pipelines/test_pipelines_common.py2797 # Check if warning is raise when no attention_weight_callback is provided
LOWtests/pipelines/test_pipelines_common.py2804 # Check if error raised when unsupported tensor format used
LOWtests/pipelines/test_pipelines_common.py2880 # Check if faster_cache denoiser hook is attached
LOWtests/pipelines/test_pipelines_common.py2888 # Check if all blocks have faster_cache block hook attached
LOWtests/models/test_modeling_common.py1625 # Check if the variant is present as a substring in the checkpoints.
LOWtests/models/test_modeling_common.py1633 # Check if the sharded checkpoints were serialized in the right format.
LOWtests/models/unets/test_models_unet_2d_condition.py831 # Check if input and output shapes are the same
LOW…ts/models/controlnets/test_models_controlnet_cosmos.py190 # Set encoder_hidden_states to (text_context, None)
LOWtests/models/testing_utils/attention.py181 # Check if model has attention processors
LOWtests/models/testing_utils/quantization.py292 # Check if this module is in the exclusion list
LOWtests/models/testing_utils/quantization.py306 # Check if this module is NOT in the exclusion list
LOWtests/models/testing_utils/common.py520 # Check if the right number of shards exists
LOWtests/models/testing_utils/common.py560 # Check if the right number of shards exists
LOWtests/models/testing_utils/common.py601 # Check if the right number of shards exists
LOWtests/quantization/bnb/test_mixed_int8.py552 # Check if inference works.
LOWtests/quantization/bnb/test_4bit.py577 # Check if inference works.
LOWutils/consolidated_test_report.py145 # Check if it's a short stack format
LOWutils/consolidated_test_report.py733 # Check if we found any test results
LOWutils/check_inits.py100 # Check if the backend declaration is inside a try block:
LOWutils/check_inits.py159 # Check if the backend declaration is inside a try block:
LOWutils/custom_init_isort.py257 # Check if the block contains some `_import_structure`s thingy to sort.
LOW…amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py813 # Set UNet to trainable.
LOWexamples/controlnet/train_controlnet_flux.py1339 # Check if the gradient of each model parameter contains NaN
LOW…andinsky2_2/text_to_image/train_text_to_image_prior.py533 # Set prior to trainable.
LOW…dinsky2_2/text_to_image/train_text_to_image_decoder.py528 # Set unet to trainable.
LOW…cts/onnxruntime/textual_inversion/textual_inversion.py658 # Check if initializer_token is a single token or a sequence of tokens
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1463 # Check if we have a SDXL or SD model and initialize default pipeline
LOW…es/research_projects/ip_adapter/tutorial_train_plus.py135 # Check if 'latents' exists in both the saved state_dict and the current model's state_dict
LOW…es/research_projects/ip_adapter/tutorial_train_plus.py138 # Check if the shapes are mismatched
LOW…es/research_projects/ip_adapter/tutorial_train_plus.py153 # Verify if the weights have changed
LOW…earch_projects/ip_adapter/tutorial_train_ip-adapter.py143 # Verify if the weights have changed
LOW…/research_projects/ip_adapter/tutorial_train_faceid.py141 # Verify if the weights have changed
LOW…es/research_projects/ip_adapter/tutorial_train_sdxl.py203 # Verify if the weights have changed
LOW…/intel_opts/textual_inversion_dfq/textual_inversion.py500 # Check if initializer_token is a single token or a sequence of tokens
LOW…intel_opts/textual_inversion/textual_inversion_bf16.py415 # Check if initializer_token is a single token or a sequence of tokens
LOW…ulti_token_textual_inversion/textual_inversion_flax.py396 # Check if initializer_token is a single token or a sequence of tokens
LOW…ffusion_training/test_dreambooth_lora_flux_advanced.py316 # Check if the metadata was properly serialized.
LOWexamples/server-async/Pipelines.py73 # Check if model exists in PresetModels
LOWexamples/custom_diffusion/train_custom_diffusion.py861 # Check if initializer_token is a single token or a sequence of tokens
LOWexamples/model_search/pipeline_easy.py434 # Check if the keyword is an HTTP or HTTPS URL
LOWexamples/model_search/pipeline_easy.py437 # Check if the keyword is a file
LOWexamples/model_search/pipeline_easy.py443 # Check if the keyword is a directory
LOWexamples/model_search/pipeline_easy.py451 # Check if the keyword is a Civitai URL
LOWexamples/model_search/pipeline_easy.py457 # Check if the keyword starts with any valid URL prefixes
LOWexamples/model_search/pipeline_easy.py469 # Check if the keyword matches a Hugging Face repository format
LOWexamples/model_search/pipeline_easy.py527 # Check if the file already exists at the save path
LOWexamples/model_search/pipeline_easy.py538 # Open the file in the appropriate mode (write or append)
LOWexamples/model_search/pipeline_easy.py850 # Check if the file passes security scans and has a valid extension
LOWexamples/model_search/pipeline_easy.py1030 # Check if tokenizer and text encoder are provided
LOWexamples/model_search/pipeline_easy.py1047 # Check if token is already in tokenizer vocabulary
LOWexamples/textual_inversion/textual_inversion.py685 # Check if initializer_token is a single token or a sequence of tokens
LOWexamples/textual_inversion/textual_inversion_sdxl.py693 # Check if initializer_token is a single token or a sequence of tokens
LOWexamples/textual_inversion/textual_inversion_flax.py409 # Check if initializer_token is a single token or a sequence of tokens
LOWexamples/dreambooth/test_dreambooth_lora_qwenimage.py236 # Check if the metadata was properly serialized.
LOWexamples/dreambooth/test_dreambooth_lora_flux2_klein.py250 # Check if the metadata was properly serialized.
LOWexamples/dreambooth/test_dreambooth_lora_flux2.py250 # Check if the metadata was properly serialized.
LOWexamples/dreambooth/test_dreambooth_lora_sana.py236 # Check if the metadata was properly serialized.
LOWexamples/dreambooth/test_dreambooth_lora_flux.py269 # Check if the metadata was properly serialized.
LOW…amples/dreambooth/test_dreambooth_lora_flux_kontext.py269 # Check if the metadata was properly serialized.
34 more matches not shown…
Slop Phrases90 hits · 94 pts
SeverityFileLineSnippet
MEDIUMtests/pipelines/test_pipelines_auto.py298 # make sure you can use pag with inpaint-specific pipeline
LOWtests/pipelines/test_pipelines_auto.py298 # make sure you can use pag with inpaint-specific pipeline
LOWutils/release.py128# print("Cleaning main README, don't forget to run `make fix-copies`.")
LOWutils/release.py128# print("Cleaning main README, don't forget to run `make fix-copies`.")
LOWutils/release.py148# print("Cleaning main README, don't forget to run `make fix-copies`.")
LOWutils/release.py148# print("Cleaning main README, don't forget to run `make fix-copies`.")
LOW…/unconditional_image_generation/train_unconditional.py331 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/instruct_pix2pix/train_instruct_pix2pix.py560 # make sure to pop weight so that corresponding model is not saved again
LOW…amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py616 # make sure to pop weight so that corresponding model is not saved again
LOW…amples/cogvideo/train_cogvideox_image_to_video_lora.py1119 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/cogvideo/train_cogvideox_lora.py1140 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/flux-control/train_control_lora_flux.py912 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/flux-control/train_control_flux.py836 # make sure to pop weight so that corresponding model is not saved again
LOW…andinsky2_2/text_to_image/train_text_to_image_prior.py552 # make sure to pop weight so that corresponding model is not saved again
LOW…dinsky2_2/text_to_image/train_text_to_image_decoder.py559 # make sure to pop weight so that corresponding model is not saved again
LOW…/unconditional_image_generation/train_unconditional.py322 # make sure to pop weight so that corresponding model is not saved again
LOW…jects/onnxruntime/text_to_image/train_text_to_image.py549 # make sure to pop weight so that corresponding model is not saved again
LOW…usion/convert_original_promptdiffusion_to_diffusers.py1020 # make sure to remove all keys > 22
LOWexamples/research_projects/realfill/train_realfill.py654 # make sure to pop weight so that corresponding model is not saved again
LOW…ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py651 # make sure to pop weight so that corresponding model is not saved again
LOW…/wuerstchen/text_to_image/train_text_to_image_prior.py551 # make sure to pop weight so that corresponding model is not saved again
LOW…stchen/text_to_image/train_text_to_image_lora_prior.py565 # make sure to pop weight so that corresponding model is not saved again
LOW…/research_projects/sana/train_sana_sprint_diffusers.py1151 # make sure to pop weight so that corresponding model is not saved again
LOW…s/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py771 # make sure to pop weight so that corresponding model is not saved again
LOW…jects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py664 # make sure to pop weight so that corresponding model is not saved again
LOW…ber_loss_training/text_to_image/train_text_to_image.py676 # make sure to pop weight so that corresponding model is not saved again
LOW…oss_training/text_to_image/train_text_to_image_sdxl.py780 # make sure to pop weight so that corresponding model is not saved again
LOW…raining/text_to_image/train_text_to_image_lora_sdxl.py724 # make sure to pop weight so that corresponding model is not saved again
LOW…led_huber_loss_training/dreambooth/train_dreambooth.py1003 # make sure to pop weight so that corresponding model is not saved again
LOW…uber_loss_training/dreambooth/train_dreambooth_lora.py1000 # make sure to pop weight so that corresponding model is not saved again
LOW…loss_training/dreambooth/train_dreambooth_lora_sdxl.py1311 # make sure to pop weight so that corresponding model is not saved again
LOW…research_projects/pixart/train_pixart_controlnet_hf.py679 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/research_projects/lpl/train_sdxl_lpl.py882 # make sure to pop weight so that corresponding model is not saved again
LOW…ects/consistency_training/train_cm_ct_unconditional.py963 # make sure to pop weight so that corresponding model is not saved again
LOW…npainting/train_multi_subject_dreambooth_inpainting.py498 # make sure to pop weight so that corresponding model is not saved again
LOW…rch_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py703 # make sure to pop weight so that corresponding model is not saved again
LOW…research_projects/diffusion_dpo/train_diffusion_dpo.py605 # make sure to pop weight so that corresponding model is not saved again
LOW…/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py746 # make sure to pop weight so that corresponding model is not saved again
LOW…a_quantization/train_dreambooth_lora_flux_miniature.py737 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/cogview4-control/train_control_cogview4.py846 # make sure to pop weight so that corresponding model is not saved again
LOW…fusion_training/train_dreambooth_lora_sd15_advanced.py1350 # make sure to pop weight so that corresponding model is not saved again
LOW…fusion_training/train_dreambooth_lora_flux_advanced.py1626 # make sure to pop weight so that corresponding model is not saved again
LOW…fusion_training/train_dreambooth_lora_sdxl_advanced.py1670 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/amused/train_amused.py531 # make sure to pop weight so that corresponding model is not saved again
LOW…s/consistency_distillation/train_lcm_distill_sd_wds.py1003 # make sure to pop weight so that corresponding model is not saved again
LOW…onsistency_distillation/train_lcm_distill_lora_sdxl.py897 # make sure to pop weight so that corresponding model is not saved again
LOW…sistency_distillation/train_lcm_distill_lora_sd_wds.py1055 # make sure to pop weight so that corresponding model is not saved again
LOW…stency_distillation/train_lcm_distill_lora_sdxl_wds.py1070 # make sure to pop weight so that corresponding model is not saved again
LOW…consistency_distillation/train_lcm_distill_sdxl_wds.py1063 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/text_to_image/train_text_to_image_lora.py726 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/text_to_image/train_text_to_image.py669 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/text_to_image/train_text_to_image_sdxl.py766 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/text_to_image/train_text_to_image_lora_sdxl.py750 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/dreambooth/train_dreambooth_lora_flux2.py1330 # make sure to pop weight so that corresponding model is not saved again
LOW…ples/dreambooth/train_dreambooth_lora_flux2_img2img.py1280 # make sure to pop weight so that corresponding model is not saved again
LOW…reambooth/train_dreambooth_lora_flux2_klein_img2img.py1274 # make sure to pop weight so that corresponding model is not saved again
LOW…mples/dreambooth/train_dreambooth_lora_flux_kontext.py1474 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/dreambooth/train_dreambooth_lora_hidream.py1192 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/dreambooth/train_dreambooth.py960 # make sure to pop weight so that corresponding model is not saved again
LOWexamples/dreambooth/train_dreambooth_flux.py1236 # make sure to pop weight so that corresponding model is not saved again
30 more matches not shown…
Magic Placeholder Names9 hits · 68 pts
SeverityFileLineSnippet
HIGHexamples/dreambooth/README_qwen.md109* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_flux2.md261* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_lumina2.md109* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_flux.md121* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_sana.md109* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_sdxl.md102* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_hidream.md103* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_sd3.md108* `report_to="wandb` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use it
HIGHexamples/dreambooth/README_z_image.md156* `report_to="wandb"` will ensure the training runs are tracked on [Weights and Biases](https://wandb.ai/site). To use i
Verbosity Indicators55 hits · 64 pts
SeverityFileLineSnippet
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py256 # Step 1: Create an external model repo with custom code (requires trust_remote_code)
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py271 # Step 2: Create a custom block that references the external repo.
LOW…ular_pipelines/test_modular_pipelines_custom_blocks.py357 # Step 3: Load the pipeline from the saved directory.
LOWtests/pipelines/glm_image/test_glm_image.py299 # Step 1: Run with prompt only to get prior_token_ids from AR model
LOWtests/pipelines/glm_image/test_glm_image.py309 # Step 2: Run with both prompt and prior_token_ids — should not raise
LOWtests/models/testing_utils/quantization.py383 # Step 1: freeze all parameters
LOWtests/models/testing_utils/quantization.py390 # Step 2: add adapters to attention layers
LOWtests/models/testing_utils/quantization.py407 # Step 3: run forward and backward pass
LOWtests/models/testing_utils/quantization.py416 # Step 4: verify gradients are computed
LOWtests/quantization/bnb/test_mixed_int8.py390 # Step 1: freeze all parameters
LOWtests/quantization/bnb/test_mixed_int8.py397 # Step 2: add adapters
LOWtests/quantization/bnb/test_mixed_int8.py404 # Step 3: dummy batch
LOWtests/quantization/bnb/test_mixed_int8.py411 # Step 4: Check if the gradient is not None
LOWtests/quantization/bnb/test_4bit.py419 # Step 1: freeze all parameters
LOWtests/quantization/bnb/test_4bit.py426 # Step 2: add adapters
LOWtests/quantization/bnb/test_4bit.py433 # Step 3: dummy batch
LOWtests/quantization/bnb/test_4bit.py440 # Step 4: Check if the gradient is not None
LOWtests/hooks/test_mag_cache.py125 # Step 0: Input 10.0 -> Output 40.0 (2 blocks * 2x each)
LOWtests/hooks/test_mag_cache.py131 # Step 1: Input 11.0.
LOWtests/hooks/test_mag_cache.py160 # Step 1: Should COMPUTE (44.0) not SKIP (41.0) because of retention
LOWtests/hooks/test_mag_cache.py179 # Step 0: Compute. Input 10.0 -> Output 20.0 (1 block * 2x)
LOWtests/hooks/test_mag_cache.py186 # Step 1: Skip. Input 11.0.
LOWexamples/community/checkpoint_merger.py124 # Step 1: Load the model config and compare the checkpoints. We'll compare the model_index.json first while igno
LOWexamples/community/checkpoint_merger.py144 # Step 2: Basic Validation has succeeded. Let's download the models and save them into our local files.
LOWexamples/community/checkpoint_merger.py176 # Step 3:-
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py137 # Step 1: Collect model inputs
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py145 # Step 2: Update guider state
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py148 # Step 3: Prepare batched inputs
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py151 # Step 4: Run denoiser for each batch
LOW…iffusers/modular_pipelines/hunyuan_video1_5/denoise.py170 # Step 5: Combine predictions
LOW…c/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py794 # Step 0: include ref tokens, extract KV cache
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py741 # Step 1: Collect model inputs needed for the guidance method
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py750 # Step 2: Update guider's internal state for this denoising step
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py753 # Step 3: Prepare batched model inputs based on the guidance method
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py763 # Step 4: Run the denoiser for each batch
LOW…ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py790 # Step 5: Combine predictions using the guidance method
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py864 # Step 1: Collect model inputs needed for the guidance method
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py873 # Step 2: Update guider's internal state for this denoising step
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py876 # Step 3: Prepare batched model inputs based on the guidance method
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py886 # Step 4: Run the denoiser for each batch
LOW…yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py914 # Step 5: Combine predictions using the guidance method
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py656 # Step 1: Collect model inputs needed for the guidance method
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py663 # Step 2: Update guider's internal state for this denoising step
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py666 # Step 3: Prepare batched model inputs based on the guidance method
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py677 # Step 4: Run the denoiser for each batch
LOW…pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py704 # Step 5: Combine predictions using the guidance method
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py764 # Step 1: Collect model inputs needed for the guidance method
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py773 # Step 2: Update guider's internal state for this denoising step
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py776 # Step 3: Prepare batched model inputs based on the guidance method
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py786 # Step 4: Run the denoiser for each batch
LOW…users/pipelines/hunyuan_image/pipeline_hunyuanimage.py814 # Step 5: Combine predictions using the guidance method
LOWsrc/diffusers/models/modeling_flax_utils.py412 # Step 1: Get the pytorch file
LOWsrc/diffusers/models/modeling_flax_utils.py415 # Step 2: Convert the weights
LOWsrc/diffusers/models/modeling_flax_pytorch_utils.py108 # Step 1: Convert pytorch tensor to numpy
LOWsrc/diffusers/models/modeling_flax_pytorch_utils.py111 # Step 2: Since the model is stateless, get random Flax params
Hallucination Indicators7 hits · 50 pts
SeverityFileLineSnippet
CRITICALutils/check_repo.py673 model_types = list(diffusers.models.auto.configuration_auto.MODEL_NAMES_MAPPING.keys())
CRITICALsrc/diffusers/models/lora.py124 w_up = self.lora_linear_layer.up.weight.data.float()
CRITICALsrc/diffusers/models/lora.py125 w_down = self.lora_linear_layer.down.weight.data.float()
CRITICALsrc/diffusers/models/lora.py322 w_up = self.lora_layer.up.weight.data.float()
CRITICALsrc/diffusers/models/lora.py323 w_down = self.lora_layer.down.weight.data.float()
CRITICALsrc/diffusers/models/lora.py408 w_up = self.lora_layer.up.weight.data.float()
CRITICALsrc/diffusers/models/lora.py409 w_down = self.lora_layer.down.weight.data.float()
AI Slop Vocabulary35 hits · 46 pts
SeverityFileLineSnippet
LOWtests/single_file/single_file_testing_utils.py212 # we just pass it in here otherwise this test will fail
LOWtests/single_file/single_file_testing_utils.py232 # we just pass it in here otherwise this test will fail
LOWtests/single_file/single_file_testing_utils.py400 # we just pass it in here otherwise this test will fail
LOWtests/single_file/single_file_testing_utils.py421 # we just pass it in here otherwise this test will fail
LOWutils/consolidated_test_report.py171 pass # If we can't read the line file, just use what we have
MEDIUMutils/consolidated_test_report.py351 """Generate a comprehensive markdown report from consolidated data."""
LOWutils/check_inits.py71 # If this is a traditional init, just return.
LOW…uber_loss_training/dreambooth/train_dreambooth_lora.py912 # IF does not have a VAE so let's just set it to None
LOWexamples/research_projects/lpl/train_sdxl_lpl.py1342 # If no SNR weighting, just use mean
MEDIUMexamples/research_projects/sdxl_flax/sdxl_single.py1# Show best practices for SDXL JAX
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1718 if args.enable_t5_ti: # whether to do pivotal tuning/textual inversion for T5 as well
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1753 else: # regular te training or regular pivotal for clip
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1757 # pivotal tuning of clip & t5
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py1769 else: # regular pivotal tuning of clip & t5
MEDIUM…fusion_training/train_dreambooth_lora_flux_advanced.py2116 elif args.train_text_encoder_ti: # textual inversion / pivotal tuning
MEDIUM…ffusion_training/test_dreambooth_lora_flux_advanced.py146 # when performing pivotal tuning, all the parameters in the state dict should start
MEDIUM…ffusion_training/test_dreambooth_lora_flux_advanced.py189 # when performing pivotal tuning, all the parameters in the state dict should start
LOWexamples/dreambooth/train_dreambooth_lora_flux2.py1236 # we never offload the transformer to CPU, so we can just use the accelerator device
LOW…ples/dreambooth/train_dreambooth_lora_flux2_img2img.py1186 # we never offload the transformer to CPU, so we can just use the accelerator device
LOW…reambooth/train_dreambooth_lora_flux2_klein_img2img.py1181 # we never offload the transformer to CPU, so we can just use the accelerator device
LOWexamples/dreambooth/train_dreambooth_lora_hidream.py1134 # we never offload the transformer to CPU, so we can just use the accelerator device
LOWexamples/dreambooth/train_dreambooth_lora.py889 # IF does not have a VAE so let's just set it to None
LOWexamples/dreambooth/train_dreambooth_lora_z_image.py1224 # we never offload the transformer to CPU, so we can just use the accelerator device
LOW…amples/dreambooth/train_dreambooth_lora_flux2_klein.py1230 # we never offload the transformer to CPU, so we can just use the accelerator device
LOWexamples/dreambooth/train_dreambooth_lora_qwen_image.py1138 # we never offload the transformer to CPU, so we can just use the accelerator device
MEDIUMscripts/convert_diffusers_sdxl_lora_to_webui.py13# Dreambooth Advanced Training Script - state of the art techniques such as pivotal tuning and prodigy optimizer:
MEDIUMsrc/diffusers/modular_pipelines/components_manager.py774 """Get comprehensive information about a component.
LOWsrc/diffusers/modular_pipelines/modular_pipeline.py2106 # if it is not set yet, just set it and skip the process to check and warn below
MEDIUMsrc/diffusers/pipelines/prx/pipeline_prx.py129 """Clean text using comprehensive text processing logic."""
MEDIUMsrc/diffusers/utils/state_dict_utils.py155 # This is not a comprehensive dict as kohya format requires replacing `.` with `_` in keys,
LOWsrc/diffusers/models/attention_processor.py593 # here we simply pass along all tensors to the selected processor class
MEDIUMsrc/diffusers/models/modeling_utils.py501 # If users want to apply layerwise casting on peft layers as well, they can utilize the
LOWsrc/diffusers/models/autoencoders/vae.py631 inds[inds >= self.used.shape[0]] = 0 # simply set to zero
MEDIUMsrc/diffusers/loaders/lora_conversion_utils.py338 # not utilize it yet.
LOW…fusers/schedulers/scheduling_ltx_euler_ancestral_rf.py320 # Already at the end; simply return the current sample.
Cross-Language Confusion5 hits · 18 pts
SeverityFileLineSnippet
HIGHsetup.py51 python setup.py bdist_wheel && python setup.py sdist
HIGHsetup.py64 pip install diffusers && pip uninstall diffusers
HIGHtests/quantization/test_pipeline_level_quantization.py281 "llm_int8_skip_modules": null,
HIGHutils/label_issues.py43Example: {"labels": ["bug", "models", "needs-code-example"], "model_name": null}
HIGHsrc/diffusers/pipelines/ace_step/pipeline_ace_step.py1171 # Batched guidance: stack (cond, null) on batch dim and run the DiT once.
Dead Code4 hits · 8 pts
SeverityFileLineSnippet
MEDIUM…research_projects/pixart/train_pixart_controlnet_hf.py686
MEDIUM…rs/modular_pipelines/z_image/modular_blocks_z_image.py260
MEDIUM…rs/modular_pipelines/z_image/modular_blocks_z_image.py261
MEDIUM…rs/modular_pipelines/z_image/modular_blocks_z_image.py262
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWexamples/profiling/run_profiling.sh4# Usage:
LOWscripts/convert_longcat_audio_dit_to_diffusers.py16# Usage:
LOWscripts/convert_ace_step_to_diffusers.py3# Usage: