🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
12532 matches across 18 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | CONTRIBUTING.md | 0 | output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im |
| HIGH | docs/source/zh/conceptual/contribution.md | 0 | output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im |
| HIGH | docs/source/ko/conceptual/contribution.md | 0 | output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im |
| HIGH | docs/source/en/conceptual/contribution.md | 0 | output 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.py | 0 | output class for alt diffusion pipelines. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil im |
| HIGH | tests/testing_utils.py | 0 | helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando |
| HIGH | src/diffusers/utils/testing_utils.py | 0 | helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando |
| HIGH | src/diffusers/utils/torch_utils.py | 0 | helper function for reproducible behavior during distributed training. see - https://pytorch.org/docs/stable/notes/rando |
| 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 |
| HIGH | tests/pipelines/test_pipelines_common.py | 0 | tests for ip-adapter. the following scenarios are tested: - single ip-adapter with scale=0 should produce same output as |
| HIGH | tests/pipelines/test_pipelines_common.py | 0 | tests 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.py | 0 | checks if the lora layers are correctly set with peft |
| HIGH | tests/models/test_modeling_common.py | 0 | checks if the lora layers are correctly set with peft |
| HIGH | tests/models/unets/test_models_unet_2d_condition.py | 0 | checks if the lora layers are correctly set with peft |
| HIGH | tests/lora/utils.py | 0 | checks if the lora layers are correctly set with peft |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that modules_to_not_convert parameter works correctly. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that modules_to_not_convert parameter works correctly. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that modules_to_not_convert parameter works correctly. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that modules_to_not_convert parameter works correctly. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that device_map='auto' works correctly with quantization. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that device_map='auto' works correctly with quantization. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that device_map='auto' works correctly with quantization. |
| HIGH | tests/models/testing_utils/quantization.py | 0 | test that device_map='auto' works correctly with quantization. |
| HIGH | tests/quantization/gguf/test_gguf.py | 0 | a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works. |
| HIGH | tests/quantization/bnb/test_mixed_int8.py | 0 | a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works. |
| HIGH | tests/quantization/bnb/test_4bit.py | 0 | a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works. |
| HIGH | tests/quantization/quanto/test_quanto.py | 0 | a simple tests to check if the modules under `_keep_in_fp32_modules` are kept in fp32. also ensures if inference works. |
| HIGH | tests/quantization/bnb/test_mixed_int8.py | 0 | a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver |
| HIGH | tests/quantization/bnb/test_mixed_int8.py | 0 | a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver |
| HIGH | tests/quantization/bnb/test_4bit.py | 0 | a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver |
| HIGH | tests/quantization/bnb/test_4bit.py | 0 | a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver |
| HIGH | tests/quantization/torchao/test_torchao.py | 0 | a simple test to check if the model conversion has been done correctly by checking on the memory footprint of the conver |
| HIGH | tests/lora/utils.py | 0 | tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it wo |
| HIGH | tests/lora/utils.py | 0 | tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it wo |
| HIGH | tests/lora/utils.py | 0 | tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it wo |
| HIGH | docs/source/pt/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/pt/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/pt/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/pt/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/zh/optimization/speed-memory-optims.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/stable_diffusion.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/quicktour.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/quicktour.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/quicktour.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/quicktour.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/optimization/attention_backends.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/optimization/attention_backends.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/optimization/speed-memory-optims.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/training/distributed_inference.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/training/distributed_inference.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/using-diffusers/loading.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/en/using-diffusers/loading.md | 0 | cinematic film still of a cat sipping a margarita in a pool in palm springs, california highly detailed, high budget hol |
| HIGH | docs/source/zh/optimization/speed-memory-optims.md | 0 | the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate |
| HIGH | docs/source/en/optimization/speed-memory-optims.md | 0 | the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate |
| HIGH | docs/source/en/using-diffusers/text-img2vid.md | 0 | the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate |
| HIGH | docs/source/en/using-diffusers/text-img2vid.md | 0 | the camera rushes from far to near in a low-angle shot, revealing a white ferret on a log. it plays, leaps into the wate |
| HIGH | docs/source/en/api/pipelines/wan.md | 0 | the 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… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/testing_utils.py | 1522 | def backend_reset_peak_memory_stats(device: str): |
| LOW | tests/testing_utils.py | 1526 | def backend_reset_max_memory_allocated(device: str): |
| LOW | tests/testing_utils.py | 1530 | def backend_max_memory_allocated(device: str): |
| LOW | tests/testing_utils.py | 1536 | def backend_supports_training(device: str): |
| LOW | tests/testing_utils.py | 188 | def numpy_cosine_similarity_distance(a, b): |
| LOW | tests/testing_utils.py | 506 | def require_torch_version_greater_equal(torch_version): |
| LOW | tests/testing_utils.py | 519 | def require_torch_version_greater(torch_version): |
| LOW | tests/testing_utils.py | 536 | def require_torch_cuda_compatibility(expected_compute_capability): |
| LOW | tests/testing_utils.py | 550 | def require_torch_accelerator(test_case): |
| LOW | tests/testing_utils.py | 569 | def require_torch_multi_accelerator(test_case): |
| LOW | tests/testing_utils.py | 599 | def require_big_gpu_with_torch_cuda(test_case): |
| LOW | tests/testing_utils.py | 648 | def require_torch_accelerator_with_training(test_case): |
| LOW | tests/testing_utils.py | 748 | def require_peft_version_greater(peft_version): |
| LOW | tests/testing_utils.py | 765 | def require_transformers_version_greater(transformers_version): |
| LOW | tests/testing_utils.py | 783 | def require_accelerate_version_greater(accelerate_version): |
| LOW | tests/testing_utils.py | 796 | def require_bitsandbytes_version_greater(bnb_version): |
| LOW | tests/testing_utils.py | 808 | def require_hf_hub_version_greater(hf_hub_version): |
| LOW | tests/testing_utils.py | 821 | def require_gguf_version_greater_or_equal(gguf_version): |
| LOW | tests/testing_utils.py | 833 | def require_torchao_version_greater_or_equal(torchao_version): |
| LOW | tests/testing_utils.py | 845 | def require_kernels_version_greater_or_equal(kernels_version): |
| LOW | tests/testing_utils.py | 857 | def require_modelopt_version_greater_or_equal(modelopt_version): |
| LOW | tests/testing_utils.py | 867 | def deprecate_after_peft_backend(test_case): |
| LOW | tests/testing_utils.py | 1099 | def pytest_terminal_summary_main(tr, id): |
| LOW | tests/testing_utils.py | 1491 | def _device_agnostic_dispatch(device: str, dispatch_table: dict[str, Callable], *args, **kwargs): |
| LOW | tests/testing_utils.py | 1641 | def _get_expected_safetensors_files( |
| LOW | tests/testing_utils.py | 1724 | def _check_safetensors_serialization( |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 63 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 85 | def test_single_file_components(self): |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 98 | def test_single_file_components_local_files_only(self): |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 112 | def test_single_file_components_with_original_config(self): |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 121 | def test_single_file_components_with_original_config_local_files_only(self): |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 142 | def test_single_file_components_with_diffusers_config(self): |
| LOW | …e_file/test_stable_diffusion_controlnet_single_file.py | 151 | def test_single_file_components_with_diffusers_config_local_files_only(self): |
| LOW | …ts/single_file/test_stable_diffusion_xl_single_file.py | 52 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | tests/single_file/test_model_vae_single_file.py | 52 | def test_single_file_inference_same_as_pretrained(self): |
| LOW | tests/single_file/test_model_vae_single_file.py | 71 | def test_single_file_arguments(self): |
| LOW | …ngle_file/test_stable_diffusion_upscale_single_file.py | 41 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …ngle_file/test_stable_diffusion_upscale_single_file.py | 75 | def test_single_file_components_with_original_config(self): |
| LOW | …ngle_file/test_stable_diffusion_upscale_single_file.py | 83 | def test_single_file_components_with_original_config_local_files_only(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 63 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 88 | def test_single_file_components(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 102 | def test_single_file_components_local_files_only(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 123 | def test_single_file_components_with_original_config(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 141 | def test_single_file_components_with_original_config_local_files_only(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 164 | def test_single_file_components_with_diffusers_config(self): |
| LOW | …ile/test_stable_diffusion_xl_controlnet_single_file.py | 175 | def test_single_file_components_with_diffusers_config_local_files_only(self): |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 61 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 72 | def test_single_file_components_with_original_config(self): |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 76 | def test_single_file_components_with_original_config_local_files_only(self): |
| LOW | …ngle_file/test_stable_diffusion_inpaint_single_file.py | 119 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …e_file/test_stable_diffusion_xl_img2img_single_file.py | 60 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …e_file/test_stable_diffusion_xl_img2img_single_file.py | 76 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 50 | def test_single_file_inference_same_as_pretrained(self): |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 67 | def test_single_file_in_type_variant_components(self): |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 86 | def test_single_file_mix_type_variant_components(self): |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 70 | def test_single_file_format_inference_is_same_as_pretrained(self): |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 89 | def test_single_file_components(self): |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 102 | def test_single_file_components_local_files_only(self): |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 117 | def test_single_file_components_with_original_config(self): |
| LOW | …est_stable_diffusion_controlnet_inpaint_single_file.py | 127 | def test_single_file_components_with_original_config_local_files_only(self): |
| 4273 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| 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 |
| HIGH | examples/research_projects/anytext/anytext.py | 1970 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | …_projects/promptdiffusion/pipeline_prompt_diffusion.py | 938 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | …ch_projects/pixart/pipeline_pixart_alpha_controlnet.py | 820 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_zero1to3.py | 624 | Function invoked when calling the pipeline for generation. Args: input_imgs (`PIL` or `Lis |
| 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 |
| HIGH | examples/community/mod_controlnet_tile_sr_sdxl.py | 1292 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …mmunity/stable_diffusion_controlnet_inpaint_img2img.py | 755 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …les/community/pipeline_flux_kontext_multiple_images.py | 851 | Function invoked when calling the pipeline for generation. Args: image (`torch.Tensor`, `P |
| HIGH | …munity/pipeline_stable_diffusion_3_instruct_pix2pix.py | 896 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …/community/stable_diffusion_xl_controlnet_reference.py | 375 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | examples/community/mixture_tiling.py | 184 | Function to run the diffusion pipeline with tiling support. Args: prompt: either a single |
| HIGH | examples/community/pipeline_stg_hunyuan_video.py | 586 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | examples/community/pipeline_flux_with_cfg.py | 632 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_stable_diffusion_xl_ipex.py | 759 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| 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 |
| HIGH | examples/community/stable_diffusion_repaint.py | 633 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str |
| HIGH | …/community/pipeline_hunyuandit_differential_img2img.py | 770 | The call function to the pipeline for generation with HunyuanDiT. Args: prompt (`str` or ` |
| HIGH | examples/community/pipeline_stable_diffusion_boxdiff.py | 1353 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| 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 |
| HIGH | examples/community/adaptive_mask_inpainting.py | 884 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | examples/community/fresco_v2v.py | 2082 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| 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 |
| HIGH | …line_stable_diffusion_xl_controlnet_adapter_inpaint.py | 1240 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …ty/pipeline_stable_diffusion_3_differential_img2img.py | 699 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_demofusion_sdxl.py | 662 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/run_tensorrt_controlnet.py | 651 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_stg_ltx.py | 589 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_animatediff_ipex.py | 598 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | …es/community/pipeline_faithdiff_stable_diffusion_xl.py | 1838 | Function invoked when calling the pipeline for generation. Args: lr_img (PipelineImageInpu |
| HIGH | examples/community/pipeline_stable_diffusion_pag.py | 1126 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opti |
| HIGH | examples/community/stable_diffusion_reference.py | 286 | Check the validity of the input arguments for the diffusion model. Args: prompt (Optional[ |
| HIGH | examples/community/stable_diffusion_reference.py | 849 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| 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 |
| HIGH | …unity/pipeline_stable_diffusion_xl_attentive_eraser.py | 1660 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …les/community/stable_diffusion_controlnet_reference.py | 135 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/stable_diffusion_xl_reference.py | 317 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …les/community/pipeline_controlnet_xl_kolors_img2img.py | 995 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_controlnet_xl_kolors.py | 821 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …y/pipeline_stable_diffusion_xl_differential_img2img.py | 978 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/matryoshka.py | 4278 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | …les/community/pipeline_z_image_differential_img2img.py | 477 | Function invoked when calling the pipeline for image-to-image generation. Args: prompt (`s |
| HIGH | examples/community/pipeline_stg_mochi.py | 592 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| 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 |
| HIGH | examples/community/rerender_a_video.py | 627 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| 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 |
| HIGH | examples/community/lpw_stable_diffusion_xl.py | 1437 | Function invoked when calling the pipeline for generation. Args: prompt (`str`): |
| 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 |
| HIGH | examples/community/pipeline_kolors_inpainting.py | 1121 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/stable_diffusion_ipex.py | 583 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/mixture_tiling_sdxl.py | 803 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/gluegen.py | 607 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | examples/community/instaflow_one_step.py | 522 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | …mples/community/stable_diffusion_controlnet_inpaint.py | 767 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | …ples/community/pipeline_kolors_differential_img2img.py | 819 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| HIGH | examples/community/pipeline_fabric.py | 521 | The call function to the pipeline for generation. Generate a trajectory of images with binary feedback. The |
| HIGH | examples/community/pipeline_animatediff_controlnet.py | 777 | The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *opt |
| HIGH | examples/community/pipeline_flux_semantic_guidance.py | 825 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| 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 |
| HIGH | …ples/community/pipline_flux_fill_controlnet_Inpaint.py | 865 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st |
| 315 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/models/unets/test_unet_2d_blocks.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 1 | |
| LOW | tests/models/testing_utils/__init__.py | 1 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 2 | |
| LOW | tests/models/testing_utils/__init__.py | 11 | |
| LOW | tests/models/testing_utils/__init__.py | 11 | |
| LOW | tests/models/testing_utils/__init__.py | 12 | |
| LOW | tests/models/testing_utils/__init__.py | 13 | |
| LOW | tests/models/testing_utils/__init__.py | 14 | |
| LOW | tests/models/testing_utils/__init__.py | 14 | |
| LOW | tests/models/testing_utils/__init__.py | 15 | |
| LOW | tests/models/testing_utils/__init__.py | 15 | |
| LOW | tests/models/testing_utils/__init__.py | 15 | |
| LOW | tests/models/testing_utils/__init__.py | 15 | |
| LOW | tests/models/testing_utils/__init__.py | 16 | |
| LOW | tests/models/testing_utils/__init__.py | 16 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 17 | |
| LOW | tests/models/testing_utils/__init__.py | 36 | |
| LOW | tests/models/testing_utils/__init__.py | 37 | |
| LOW | utils/check_forward_call_docstrings.py | 45 | |
| LOW | …ples/reinforcement_learning/run_diffuser_locomotion.py | 1 | |
| LOW | examples/server-async/utils/__init__.py | 1 | |
| LOW | examples/server-async/utils/__init__.py | 2 | |
| LOW | examples/inference/inpainting.py | 3 | |
| LOW | examples/inference/image_to_image.py | 3 | |
| LOW | examples/community/pipeline_prompt2prompt.py | 15 | |
| LOW | scripts/convert_sana_to_diffusers.py | 2 | |
| LOW | scripts/convert_sana_video_to_diffusers.py | 2 | |
| LOW | scripts/convert_sana_controlnet_to_diffusers.py | 2 | |
| LOW | src/diffusers/__init__.py | 5 | |
| LOW | src/diffusers/__init__.py | 936 | |
| LOW | src/diffusers/__init__.py | 937 | |
| LOW | src/diffusers/__init__.py | 945 | |
| LOW | src/diffusers/__init__.py | 953 | |
| LOW | src/diffusers/__init__.py | 961 | |
| LOW | src/diffusers/__init__.py | 969 | |
| LOW | src/diffusers/__init__.py | 977 | |
| LOW | src/diffusers/__init__.py | 985 | |
| 2255 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/testing_utils.py | 880 | |
| LOW | tests/testing_utils.py | 1099 | |
| LOW | tests/testing_utils.py | 1641 | |
| LOW | …sts/modular_pipelines/test_modular_pipelines_common.py | 328 | |
| LOW | …sts/modular_pipelines/test_modular_pipelines_common.py | 418 | |
| LOW | tests/others/test_dependencies.py | 25 | |
| LOW | tests/others/test_video_processor.py | 31 | |
| LOW | tests/others/test_video_processor.py | 76 | |
| LOW | tests/pipelines/test_pipelines_common.py | 1433 | |
| LOW | tests/pipelines/test_pipelines_common.py | 1627 | |
| LOW | tests/pipelines/test_pipelines_common.py | 1802 | |
| LOW | tests/pipelines/test_pipelines_common.py | 1904 | |
| LOW | tests/pipelines/test_pipelines_common.py | 2072 | |
| LOW | tests/pipelines/test_pipelines_common.py | 2129 | |
| LOW | …ble_diffusion_adapter/test_stable_diffusion_adapter.py | 428 | |
| LOW | …ble_diffusion_adapter/test_stable_diffusion_adapter.py | 492 | |
| LOW | …ble_diffusion_adapter/test_stable_diffusion_adapter.py | 521 | |
| LOW | tests/pipelines/ltx2/test_ltx2_hdr.py | 287 | |
| LOW | …elines/ip_adapters/test_ip_adapter_stable_diffusion.py | 104 | |
| LOW | tests/pipelines/z_image/test_z_image_img2img.py | 204 | |
| LOW | tests/pipelines/z_image/test_z_image_inpaint.py | 213 | |
| LOW | tests/pipelines/z_image/test_z_image.py | 197 | |
| LOW | …table_diffusion_xl/test_stable_diffusion_xl_adapter.py | 458 | |
| LOW | …table_diffusion_xl/test_stable_diffusion_xl_adapter.py | 520 | |
| LOW | …table_diffusion_xl/test_stable_diffusion_xl_adapter.py | 549 | |
| LOW | …ts/pipelines/nucleusmoe_image/test_nucleusmoe_image.py | 238 | |
| LOW | tests/models/test_modeling_common.py | 169 | |
| LOW | tests/models/test_modeling_common.py | 406 | |
| LOW | tests/models/test_modeling_common.py | 1861 | |
| LOW | tests/models/test_modeling_common.py | 2289 | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 95 | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 150 | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 250 | |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 308 | |
| LOW | tests/models/testing_utils/memory.py | 316 | |
| LOW | tests/models/testing_utils/quantization.py | 243 | |
| LOW | tests/models/testing_utils/quantization.py | 274 | |
| LOW | tests/models/testing_utils/cache.py | 122 | |
| LOW | tests/models/testing_utils/common.py | 60 | |
| LOW | tests/quantization/bnb/test_4bit.py | 777 | |
| LOW | tests/lora/utils.py | 1486 | |
| LOW | tests/lora/utils.py | 1891 | |
| LOW | tests/schedulers/test_scheduler_dpm_single.py | 179 | |
| LOW | tests/schedulers/test_scheduler_dpm_single.py | 198 | |
| LOW | tests/schedulers/test_schedulers.py | 672 | |
| LOW | tests/schedulers/test_scheduler_dpm_multi_inverse.py | 146 | |
| LOW | tests/schedulers/test_scheduler_dpm_multi_inverse.py | 165 | |
| LOW | …s/schedulers/test_scheduler_edm_dpmsolver_multistep.py | 149 | |
| LOW | …s/schedulers/test_scheduler_edm_dpmsolver_multistep.py | 170 | |
| LOW | tests/schedulers/test_scheduler_deis.py | 168 | |
| LOW | tests/schedulers/test_scheduler_deis.py | 187 | |
| LOW | tests/schedulers/test_scheduler_dpm_multi.py | 180 | |
| LOW | tests/schedulers/test_scheduler_dpm_multi.py | 199 | |
| LOW | tests/schedulers/test_scheduler_unipc.py | 165 | |
| LOW | tests/schedulers/test_scheduler_unipc.py | 235 | |
| LOW | utils/label_issues.py | 72 | |
| LOW | utils/log_reports.py | 17 | |
| LOW | utils/consolidated_test_report.py | 24 | |
| LOW | utils/consolidated_test_report.py | 92 | |
| LOW | utils/consolidated_test_report.py | 136 | |
| 1354 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | setup.py | 161 | # |
| LOW | tests/conftest.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | …/single_file/test_model_wan_autoencoder_single_file.py | 1 | # coding=utf-8 |
| LOW | tests/single_file/test_lumina2_transformer.py | 1 | # coding=utf-8 |
| LOW | …single_file/test_model_flux_transformer_single_file.py | 1 | # coding=utf-8 |
| LOW | tests/single_file/test_model_vae_single_file.py | 1 | # coding=utf-8 |
| LOW | …s/single_file/test_model_autoencoder_dc_single_file.py | 1 | # coding=utf-8 |
| LOW | tests/single_file/test_model_controlnet_single_file.py | 1 | # coding=utf-8 |
| LOW | …ingle_file/test_model_wan_transformer3d_single_file.py | 1 | # coding=utf-8 |
| LOW | …/single_file/test_model_sd_cascade_unet_single_file.py | 1 | # coding=utf-8 |
| LOW | …s/single_file/test_model_motion_adapter_single_file.py | 1 | # coding=utf-8 |
| LOW | …/modular_pipelines/test_conditional_pipeline_blocks.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | …dular_pipelines/helios/test_modular_pipeline_helios.py | 1 | # coding=utf-8 |
| LOW | …sts/modular_pipelines/ltx/test_modular_pipeline_ltx.py | 1 | # coding=utf-8 |
| LOW | …s/modular_pipelines/flux/test_modular_pipeline_flux.py | 1 | # coding=utf-8 |
| LOW | …modular_pipelines/flux2/test_modular_pipeline_flux2.py | 1 | # coding=utf-8 |
| LOW | …r_pipelines/flux2/test_modular_pipeline_flux2_klein.py | 1 | # coding=utf-8 |
| LOW | …elines/flux2/test_modular_pipeline_flux2_klein_base.py | 1 | # coding=utf-8 |
| LOW | …modular_pipelines/anima/test_modular_pipeline_anima.py | 1 | # Copyright 2026 The HuggingFace Team. |
| LOW | …ular_pipelines/qwen/test_modular_pipeline_qwenimage.py | 1 | # coding=utf-8 |
| LOW | …sts/modular_pipelines/wan/test_modular_pipeline_wan.py | 1 | # coding=utf-8 |
| LOW | …lar_pipelines/z_image/test_modular_pipeline_z_image.py | 1 | # coding=utf-8 |
| LOW | …iffusion_3/test_modular_pipeline_stable_diffusion_3.py | 1 | # coding=utf-8 |
| LOW | …fusion_xl/test_modular_pipeline_stable_diffusion_xl.py | 1 | # coding=utf-8 |
| LOW | …uan_video1_5/test_modular_pipeline_hunyuan_video1_5.py | 1 | # coding=utf-8 |
| LOW | …lines/ernie_image/test_modular_pipeline_ernie_image.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_utils.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_ema.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_hub_utils.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_dependencies.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | tests/others/test_check_copies.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | tests/others/test_check_dummies.py | 1 | # Copyright 2025 The HuggingFace Team. All rights reserved. |
| LOW | tests/others/test_flashpack.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_training.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_image_processor.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_config.py | 1 | # coding=utf-8 |
| LOW | tests/others/test_video_processor.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/test_pipelines.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/test_pipelines_combined.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/test_pipelines_auto.py | 1 | # coding=utf-8 |
| LOW | …ble_diffusion_adapter/test_stable_diffusion_adapter.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/qwenimage/test_qwenimage_controlnet.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/qwenimage/test_qwenimage_edit.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/qwenimage/test_qwenimage_inpaint.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/qwenimage/test_qwenimage_edit_plus.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/qwenimage/test_qwenimage.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/mochi/test_mochi.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/helios/test_helios.py | 1 | # Copyright 2025 The HuggingFace Team. |
| LOW | tests/pipelines/kolors/test_kolors.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/kolors/test_kolors_img2img.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/kandinsky/test_kandinsky_img2img.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/kandinsky/test_kandinsky.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/kandinsky/test_kandinsky_combined.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/kandinsky/test_kandinsky_prior.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/kandinsky/test_kandinsky_inpaint.py | 1 | # coding=utf-8 |
| LOW | tests/pipelines/motif_video/test_motif_video.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. |
| LOW | …/pipelines/motif_video/test_motif_video_image2video.py | 1 | # Copyright 2026 The HuggingFace Team. All rights reserved. |
| LOW | …ipelines/controlnet_sd3/test_controlnet_inpaint_sd3.py | 1 | # coding=utf-8 |
| 1288 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/pipelines/marigold/test_marigold_depth.py | 15 | # -------------------------------------------------------------------------- |
| MEDIUM | tests/pipelines/marigold/test_marigold_depth.py | 18 | # -------------------------------------------------------------------------- |
| MEDIUM | tests/pipelines/marigold/test_marigold_intrinsics.py | 15 | # -------------------------------------------------------------------------- |
| MEDIUM | tests/pipelines/marigold/test_marigold_intrinsics.py | 18 | # -------------------------------------------------------------------------- |
| MEDIUM | tests/pipelines/marigold/test_marigold_normals.py | 15 | # -------------------------------------------------------------------------- |
| MEDIUM | tests/pipelines/marigold/test_marigold_normals.py | 18 | # -------------------------------------------------------------------------- |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 45 | # --------------------------------------------------------------------------- |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 47 | # --------------------------------------------------------------------------- |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 86 | # --------------------------------------------------------------------------- |
| MEDIUM | …sts/models/autoencoders/test_models_autoencoder_rae.py | 88 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/models/testing_utils/attention.py | 34 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/models/testing_utils/attention.py | 36 | # --------------------------------------------------------------------------- |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 144 | # ── Experiment tracking (optional) ────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 152 | # ── Model ─────────────────────────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 159 | # ── Training schedule ─────────────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 169 | # ── Data ──────────────────────────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 186 | # ── Optimizer ─────────────────────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 195 | # ── Learning rate scheduler ───────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 202 | # ── Flow matching ─────────────────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 219 | # ── FSDP2 distributed training ────────────────────────────────────────────── |
| MEDIUM | docs/source/en/training/nemo_automodel.md | 230 | # ── Checkpointing ────────────────────────────────────────────────────────── |
| MEDIUM | docs/source/en/api/pipelines/control_flux_inpaint.md | 47 | # --------------------------------------------------------------- |
| MEDIUM | docs/source/en/api/pipelines/control_flux_inpaint.md | 57 | # --------------------------------------------------------------- |
| MEDIUM | …cts/onnxruntime/textual_inversion/textual_inversion.py | 79 | # ------------------------------------------------------------------------------ |
| MEDIUM | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 46 | # ------------------------------------------------------------------------------ |
| MEDIUM | …intel_opts/textual_inversion/textual_inversion_bf16.py | 49 | # ------------------------------------------------------------------------------ |
| MEDIUM | …cts/multi_token_textual_inversion/textual_inversion.py | 74 | # ------------------------------------------------------------------------------ |
| MEDIUM | …ulti_token_textual_inversion/textual_inversion_flax.py | 56 | # ------------------------------------------------------------------------------ |
| MEDIUM | examples/textual_inversion/textual_inversion.py | 81 | # ------------------------------------------------------------------------------ |
| MEDIUM | examples/textual_inversion/textual_inversion_sdxl.py | 76 | # ------------------------------------------------------------------------------ |
| MEDIUM | examples/textual_inversion/textual_inversion_flax.py | 56 | # ------------------------------------------------------------------------------ |
| MEDIUM | examples/community/lpw_stable_diffusion.py | 31 | # ------------------------------------------------------------------------------ |
| MEDIUM | examples/community/lpw_stable_diffusion_onnx.py | 54 | # ------------------------------------------------------------------------------ |
| MEDIUM | …line_stable_diffusion_xl_controlnet_adapter_inpaint.py | 1642 | # ---------------------------------------------------------------- |
| MEDIUM | examples/community/imagic_stable_diffusion.py | 46 | # ------------------------------------------------------------------------------ |
| MEDIUM | examples/community/README.md | 499 | # ------------------------------------------------ |
| MEDIUM | examples/community/README.md | 504 | # ------------------------------------------------- |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 1 | ## ---------------------------------------------------------- |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 7 | ## ----------------------------------------------------------- |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 467 | # ---------------------------------------------------------------------------------------------------------------------- |
| MEDIUM | examples/community/lpw_stable_diffusion_xl.py | 469 | # ---------------------------------------------------------------------------------------------------------------------- |
| MEDIUM | examples/community/marigold_depth_estimation.py | 14 | # -------------------------------------------------------------------------- |
| MEDIUM | examples/community/marigold_depth_estimation.py | 18 | # -------------------------------------------------------------------------- |
| MEDIUM | examples/community/pipeline_stable_diffusion_xl_t5.py | 144 | # ------------------------------------------------------------------ |
| MEDIUM | examples/community/pipeline_stable_diffusion_xl_t5.py | 147 | # ------------------------------------------------------------------ |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 129 | # ========================================================================= |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 131 | # ========================================================================= |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 196 | # ========================================================================= |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 198 | # ========================================================================= |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 304 | # ========================================================================= |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 323 | # ========================================================================= |
| MEDIUM | scripts/convert_ace_step_to_diffusers.py | 329 | # ========================================================================= |
| MEDIUM | src/diffusers/modular_pipelines/mellon_node_utils.py | 298 | # ========================================================================= |
| MEDIUM | src/diffusers/modular_pipelines/mellon_node_utils.py | 300 | # ========================================================================= |
| MEDIUM | src/diffusers/modular_pipelines/mellon_node_utils.py | 390 | # ========================================================================= |
| MEDIUM | src/diffusers/modular_pipelines/mellon_node_utils.py | 392 | # ========================================================================= |
| MEDIUM | …/diffusers/modular_pipelines/modular_pipeline_utils.py | 357 | # ====================================================== |
| MEDIUM | …/diffusers/modular_pipelines/modular_pipeline_utils.py | 359 | # ====================================================== |
| MEDIUM | …fusers/modular_pipelines/qwenimage/prompt_templates.py | 25 | # ============================================ |
| MEDIUM | …fusers/modular_pipelines/qwenimage/prompt_templates.py | 27 | # ============================================ |
| 189 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/others/test_check_dummies.py | 96 | expected_dummy_pytorch_file = """# This file is autogenerated by the command `make fix-copies`, do not edit. |
| MEDIUM | tests/pipelines/ace_step/test_ace_step.py | 160 | # Create a tiny Qwen3Model for testing (matching the real Qwen3-Embedding-0.6B architecture) |
| MEDIUM | tests/pipelines/sana_video/test_sana_video_i2v.py | 131 | # Create a dummy image input (PIL Image) |
| MEDIUM | …ines/visualcloze/test_pipeline_visualcloze_combined.py | 127 | # Create an image list that conforms to the VisualCloze input format |
| MEDIUM | …es/visualcloze/test_pipeline_visualcloze_generation.py | 129 | # Create an image list that conforms to the VisualCloze input format |
| MEDIUM | tests/models/testing_utils/attention.py | 213 | # Create a dict of new processors |
| MEDIUM | tests/models/testing_utils/attention.py | 235 | # Create a dict with wrong number of processors |
| MEDIUM | utils/consolidated_test_report.py | 503 | # Create a list of failing tests for each module |
| MEDIUM | utils/consolidated_test_report.py | 581 | # Create a more compact summary section |
| MEDIUM | utils/consolidated_test_report.py | 587 | # Create the test suites table in markdown format |
| MEDIUM | utils/consolidated_test_report.py | 621 | # Create the Slack payload with character limit enforcement |
| MEDIUM | utils/check_support_list.py | 68 | # Define the checks we need to perform |
| MEDIUM | utils/tests_fetcher.py | 938 | # Create the map that will give us all impacted modules. |
| MEDIUM | utils/tests_fetcher.py | 980 | # Create a map that maps test categories to test files, i.e. `models/bert` -> [...test_modeling_bert.py, ...] |
| MEDIUM | utils/check_dummies.py | 124 | dummy_file = "# This file is autogenerated by the command `make fix-copies`, do not edit.\n" |
| MEDIUM | examples/instruct_pix2pix/train_instruct_pix2pix.py | 1008 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py | 1219 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | examples/controlnet/train_controlnet_flux.py | 1399 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | examples/controlnet/train_controlnet_sdxl.py | 1343 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | examples/controlnet/train_controlnet.py | 1156 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | examples/controlnet/train_controlnet_sd3.py | 1434 | # Create the pipeline using using the trained modules and save it. |
| 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. |
| MEDIUM | examples/flux-control/train_control_lora_flux.py | 1352 | # Create the pipeline using using the trained modules and save it. |
| 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. |
| MEDIUM | examples/flux-control/train_control_flux.py | 1206 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …andinsky2_2/text_to_image/train_text_to_image_prior.py | 913 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …dinsky2_2/text_to_image/train_text_to_image_decoder.py | 882 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | examples/t2i_adapter/train_t2i_adapter_sdxl.py | 1301 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | examples/research_projects/gligen/train_gligen_text.py | 674 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …rch_projects/controlnet/train_controlnet_webdataset.py | 1445 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …rojects/dreambooth_inpaint/train_dreambooth_inpaint.py | 791 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …cts/onnxruntime/textual_inversion/textual_inversion.py | 920 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …jects/onnxruntime/text_to_image/train_text_to_image.py | 927 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py | 1116 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …/wuerstchen/text_to_image/train_text_to_image_prior.py | 886 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …stchen/text_to_image/train_text_to_image_lora_prior.py | 892 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …research_projects/autoencoderkl/train_autoencoderkl.py | 1023 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …ber_loss_training/text_to_image/train_text_to_image.py | 1111 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …led_huber_loss_training/dreambooth/train_dreambooth.py | 1463 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …i_subject_dreambooth/train_multi_subject_dreambooth.py | 1171 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 935 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …intel_opts/textual_inversion/textual_inversion_bf16.py | 612 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …cts/multi_token_textual_inversion/textual_inversion.py | 905 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …ulti_token_textual_inversion/textual_inversion_flax.py | 609 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …research_projects/sd3_lora_colab/compute_embeddings.py | 87 | # Create a DataFrame |
| MEDIUM | …_projects/flux_lora_quantization/compute_embeddings.py | 82 | # Create a DataFrame |
| 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. |
| MEDIUM | examples/cogview4-control/train_control_cogview4.py | 1199 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …s/consistency_distillation/train_lcm_distill_sd_wds.py | 1412 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …onsistency_distillation/train_lcm_distill_lora_sdxl.py | 1441 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …sistency_distillation/train_lcm_distill_lora_sd_wds.py | 1447 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …stency_distillation/train_lcm_distill_lora_sdxl_wds.py | 1510 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | …consistency_distillation/train_lcm_distill_sdxl_wds.py | 1515 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | examples/model_search/pipeline_easy.py | 785 | # Initialize additional variables with default values |
| MEDIUM | examples/textual_inversion/textual_inversion.py | 977 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | examples/textual_inversion/textual_inversion_sdxl.py | 1066 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | examples/textual_inversion/textual_inversion_flax.py | 636 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | examples/text_to_image/train_text_to_image.py | 1118 | # Create the pipeline using the trained modules and save it. |
| MEDIUM | examples/text_to_image/train_text_to_image_flax.py | 582 | # Create the pipeline using using the trained modules and save it. |
| MEDIUM | examples/dreambooth/train_dreambooth_flax.py | 630 | # Create the pipeline using the trained modules and save it. |
| 70 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/testing_utils.py | 281 | def parse_flag_from_env(key, default=False): |
| LOW | tests/testing_utils.py | 1259 | except Exception as err: |
| LOW | tests/testing_utils.py | 1311 | except Exception as e: |
| LOW | tests/testing_utils.py | 1402 | except Exception as e: |
| LOW | tests/testing_utils.py | 1424 | except Exception as e: |
| LOW | …sts/modular_pipelines/test_modular_pipelines_common.py | 40 | except Exception: |
| LOW | tests/others/test_dependencies.py | 79 | except Exception: |
| LOW | tests/pipelines/test_pipelines.py | 135 | except Exception: |
| LOW | tests/pipelines/prx/test_pipeline_prx.py | 32 | except Exception: |
| LOW | tests/pipelines/prx/test_pipeline_prx.py | 130 | except Exception: |
| LOW | tests/pipelines/prx/test_pipeline_prx.py | 149 | except Exception: |
| LOW | tests/models/test_modeling_common.py | 133 | except Exception: |
| LOW | tests/models/testing_utils/attention.py | 337 | except Exception as e: |
| LOW | tests/models/testing_utils/attention.py | 405 | except Exception as e: |
| LOW | tests/models/testing_utils/parallelism.py | 104 | except Exception as e: |
| LOW | tests/models/testing_utils/parallelism.py | 162 | except Exception as e: |
| LOW | tests/models/testing_utils/parallelism.py | 221 | except Exception as e: |
| LOW | utils/label_issues.py | 118 | except Exception: |
| MEDIUM | utils/label_issues.py | 86 | def main(): |
| MEDIUM | utils/consolidated_test_report.py | 88 | print(f"Error parsing {file_path}: {e}") |
| MEDIUM | utils/consolidated_test_report.py | 131 | print(f"Error parsing durations file {file_path.replace('_stats.txt', '_durations.txt')}: {e}") |
| MEDIUM | utils/consolidated_test_report.py | 235 | print(f"Error parsing failures in {file_path}: {e}") |
| MEDIUM | utils/consolidated_test_report.py | 301 | print(f"Error parsing summary file: {e}") |
| MEDIUM | utils/consolidated_test_report.py | 727 | print(f"Error: Reports directory '{args.reports_dir}' does not exist.") |
| MEDIUM | utils/consolidated_test_report.py | 784 | print(f"Error sending report to Slack: {e}") |
| LOW | utils/consolidated_test_report.py | 87 | except Exception as e: |
| LOW | utils/consolidated_test_report.py | 130 | except Exception as e: |
| LOW | utils/consolidated_test_report.py | 170 | except Exception: |
| LOW | utils/consolidated_test_report.py | 234 | except Exception as e: |
| LOW | utils/consolidated_test_report.py | 300 | except Exception as e: |
| LOW | utils/consolidated_test_report.py | 783 | except Exception as e: |
| LOW | utils/tests_fetcher.py | 1115 | except Exception as e: |
| LOW | utils/modular_auto_docstring.py | 92 | except Exception as e: |
| LOW | utils/modular_auto_docstring.py | 110 | except Exception as e: |
| LOW | utils/modular_auto_docstring.py | 230 | except Exception as e: |
| MEDIUM | utils/generate_model_tests.py | 560 | print(f"Error: File not found: {args.model_filepath}", file=sys.stderr) |
| MEDIUM | utils/generate_model_tests.py | 566 | print(f"Error: No model classes found in {args.model_filepath}", file=sys.stderr) |
| MEDIUM | utils/generate_model_tests.py | 573 | print(f"Error: Class '{args.class_name}' not found. Available: {available}", file=sys.stderr) |
| LOW | utils/fetch_torch_cuda_pipeline_test_matrix.py | 69 | except Exception as e: |
| MEDIUM | utils/fetch_torch_cuda_pipeline_test_matrix.py | 66 | def fetch_pipeline_modules_to_test(): |
| LOW | docs/source/en/optimization/attention_backends.md | 112 | except Exception as e: |
| LOW | docs/source/en/using-diffusers/create_a_server.md | 48 | except Exception as e: |
| LOW | …rch_projects/controlnet/train_controlnet_webdataset.py | 189 | except Exception: |
| MEDIUM | …rch_projects/controlnet/train_controlnet_webdataset.py | 178 | def __call__(self, x): |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 867 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1007 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1636 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1722 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1762 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1770 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1792 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1837 | except Exception: |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1850 | except Exception: |
| LOW | …_xla/training/text_to_image/train_text_to_image_xla.py | 150 | except Exception as e: |
| LOW | examples/research_projects/rdm/retriever.py | 88 | except Exception as e: |
| LOW | examples/research_projects/intel_opts/inference_bf16.py | 38 | except Exception: |
| LOW | …cts/multi_token_textual_inversion/textual_inversion.py | 625 | except Exception as e: |
| LOW | examples/cosmos/train_cosmos_predict25_lora.py | 348 | except Exception as e: |
| LOW | examples/cosmos/train_cosmos_predict25_lora.py | 376 | except Exception as e: |
| LOW | examples/cosmos/train_cosmos_predict25_lora.py | 406 | except Exception as e: |
| 101 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …sts/modular_pipelines/test_modular_pipelines_common.py | 290 | # Check if cosine similarity is NaN (which can happen if vectors are zero or very small) |
| LOW | tests/pipelines/test_pipelines_common.py | 2797 | # Check if warning is raise when no attention_weight_callback is provided |
| LOW | tests/pipelines/test_pipelines_common.py | 2804 | # Check if error raised when unsupported tensor format used |
| LOW | tests/pipelines/test_pipelines_common.py | 2880 | # Check if faster_cache denoiser hook is attached |
| LOW | tests/pipelines/test_pipelines_common.py | 2888 | # Check if all blocks have faster_cache block hook attached |
| LOW | tests/models/test_modeling_common.py | 1625 | # Check if the variant is present as a substring in the checkpoints. |
| LOW | tests/models/test_modeling_common.py | 1633 | # Check if the sharded checkpoints were serialized in the right format. |
| LOW | tests/models/unets/test_models_unet_2d_condition.py | 831 | # Check if input and output shapes are the same |
| LOW | …ts/models/controlnets/test_models_controlnet_cosmos.py | 190 | # Set encoder_hidden_states to (text_context, None) |
| LOW | tests/models/testing_utils/attention.py | 181 | # Check if model has attention processors |
| LOW | tests/models/testing_utils/quantization.py | 292 | # Check if this module is in the exclusion list |
| LOW | tests/models/testing_utils/quantization.py | 306 | # Check if this module is NOT in the exclusion list |
| LOW | tests/models/testing_utils/common.py | 520 | # Check if the right number of shards exists |
| LOW | tests/models/testing_utils/common.py | 560 | # Check if the right number of shards exists |
| LOW | tests/models/testing_utils/common.py | 601 | # Check if the right number of shards exists |
| LOW | tests/quantization/bnb/test_mixed_int8.py | 552 | # Check if inference works. |
| LOW | tests/quantization/bnb/test_4bit.py | 577 | # Check if inference works. |
| LOW | utils/consolidated_test_report.py | 145 | # Check if it's a short stack format |
| LOW | utils/consolidated_test_report.py | 733 | # Check if we found any test results |
| LOW | utils/check_inits.py | 100 | # Check if the backend declaration is inside a try block: |
| LOW | utils/check_inits.py | 159 | # Check if the backend declaration is inside a try block: |
| LOW | utils/custom_init_isort.py | 257 | # Check if the block contains some `_import_structure`s thingy to sort. |
| LOW | …amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py | 813 | # Set UNet to trainable. |
| LOW | examples/controlnet/train_controlnet_flux.py | 1339 | # Check if the gradient of each model parameter contains NaN |
| LOW | …andinsky2_2/text_to_image/train_text_to_image_prior.py | 533 | # Set prior to trainable. |
| LOW | …dinsky2_2/text_to_image/train_text_to_image_decoder.py | 528 | # Set unet to trainable. |
| LOW | …cts/onnxruntime/textual_inversion/textual_inversion.py | 658 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1463 | # Check if we have a SDXL or SD model and initialize default pipeline |
| 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 |
| LOW | …es/research_projects/ip_adapter/tutorial_train_plus.py | 138 | # Check if the shapes are mismatched |
| LOW | …es/research_projects/ip_adapter/tutorial_train_plus.py | 153 | # Verify if the weights have changed |
| LOW | …earch_projects/ip_adapter/tutorial_train_ip-adapter.py | 143 | # Verify if the weights have changed |
| LOW | …/research_projects/ip_adapter/tutorial_train_faceid.py | 141 | # Verify if the weights have changed |
| LOW | …es/research_projects/ip_adapter/tutorial_train_sdxl.py | 203 | # Verify if the weights have changed |
| LOW | …/intel_opts/textual_inversion_dfq/textual_inversion.py | 500 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | …intel_opts/textual_inversion/textual_inversion_bf16.py | 415 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | …ulti_token_textual_inversion/textual_inversion_flax.py | 396 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | …ffusion_training/test_dreambooth_lora_flux_advanced.py | 316 | # Check if the metadata was properly serialized. |
| LOW | examples/server-async/Pipelines.py | 73 | # Check if model exists in PresetModels |
| LOW | examples/custom_diffusion/train_custom_diffusion.py | 861 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | examples/model_search/pipeline_easy.py | 434 | # Check if the keyword is an HTTP or HTTPS URL |
| LOW | examples/model_search/pipeline_easy.py | 437 | # Check if the keyword is a file |
| LOW | examples/model_search/pipeline_easy.py | 443 | # Check if the keyword is a directory |
| LOW | examples/model_search/pipeline_easy.py | 451 | # Check if the keyword is a Civitai URL |
| LOW | examples/model_search/pipeline_easy.py | 457 | # Check if the keyword starts with any valid URL prefixes |
| LOW | examples/model_search/pipeline_easy.py | 469 | # Check if the keyword matches a Hugging Face repository format |
| LOW | examples/model_search/pipeline_easy.py | 527 | # Check if the file already exists at the save path |
| LOW | examples/model_search/pipeline_easy.py | 538 | # Open the file in the appropriate mode (write or append) |
| LOW | examples/model_search/pipeline_easy.py | 850 | # Check if the file passes security scans and has a valid extension |
| LOW | examples/model_search/pipeline_easy.py | 1030 | # Check if tokenizer and text encoder are provided |
| LOW | examples/model_search/pipeline_easy.py | 1047 | # Check if token is already in tokenizer vocabulary |
| LOW | examples/textual_inversion/textual_inversion.py | 685 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | examples/textual_inversion/textual_inversion_sdxl.py | 693 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | examples/textual_inversion/textual_inversion_flax.py | 409 | # Check if initializer_token is a single token or a sequence of tokens |
| LOW | examples/dreambooth/test_dreambooth_lora_qwenimage.py | 236 | # Check if the metadata was properly serialized. |
| LOW | examples/dreambooth/test_dreambooth_lora_flux2_klein.py | 250 | # Check if the metadata was properly serialized. |
| LOW | examples/dreambooth/test_dreambooth_lora_flux2.py | 250 | # Check if the metadata was properly serialized. |
| LOW | examples/dreambooth/test_dreambooth_lora_sana.py | 236 | # Check if the metadata was properly serialized. |
| LOW | examples/dreambooth/test_dreambooth_lora_flux.py | 269 | # Check if the metadata was properly serialized. |
| LOW | …amples/dreambooth/test_dreambooth_lora_flux_kontext.py | 269 | # Check if the metadata was properly serialized. |
| 34 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/pipelines/test_pipelines_auto.py | 298 | # make sure you can use pag with inpaint-specific pipeline |
| LOW | tests/pipelines/test_pipelines_auto.py | 298 | # make sure you can use pag with inpaint-specific pipeline |
| LOW | utils/release.py | 128 | # print("Cleaning main README, don't forget to run `make fix-copies`.") |
| LOW | utils/release.py | 128 | # print("Cleaning main README, don't forget to run `make fix-copies`.") |
| LOW | utils/release.py | 148 | # print("Cleaning main README, don't forget to run `make fix-copies`.") |
| LOW | utils/release.py | 148 | # print("Cleaning main README, don't forget to run `make fix-copies`.") |
| LOW | …/unconditional_image_generation/train_unconditional.py | 331 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/instruct_pix2pix/train_instruct_pix2pix.py | 560 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …amples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py | 616 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …amples/cogvideo/train_cogvideox_image_to_video_lora.py | 1119 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/cogvideo/train_cogvideox_lora.py | 1140 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/flux-control/train_control_lora_flux.py | 912 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/flux-control/train_control_flux.py | 836 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| 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 |
| LOW | …/unconditional_image_generation/train_unconditional.py | 322 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| LOW | …usion/convert_original_promptdiffusion_to_diffusers.py | 1020 | # make sure to remove all keys > 22 |
| LOW | examples/research_projects/realfill/train_realfill.py | 654 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …ts/instructpix2pix_lora/train_instruct_pix2pix_lora.py | 651 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| 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 |
| LOW | …/research_projects/sana/train_sana_sprint_diffusers.py | 1151 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| LOW | …jects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py | 664 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| 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 |
| 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 |
| LOW | …led_huber_loss_training/dreambooth/train_dreambooth.py | 1003 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …uber_loss_training/dreambooth/train_dreambooth_lora.py | 1000 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …loss_training/dreambooth/train_dreambooth_lora_sdxl.py | 1311 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …research_projects/pixart/train_pixart_controlnet_hf.py | 679 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/research_projects/lpl/train_sdxl_lpl.py | 882 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …ects/consistency_training/train_cm_ct_unconditional.py | 963 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …npainting/train_multi_subject_dreambooth_inpainting.py | 498 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …rch_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py | 703 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …research_projects/diffusion_dpo/train_diffusion_dpo.py | 605 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py | 746 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …a_quantization/train_dreambooth_lora_flux_miniature.py | 737 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/cogview4-control/train_control_cogview4.py | 846 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …fusion_training/train_dreambooth_lora_sd15_advanced.py | 1350 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1626 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …fusion_training/train_dreambooth_lora_sdxl_advanced.py | 1670 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/amused/train_amused.py | 531 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …s/consistency_distillation/train_lcm_distill_sd_wds.py | 1003 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …onsistency_distillation/train_lcm_distill_lora_sdxl.py | 897 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …sistency_distillation/train_lcm_distill_lora_sd_wds.py | 1055 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …stency_distillation/train_lcm_distill_lora_sdxl_wds.py | 1070 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …consistency_distillation/train_lcm_distill_sdxl_wds.py | 1063 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| LOW | examples/text_to_image/train_text_to_image.py | 669 | # make sure to pop weight so that corresponding model is not saved again |
| 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 |
| 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 |
| LOW | examples/dreambooth/train_dreambooth_lora_flux2.py | 1330 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …ples/dreambooth/train_dreambooth_lora_flux2_img2img.py | 1280 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …reambooth/train_dreambooth_lora_flux2_klein_img2img.py | 1274 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | …mples/dreambooth/train_dreambooth_lora_flux_kontext.py | 1474 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/dreambooth/train_dreambooth_lora_hidream.py | 1192 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/dreambooth/train_dreambooth.py | 960 | # make sure to pop weight so that corresponding model is not saved again |
| LOW | examples/dreambooth/train_dreambooth_flux.py | 1236 | # make sure to pop weight so that corresponding model is not saved again |
| 30 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 256 | # Step 1: Create an external model repo with custom code (requires trust_remote_code) |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 271 | # Step 2: Create a custom block that references the external repo. |
| LOW | …ular_pipelines/test_modular_pipelines_custom_blocks.py | 357 | # Step 3: Load the pipeline from the saved directory. |
| LOW | tests/pipelines/glm_image/test_glm_image.py | 299 | # Step 1: Run with prompt only to get prior_token_ids from AR model |
| LOW | tests/pipelines/glm_image/test_glm_image.py | 309 | # Step 2: Run with both prompt and prior_token_ids — should not raise |
| LOW | tests/models/testing_utils/quantization.py | 383 | # Step 1: freeze all parameters |
| LOW | tests/models/testing_utils/quantization.py | 390 | # Step 2: add adapters to attention layers |
| LOW | tests/models/testing_utils/quantization.py | 407 | # Step 3: run forward and backward pass |
| LOW | tests/models/testing_utils/quantization.py | 416 | # Step 4: verify gradients are computed |
| LOW | tests/quantization/bnb/test_mixed_int8.py | 390 | # Step 1: freeze all parameters |
| LOW | tests/quantization/bnb/test_mixed_int8.py | 397 | # Step 2: add adapters |
| LOW | tests/quantization/bnb/test_mixed_int8.py | 404 | # Step 3: dummy batch |
| LOW | tests/quantization/bnb/test_mixed_int8.py | 411 | # Step 4: Check if the gradient is not None |
| LOW | tests/quantization/bnb/test_4bit.py | 419 | # Step 1: freeze all parameters |
| LOW | tests/quantization/bnb/test_4bit.py | 426 | # Step 2: add adapters |
| LOW | tests/quantization/bnb/test_4bit.py | 433 | # Step 3: dummy batch |
| LOW | tests/quantization/bnb/test_4bit.py | 440 | # Step 4: Check if the gradient is not None |
| LOW | tests/hooks/test_mag_cache.py | 125 | # Step 0: Input 10.0 -> Output 40.0 (2 blocks * 2x each) |
| LOW | tests/hooks/test_mag_cache.py | 131 | # Step 1: Input 11.0. |
| LOW | tests/hooks/test_mag_cache.py | 160 | # Step 1: Should COMPUTE (44.0) not SKIP (41.0) because of retention |
| LOW | tests/hooks/test_mag_cache.py | 179 | # Step 0: Compute. Input 10.0 -> Output 20.0 (1 block * 2x) |
| LOW | tests/hooks/test_mag_cache.py | 186 | # Step 1: Skip. Input 11.0. |
| 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 |
| 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. |
| LOW | examples/community/checkpoint_merger.py | 176 | # Step 3:- |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 137 | # Step 1: Collect model inputs |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 145 | # Step 2: Update guider state |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 148 | # Step 3: Prepare batched inputs |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 151 | # Step 4: Run denoiser for each batch |
| LOW | …iffusers/modular_pipelines/hunyuan_video1_5/denoise.py | 170 | # Step 5: Combine predictions |
| LOW | …c/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py | 794 | # Step 0: include ref tokens, extract KV cache |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 741 | # Step 1: Collect model inputs needed for the guidance method |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 750 | # Step 2: Update guider's internal state for this denoising step |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 753 | # Step 3: Prepare batched model inputs based on the guidance method |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 763 | # Step 4: Run the denoiser for each batch |
| LOW | …ipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py | 790 | # Step 5: Combine predictions using the guidance method |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 864 | # Step 1: Collect model inputs needed for the guidance method |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 873 | # Step 2: Update guider's internal state for this denoising step |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 876 | # Step 3: Prepare batched model inputs based on the guidance method |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 886 | # Step 4: Run the denoiser for each batch |
| LOW | …yuan_video1_5/pipeline_hunyuan_video1_5_image2video.py | 914 | # Step 5: Combine predictions using the guidance method |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 656 | # Step 1: Collect model inputs needed for the guidance method |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 663 | # Step 2: Update guider's internal state for this denoising step |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 666 | # Step 3: Prepare batched model inputs based on the guidance method |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 677 | # Step 4: Run the denoiser for each batch |
| LOW | …pelines/hunyuan_image/pipeline_hunyuanimage_refiner.py | 704 | # Step 5: Combine predictions using the guidance method |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 764 | # Step 1: Collect model inputs needed for the guidance method |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 773 | # Step 2: Update guider's internal state for this denoising step |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 776 | # Step 3: Prepare batched model inputs based on the guidance method |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 786 | # Step 4: Run the denoiser for each batch |
| LOW | …users/pipelines/hunyuan_image/pipeline_hunyuanimage.py | 814 | # Step 5: Combine predictions using the guidance method |
| LOW | src/diffusers/models/modeling_flax_utils.py | 412 | # Step 1: Get the pytorch file |
| LOW | src/diffusers/models/modeling_flax_utils.py | 415 | # Step 2: Convert the weights |
| LOW | src/diffusers/models/modeling_flax_pytorch_utils.py | 108 | # Step 1: Convert pytorch tensor to numpy |
| LOW | src/diffusers/models/modeling_flax_pytorch_utils.py | 111 | # Step 2: Since the model is stateless, get random Flax params |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | utils/check_repo.py | 673 | model_types = list(diffusers.models.auto.configuration_auto.MODEL_NAMES_MAPPING.keys()) |
| CRITICAL | src/diffusers/models/lora.py | 124 | w_up = self.lora_linear_layer.up.weight.data.float() |
| CRITICAL | src/diffusers/models/lora.py | 125 | w_down = self.lora_linear_layer.down.weight.data.float() |
| CRITICAL | src/diffusers/models/lora.py | 322 | w_up = self.lora_layer.up.weight.data.float() |
| CRITICAL | src/diffusers/models/lora.py | 323 | w_down = self.lora_layer.down.weight.data.float() |
| CRITICAL | src/diffusers/models/lora.py | 408 | w_up = self.lora_layer.up.weight.data.float() |
| CRITICAL | src/diffusers/models/lora.py | 409 | w_down = self.lora_layer.down.weight.data.float() |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/single_file/single_file_testing_utils.py | 212 | # we just pass it in here otherwise this test will fail |
| LOW | tests/single_file/single_file_testing_utils.py | 232 | # we just pass it in here otherwise this test will fail |
| LOW | tests/single_file/single_file_testing_utils.py | 400 | # we just pass it in here otherwise this test will fail |
| LOW | tests/single_file/single_file_testing_utils.py | 421 | # we just pass it in here otherwise this test will fail |
| LOW | utils/consolidated_test_report.py | 171 | pass # If we can't read the line file, just use what we have |
| MEDIUM | utils/consolidated_test_report.py | 351 | """Generate a comprehensive markdown report from consolidated data.""" |
| LOW | utils/check_inits.py | 71 | # If this is a traditional init, just return. |
| LOW | …uber_loss_training/dreambooth/train_dreambooth_lora.py | 912 | # IF does not have a VAE so let's just set it to None |
| LOW | examples/research_projects/lpl/train_sdxl_lpl.py | 1342 | # If no SNR weighting, just use mean |
| MEDIUM | examples/research_projects/sdxl_flax/sdxl_single.py | 1 | # Show best practices for SDXL JAX |
| 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 |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1753 | else: # regular te training or regular pivotal for clip |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1757 | # pivotal tuning of clip & t5 |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 1769 | else: # regular pivotal tuning of clip & t5 |
| MEDIUM | …fusion_training/train_dreambooth_lora_flux_advanced.py | 2116 | elif args.train_text_encoder_ti: # textual inversion / pivotal tuning |
| MEDIUM | …ffusion_training/test_dreambooth_lora_flux_advanced.py | 146 | # when performing pivotal tuning, all the parameters in the state dict should start |
| MEDIUM | …ffusion_training/test_dreambooth_lora_flux_advanced.py | 189 | # when performing pivotal tuning, all the parameters in the state dict should start |
| LOW | examples/dreambooth/train_dreambooth_lora_flux2.py | 1236 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| LOW | …ples/dreambooth/train_dreambooth_lora_flux2_img2img.py | 1186 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| LOW | …reambooth/train_dreambooth_lora_flux2_klein_img2img.py | 1181 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| LOW | examples/dreambooth/train_dreambooth_lora_hidream.py | 1134 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| LOW | examples/dreambooth/train_dreambooth_lora.py | 889 | # IF does not have a VAE so let's just set it to None |
| LOW | examples/dreambooth/train_dreambooth_lora_z_image.py | 1224 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| LOW | …amples/dreambooth/train_dreambooth_lora_flux2_klein.py | 1230 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| LOW | examples/dreambooth/train_dreambooth_lora_qwen_image.py | 1138 | # we never offload the transformer to CPU, so we can just use the accelerator device |
| 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: |
| MEDIUM | src/diffusers/modular_pipelines/components_manager.py | 774 | """Get comprehensive information about a component. |
| LOW | src/diffusers/modular_pipelines/modular_pipeline.py | 2106 | # if it is not set yet, just set it and skip the process to check and warn below |
| MEDIUM | src/diffusers/pipelines/prx/pipeline_prx.py | 129 | """Clean text using comprehensive text processing logic.""" |
| MEDIUM | src/diffusers/utils/state_dict_utils.py | 155 | # This is not a comprehensive dict as kohya format requires replacing `.` with `_` in keys, |
| LOW | src/diffusers/models/attention_processor.py | 593 | # here we simply pass along all tensors to the selected processor class |
| MEDIUM | src/diffusers/models/modeling_utils.py | 501 | # If users want to apply layerwise casting on peft layers as well, they can utilize the |
| LOW | src/diffusers/models/autoencoders/vae.py | 631 | inds[inds >= self.used.shape[0]] = 0 # simply set to zero |
| MEDIUM | src/diffusers/loaders/lora_conversion_utils.py | 338 | # not utilize it yet. |
| LOW | …fusers/schedulers/scheduling_ltx_euler_ancestral_rf.py | 320 | # Already at the end; simply return the current sample. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | setup.py | 51 | python setup.py bdist_wheel && python setup.py sdist |
| HIGH | setup.py | 64 | pip install diffusers && pip uninstall diffusers |
| HIGH | tests/quantization/test_pipeline_level_quantization.py | 281 | "llm_int8_skip_modules": null, |
| HIGH | utils/label_issues.py | 43 | Example: {"labels": ["bug", "models", "needs-code-example"], "model_name": null} |
| HIGH | src/diffusers/pipelines/ace_step/pipeline_ace_step.py | 1171 | # Batched guidance: stack (cond, null) on batch dim and run the DiT once. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …research_projects/pixart/train_pixart_controlnet_hf.py | 686 | |
| MEDIUM | …rs/modular_pipelines/z_image/modular_blocks_z_image.py | 260 | |
| MEDIUM | …rs/modular_pipelines/z_image/modular_blocks_z_image.py | 261 | |
| MEDIUM | …rs/modular_pipelines/z_image/modular_blocks_z_image.py | 262 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/profiling/run_profiling.sh | 4 | # Usage: |
| LOW | scripts/convert_longcat_audio_dit_to_diffusers.py | 16 | # Usage: |
| LOW | scripts/convert_ace_step_to_diffusers.py | 3 | # Usage: |