repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
diffusers
src/diffusers/schedulers/deprecated/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
51
1,349
diffusers
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py
.py
# Copyright 2025 NVIDIA and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
240
9,640
diffusers
src/diffusers/schedulers/deprecated/scheduling_sde_vp.py
.py
# Copyright 2025 Google Brain and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
109
4,263
diffusers
src/diffusers/experimental/rl/value_guided_sampling.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
154
6,033
diffusers
src/diffusers/loaders/peft.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
818
38,074
diffusers
src/diffusers/loaders/unet.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
780
37,239
diffusers
src/diffusers/loaders/utils.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
59
2,399
diffusers
src/diffusers/loaders/lora_conversion_utils.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
3,284
158,604
diffusers
src/diffusers/loaders/unet_loader_utils.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
165
6,228
diffusers
src/diffusers/loaders/transformer_flux.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
180
8,021
diffusers
src/diffusers/loaders/__init__.py
.py
from typing import TYPE_CHECKING from ..utils import DIFFUSERS_SLOW_IMPORT, _LazyModule, deprecate from ..utils.import_utils import is_peft_available, is_torch_available, is_transformers_available def text_encoder_lora_state_dict(text_encoder): deprecate( "text_encoder_load_state_dict in `models`", ...
162
6,452
diffusers
src/diffusers/loaders/lora_base.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
1,115
47,104
diffusers
src/diffusers/loaders/single_file.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
568
25,099
diffusers
src/diffusers/loaders/single_file_model.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
566
25,180
diffusers
src/diffusers/loaders/ip_adapter.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
1,135
57,762
diffusers
src/diffusers/loaders/textual_inversion.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
606
27,765
diffusers
src/diffusers/loaders/lora_pipeline.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
7,123
303,187
diffusers
src/diffusers/loaders/single_file_utils.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
4,215
188,768
diffusers
src/diffusers/loaders/transformer_sd3.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
175
8,612
diffusers
src/diffusers/quantizers/quantization_config.py
.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
990
43,799
diffusers
src/diffusers/quantizers/auto.py
.py
# Copyright 2025 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
175
7,243
diffusers
src/diffusers/quantizers/base.py
.py
# Copyright 2025 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
266
10,933
diffusers
src/diffusers/quantizers/pipe_quant_config.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
207
9,423
diffusers
src/diffusers/quantizers/torchao/torchao_quantizer.py
.py
# Copyright 2025 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
485
19,453
diffusers
src/diffusers/quantizers/autoround/autoround_quantizer.py
.py
# Copyright 2025 The Intel and The HuggingFace Inc. teams. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
123
4,926
diffusers
src/diffusers/quantizers/modelopt/modelopt_quantizer.py
.py
from typing import TYPE_CHECKING, Any from ...utils import ( get_module_from_name, is_accelerate_available, is_nvidia_modelopt_available, is_torch_available, logging, ) from ..base import DiffusersQuantizer if TYPE_CHECKING: from ...models.modeling_utils import ModelMixin if is_torch_availa...
197
7,227
diffusers
src/diffusers/quantizers/sdnq/sdnq_quantizer.py
.py
# Copyright 2026 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
73
3,048
diffusers
src/diffusers/quantizers/quanto/utils.py
.py
import torch.nn as nn from ...utils import is_accelerate_available, logging logger = logging.get_logger(__name__) if is_accelerate_available(): from accelerate import init_empty_weights def _replace_with_quanto_layers(model, quantization_config, modules_to_not_convert: list, pre_quantized=False): # Quanto...
61
2,448
diffusers
src/diffusers/quantizers/quanto/quanto_quantizer.py
.py
from typing import TYPE_CHECKING, Any from diffusers.utils.import_utils import is_optimum_quanto_version from ...utils import ( deprecate, get_module_from_name, is_accelerate_available, is_accelerate_version, is_optimum_quanto_available, is_torch_available, logging, ) from ..base import Di...
186
6,493
diffusers
src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py
.py
# Copyright 2025 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
570
25,895
diffusers
src/diffusers/quantizers/bitsandbytes/utils.py
.py
# Copyright 2025 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
319
13,659
diffusers
src/diffusers/quantizers/gguf/utils.py
.py
# Copyright 2025 The HuggingFace Team and City96. All rights reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # U...
624
23,447
diffusers
src/diffusers/quantizers/gguf/gguf_quantizer.py
.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from ..base import DiffusersQuantizer if TYPE_CHECKING: from ...models.modeling_utils import ModelMixin from ...utils import ( get_module_from_name, is_accelerate_available, is_accelerate_version, is_gguf_available, i...
191
7,184
diffusers
src/diffusers/quantizers/nunchaku/nunchaku_quantizer.py
.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from ..base import DiffusersQuantizer if TYPE_CHECKING: from ...models.modeling_utils import ModelMixin from ...utils import is_kernels_available, logging logger = logging.get_logger(__name__) class NunchakuLiteQuantizer(DiffusersQua...
90
3,112
diffusers
src/diffusers/quantizers/nunchaku/utils.py
.py
from __future__ import annotations import itertools import math from contextlib import nullcontext from typing import Any import torch import torch.nn as nn from ...utils import is_accelerate_available, is_kernels_available, is_kernels_version from ...utils.constants import DIFFUSERS_TRUST_REMOTE_KERNELS if is_acc...
358
12,352
diffusers
src/diffusers/pipelines/free_noise_utils.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
598
29,596
diffusers
src/diffusers/pipelines/pipeline_loading_utils.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1,238
50,246
diffusers
src/diffusers/pipelines/__init__.py
.py
from typing import TYPE_CHECKING from ..utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_librosa_available, is_note_seq_available, is_onnx_available, is_opencv_available, is_sentencepiece_available, is_torch_available...
988
37,002
diffusers
src/diffusers/pipelines/auto_pipeline.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1,512
74,190
diffusers
src/diffusers/pipelines/pipeline_utils.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
2,372
119,244
diffusers
src/diffusers/pipelines/onnx_utils.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
231
8,736
diffusers
src/diffusers/pipelines/free_init_utils.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
187
7,661
diffusers
src/diffusers/pipelines/transformers_loading_utils.py
.py
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
124
5,440
diffusers
src/diffusers/pipelines/flux2/pipeline_flux2_klein.py
.py
# Copyright 2025 Black Forest Labs and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
928
41,381
diffusers
src/diffusers/pipelines/flux2/system_messages.py
.py
# docstyle-ignore """ These system prompts come from: https://github.com/black-forest-labs/flux2/blob/5a5d316b1b42f6b59a8c9194b77c8256be848432/src/flux2/system_messages.py#L54 """ # docstyle-ignore SYSTEM_MESSAGE = """You are an AI that reasons about image descriptions. You give structured responses focusing on object...
34
1,904
diffusers
src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py
.py
# Copyright 2025 Black Forest Labs and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
1,273
58,560
diffusers
src/diffusers/pipelines/flux2/pipeline_output.py
.py
from dataclasses import dataclass import numpy as np import PIL.Image from ...utils import BaseOutput @dataclass class Flux2PipelineOutput(BaseOutput): """ Output class for Flux2 image generation pipelines. Args: images (`list[PIL.Image.Image]` or `torch.Tensor` or `np.ndarray`) Lis...
23
743
diffusers
src/diffusers/pipelines/flux2/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _additional_imports = {} _import_structure = {"pipeline_output": ["Flux2Pip...
54
1,898
diffusers
src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py
.py
# Copyright 2025 Black Forest Labs and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
889
36,863
diffusers
src/diffusers/pipelines/flux2/image_processor.py
.py
# Copyright 2025 The Black Forest Labs Team and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
186
6,974
diffusers
src/diffusers/pipelines/flux2/pipeline_flux2.py
.py
# Copyright 2025 Black Forest Labs and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
1,035
44,172
diffusers
src/diffusers/pipelines/stable_cascade/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
51
1,672
diffusers
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
660
32,047
diffusers
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
322
18,102
diffusers
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
542
26,128
diffusers
src/diffusers/pipelines/easyanimate/pipeline_output.py
.py
from dataclasses import dataclass import torch from diffusers.utils import BaseOutput @dataclass class EasyAnimatePipelineOutput(BaseOutput): r""" Output class for EasyAnimate pipelines. Args: frames (`torch.Tensor`, `np.ndarray`, or list[list[PIL.Image.Image]]): list of video outpu...
21
621
diffusers
src/diffusers/pipelines/easyanimate/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and i...
53
1,634
diffusers
src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py
.py
# Copyright 2025 The EasyAnimate team and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
1,010
46,689
diffusers
src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py
.py
# Copyright 2025 The EasyAnimate team and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
774
35,709
diffusers
src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py
.py
# Copyright 2025 The EasyAnimate team and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
1,245
58,840
diffusers
src/diffusers/pipelines/lumina2/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and i...
49
1,342
diffusers
src/diffusers/pipelines/lumina2/pipeline_lumina2.py
.py
# Copyright 2025 Alpha-VLLM and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
763
37,042
diffusers
src/diffusers/pipelines/ace_step/modeling_ace_step.py
.py
# Copyright 2025 The ACE-Step Team and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
857
35,424
diffusers
src/diffusers/pipelines/ace_step/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, is_transformers_version, ) _dummy_objects = {} _import_structure = {} try: if not (is_tr...
55
1,672
diffusers
src/diffusers/pipelines/ace_step/pipeline_ace_step.py
.py
# Copyright 2025 The ACE-Step Team and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
1,296
62,794
diffusers
src/diffusers/pipelines/kandinsky3/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
50
1,461
diffusers
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py
.py
from typing import Callable import torch from transformers import T5EncoderModel, T5Tokenizer from ...loaders import StableDiffusionLoraLoaderMixin from ...models import Kandinsky3UNet, VQModel from ...schedulers import DDPMScheduler from ...utils import ( deprecate, is_torch_xla_available, logging, r...
582
27,240
diffusers
src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py
.py
#!/usr/bin/env python3 import argparse import fnmatch from safetensors.torch import load_file from diffusers import Kandinsky3UNet MAPPING = { "to_time_embed.1": "time_embedding.linear_1", "to_time_embed.3": "time_embedding.linear_2", "in_layer": "conv_in", "out_layer.0": "conv_norm_out", "out_l...
99
3,273
diffusers
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py
.py
import inspect from typing import Callable import PIL import PIL.Image import torch from transformers import T5EncoderModel, T5Tokenizer from ...image_processor import VaeImageProcessor from ...loaders import StableDiffusionLoraLoaderMixin from ...models import Kandinsky3UNet, VQModel from ...schedulers import DDPMSc...
635
30,409
diffusers
src/diffusers/pipelines/prx/pipeline_output.py
.py
# Copyright 2025 The Photoroom and the HuggingFace Teams. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
35
1,173
diffusers
src/diffusers/pipelines/prx/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _additional_imports = {} _import_structure = {"pipeline_output": ["PRXPipel...
77
2,775
diffusers
src/diffusers/pipelines/prx/pipeline_prx_pixel.py
.py
# Copyright 2025 The Photoroom and The HuggingFace Teams. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
667
30,800
diffusers
src/diffusers/pipelines/prx/pipeline_prx.py
.py
# Copyright 2025 The Photoroom and The HuggingFace Teams. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
836
35,693
diffusers
src/diffusers/pipelines/glm_image/pipeline_output.py
.py
from dataclasses import dataclass import numpy as np import PIL.Image from ...utils import BaseOutput @dataclass class GlmImagePipelineOutput(BaseOutput): """ Output class for CogView3 pipelines. Args: images (`List[PIL.Image.Image]` or `np.ndarray`) List of denoised PIL images of l...
21
557
diffusers
src/diffusers/pipelines/glm_image/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, is_transformers_version, ) _dummy_objects = {} _additional_imports = {} _import_structure = {...
60
1,967
diffusers
src/diffusers/pipelines/glm_image/pipeline_glm_image.py
.py
# Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
1,080
50,058
diffusers
src/diffusers/pipelines/controlnet_sd3/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
51
1,626
diffusers
src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py
.py
# Copyright 2025 Stability AI, The HuggingFace Team and The InstantX Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
1,255
62,738
diffusers
src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py
.py
# Copyright 2025 Stability AI, The HuggingFace Team and The AlimamaCreative Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
1,415
70,626
diffusers
src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py
.py
# Copyright 2025 Baidu ERNIE-Image Team and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
400
16,530
diffusers
src/diffusers/pipelines/ernie_image/pipeline_output.py
.py
# Copyright 2025 Baidu ERNIE-Image Team and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
37
1,171
diffusers
src/diffusers/pipelines/ernie_image/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
48
1,304
diffusers
src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py
.py
# Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
878
41,750
diffusers
src/diffusers/pipelines/cogvideo/pipeline_output.py
.py
from dataclasses import dataclass import torch from diffusers.utils import BaseOutput @dataclass class CogVideoXPipelineOutput(BaseOutput): r""" Output class for CogVideo pipelines. Args: frames (`torch.Tensor`, `np.ndarray`, or list[list[PIL.Image.Image]]): list of video outputs - ...
21
616
diffusers
src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py
.py
# Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI, Alibaba-PAI and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:/...
852
40,711
diffusers
src/diffusers/pipelines/cogvideo/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and i...
55
1,816
diffusers
src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py
.py
# Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
909
43,132
diffusers
src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py
.py
# Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI and The HuggingFace Team. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
799
38,153
diffusers
src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py
.py
# Copyright 2025 HunyuanDiT Authors and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
913
43,606
diffusers
src/diffusers/pipelines/hunyuandit/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and i...
49
1,302
diffusers
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py
.py
import inspect import numpy as np import PIL.Image import torch from ...models import UNet2DModel, VQModel from ...schedulers import ( DDIMScheduler, DPMSolverMultistepScheduler, EulerAncestralDiscreteScheduler, EulerDiscreteScheduler, LMSDiscreteScheduler, PNDMScheduler, ) from ...utils impor...
197
8,138
diffusers
src/diffusers/pipelines/latent_diffusion/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
51
1,542
diffusers
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py
.py
# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
750
32,715
diffusers
src/diffusers/pipelines/krea2/pipeline_output.py
.py
# Copyright 2026 Krea AI and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
35
1,094
diffusers
src/diffusers/pipelines/krea2/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
48
1,404
diffusers
src/diffusers/pipelines/krea2/pipeline_krea2.py
.py
# Copyright 2026 Krea AI and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
720
35,340
diffusers
src/diffusers/pipelines/bria/pipeline_output.py
.py
from dataclasses import dataclass import numpy as np import PIL.Image from ...utils import BaseOutput @dataclass class BriaPipelineOutput(BaseOutput): """ Output class for Bria pipelines. Args: images (`list[PIL.Image.Image]` or `np.ndarray`) list of denoised PIL images of length `b...
21
549
diffusers
src/diffusers/pipelines/bria/__init__.py
.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and i...
49
1,278
diffusers
src/diffusers/pipelines/bria/pipeline_bria.py
.py
from typing import Any, Callable import numpy as np import torch from transformers import ( CLIPImageProcessor, CLIPVisionModelWithProjection, T5EncoderModel, T5TokenizerFast, ) from ...image_processor import VaeImageProcessor from ...loaders import FluxLoraLoaderMixin from ...models import Autoencode...
747
35,149
diffusers
src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py
.py
# Copyright 2026 Ideogram AI and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
748
35,514