repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/text_to_video_synthesis/__init__.py
src/diffusers/pipelines/text_to_video_synthesis/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py
import copy import inspect from dataclasses import dataclass from typing import Callable, List, Optional, Union import numpy as np import PIL.Image import torch import torch.nn.functional as F from torch.nn.functional import grid_sample from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from .....
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_audio/modeling_stable_audio.py
src/diffusers/pipelines/stable_audio/modeling_stable_audio.py
# Copyright 2025 Stability 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 requ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_audio/__init__.py
src/diffusers/pipelines/stable_audio/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py
src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py
# Copyright 2025 Stability 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 requ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/allegro/pipeline_output.py
src/diffusers/pipelines/allegro/pipeline_output.py
from dataclasses import dataclass from typing import List, Union import numpy as np import PIL import torch from diffusers.utils import BaseOutput @dataclass class AllegroPipelineOutput(BaseOutput): r""" Output class for Allegro pipelines. Args: frames (`torch.Tensor`, `np.ndarray`, or List[Lis...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/allegro/__init__.py
src/diffusers/pipelines/allegro/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/allegro/pipeline_allegro.py
src/diffusers/pipelines/allegro/pipeline_allegro.py
# Copyright 2025 The RhymesAI 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 re...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_3/pipeline_output.py
src/diffusers/pipelines/stable_diffusion_3/pipeline_output.py
from dataclasses import dataclass from typing import List, Union import numpy as np import PIL.Image from ...utils import BaseOutput @dataclass class StableDiffusion3PipelineOutput(BaseOutput): """ Output class for Stable Diffusion pipelines. Args: images (`List[PIL.Image.Image]` or `np.ndarray...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py
src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.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-...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_3/__init__.py
src/diffusers/pipelines/stable_diffusion_3/__init__.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_flax_available, is_torch_available, is_transformers_available, ) _dummy_objects = {} _additional_imports = {} _import_structure = {"pipel...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py
src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py
# Copyright 2025 Stability 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 requ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py
src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py
# Copyright 2025 Stability 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 requ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/audioldm/pipeline_audioldm.py
src/diffusers/pipelines/audioldm/pipeline_audioldm.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/audioldm/__init__.py
src/diffusers/pipelines/audioldm/__init__.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_transformers_available, is_transformers_version, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py
src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/__init__.py
src/diffusers/pipelines/kandinsky/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/text_encoder.py
src/diffusers/pipelines/kandinsky/text_encoder.py
import torch from transformers import PreTrainedModel, XLMRobertaConfig, XLMRobertaModel class MCLIPConfig(XLMRobertaConfig): model_type = "M-CLIP" def __init__(self, transformerDimSize=1024, imageDimSize=768, **kwargs): self.transformerDimensions = transformerDimSize self.numDims = imageDimS...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py
# Copyright 2025 TencentARC 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py
# Copyright 2025 TencentARC 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/t2i_adapter/__init__.py
src/diffusers/pipelines/t2i_adapter/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py
from typing import List, Optional, Union import PIL.Image import torch from transformers import CLIPImageProcessor, CLIPTextModelWithProjection, CLIPTokenizer, CLIPVisionModelWithProjection from ...models import PriorTransformer from ...schedulers import UnCLIPScheduler from ...utils import is_torch_xla_available, lo...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/__init__.py
src/diffusers/pipelines/kandinsky2_2/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py
from typing import Callable, Dict, List, Optional, Union import PIL.Image import torch from transformers import CLIPImageProcessor, CLIPTextModelWithProjection, CLIPTokenizer, CLIPVisionModelWithProjection from ...models import PriorTransformer from ...schedulers import UnCLIPScheduler from ...utils import is_torch_x...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/ovis_image/pipeline_output.py
src/diffusers/pipelines/ovis_image/pipeline_output.py
# Copyright 2025 Alibaba Ovis-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 # # ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/ovis_image/__init__.py
src/diffusers/pipelines/ovis_image/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py
src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py
# Copyright 2025 Alibaba Ovis-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 # # ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py
src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py
# Copyright 2025 Alibaba DAMO-VILAB 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/i2vgen_xl/__init__.py
src/diffusers/pipelines/i2vgen_xl/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py
# Copyright 2025 The GLIGEN Authors and 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 re...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py
# Copyright 2025 The GLIGEN Authors and 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 re...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_gligen/__init__.py
src/diffusers/pipelines/stable_diffusion_gligen/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/pipeline_output.py
src/diffusers/pipelines/z_image/pipeline_output.py
# Copyright 2025 Alibaba Z-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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py
src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py
# Copyright 2025 Alibaba Z-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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/pipeline_z_image_omni.py
src/diffusers/pipelines/z_image/pipeline_z_image_omni.py
# Copyright 2025 Alibaba Z-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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/pipeline_z_image.py
src/diffusers/pipelines/z_image/pipeline_z_image.py
# Copyright 2025 Alibaba Z-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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py
src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py
# Copyright 2025 Alibaba Z-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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py
src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py
# Copyright 2025 Alibaba Z-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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/z_image/__init__.py
src/diffusers/pipelines/z_image/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py
src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py
from typing import Callable, Dict, List, Optional, Union 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_...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py
import inspect from typing import Callable, Dict, List, Optional, Union 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 fro...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/kandinsky3/__init__.py
src/diffusers/pipelines/kandinsky3/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py
src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py
# Copyright 2025 MultiDiffusion 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 # # Un...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_panorama/__init__.py
src/diffusers/pipelines/stable_diffusion_panorama/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py
src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py
from dataclasses import dataclass from typing import List, Union import numpy as np import PIL.Image from ...utils import BaseOutput, is_flax_available @dataclass class StableDiffusionXLPipelineOutput(BaseOutput): """ Output class for Stable Diffusion pipelines. Args: images (`List[PIL.Image.Im...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/watermark.py
src/diffusers/pipelines/stable_diffusion_xl/watermark.py
import numpy as np import torch from ...utils import is_invisible_watermark_available if is_invisible_watermark_available(): from imwatermark import WatermarkEncoder # Copied from https://github.com/Stability-AI/generative-models/blob/613af104c6b85184091d42d374fef420eddb356d/scripts/demo/streamlit_helpers.py#L...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py
src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/__init__.py
src/diffusers/pipelines/stable_diffusion_xl/__init__.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_flax_available, is_torch_available, is_transformers_available, ) _dummy_objects = {} _additional_imports = {} _import_structure = {"pipel...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py
# Copyright 2025 Harutatsu Akiyama 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/cogview4/pipeline_output.py
src/diffusers/pipelines/cogview4/pipeline_output.py
from dataclasses import dataclass from typing import List, Union import numpy as np import PIL.Image from ...utils import BaseOutput @dataclass class CogView4PipelineOutput(BaseOutput): """ Output class for CogView3 pipelines. Args: images (`List[PIL.Image.Image]` or `np.ndarray`) L...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/cogview4/pipeline_cogview4.py
src/diffusers/pipelines/cogview4/pipeline_cogview4.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/cogview4/__init__.py
src/diffusers/pipelines/cogview4/__init__.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": ["CogView4...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py
src/diffusers/pipelines/cogview4/pipeline_cogview4_control.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_sag/__init__.py
src/diffusers/pipelines/stable_diffusion_sag/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py
src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py
# Copyright 2025 Susung Hong 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py
import torch import torch.nn as nn from ...models.attention_processor import Attention class WuerstchenLayerNorm(nn.LayerNorm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def forward(self, x): x = x.permute(0, 2, 3, 1) x = super().forward(x) return...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py
# Copyright (c) 2023 Dominic Rampas MIT License # Copyright 2025 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/licen...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py
src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py
# Copyright (c) 2022 Dominic Rampas MIT License # Copyright 2025 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/licen...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/__init__.py
src/diffusers/pipelines/wuerstchen/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py
# Copyright (c) 2023 Dominic Rampas MIT License # Copyright 2025 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/licen...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/omnigen/processor_omnigen.py
src/diffusers/pipelines/omnigen/processor_omnigen.py
# Copyright 2025 OmniGen 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 requ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/omnigen/pipeline_omnigen.py
src/diffusers/pipelines/omnigen/pipeline_omnigen.py
# Copyright 2025 OmniGen 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 requ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/omnigen/__init__.py
src/diffusers/pipelines/omnigen/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py
src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py
# Copyright 2025 Kakao 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 requi...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/unclip/text_proj.py
src/diffusers/pipelines/unclip/text_proj.py
# Copyright 2025 Kakao 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 requi...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/unclip/__init__.py
src/diffusers/pipelines/unclip/__init__.py
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_transformers_available, is_transformers_version, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/unclip/pipeline_unclip.py
src/diffusers/pipelines/unclip/pipeline_unclip.py
# Copyright 2025 Kakao 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 requi...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/dance_diffusion/__init__.py
src/diffusers/pipelines/dance_diffusion/__init__.py
from typing import TYPE_CHECKING from ...utils import DIFFUSERS_SLOW_IMPORT, _LazyModule _import_structure = {"pipeline_dance_diffusion": ["DanceDiffusionPipeline"]} if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT: from .pipeline_dance_diffusion import DanceDiffusionPipeline else: import sys sys.modules[__na...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py
src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/__init__.py
src/diffusers/pipelines/deprecated/__init__.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_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {}...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py
src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py
# Copyright 2025 Microsoft 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 require...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/vq_diffusion/__init__.py
src/diffusers/pipelines/deprecated/vq_diffusion/__init__.py
from typing import TYPE_CHECKING from ....utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is_torch_available()): ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py
src/diffusers/pipelines/deprecated/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/latent_diffusion_uncond/__init__.py
src/diffusers/pipelines/deprecated/latent_diffusion_uncond/__init__.py
from typing import TYPE_CHECKING from ....utils import DIFFUSERS_SLOW_IMPORT, _LazyModule _import_structure = {"pipeline_latent_diffusion_uncond": ["LDMPipeline"]} if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT: from .pipeline_latent_diffusion_uncond import LDMPipeline else: import sys sys.modules[__name__]...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/score_sde_ve/pipeline_score_sde_ve.py
src/diffusers/pipelines/deprecated/score_sde_ve/pipeline_score_sde_ve.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/score_sde_ve/__init__.py
src/diffusers/pipelines/deprecated/score_sde_ve/__init__.py
from typing import TYPE_CHECKING from ....utils import DIFFUSERS_SLOW_IMPORT, _LazyModule _import_structure = {"pipeline_score_sde_ve": ["ScoreSdeVePipeline"]} if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT: from .pipeline_score_sde_ve import ScoreSdeVePipeline else: import sys sys.modules[__name__] = _Laz...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py
# Copyright 2025 Pix2Pix Zero 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 # # Unl...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py
# Copyright 2025 TIME 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 # # Unless requi...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py
# Copyright 2025 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py
# Copyright 2025 ParaDiGMS 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 # # Unless...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/stable_diffusion_variants/__init__.py
src/diffusers/pipelines/deprecated/stable_diffusion_variants/__init__.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py
import inspect from typing import Callable, List, Optional, Union import numpy as np import PIL.Image import torch from transformers import CLIPImageProcessor, CLIPTokenizer from ....configuration_utils import FrozenDict from ....schedulers import DDIMScheduler, LMSDiscreteScheduler, PNDMScheduler from ....utils impo...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false