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/utils/get_modified_files.py
utils/get_modified_files.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/log_reports.py
utils/log_reports.py
import argparse import json import os from datetime import date from pathlib import Path from slack_sdk import WebClient from tabulate import tabulate MAX_LEN_MESSAGE = 2900 # slack endpoint has a limit of 3001 characters parser = argparse.ArgumentParser() parser.add_argument("--slack_channel_name", default="diffu...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/extract_tests_from_mixin.py
utils/extract_tests_from_mixin.py
import argparse import inspect import sys from pathlib import Path from typing import List, Type root_dir = Path(__file__).parent.parent.absolute() sys.path.insert(0, str(root_dir)) parser = argparse.ArgumentParser() parser.add_argument("--type", type=str, default=None) args = parser.parse_args() def get_test_meth...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/notify_community_pipelines_mirror.py
utils/notify_community_pipelines_mirror.py
# coding=utf-8 # 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 requir...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/update_metadata.py
utils/update_metadata.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/tests_fetcher.py
utils/tests_fetcher.py
# coding=utf-8 # Copyright 2021 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/notify_benchmarking_status.py
utils/notify_benchmarking_status.py
# coding=utf-8 # 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 requir...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/check_support_list.py
utils/check_support_list.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 # """ Utility that checks that mo...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/notify_slack_about_release.py
utils/notify_slack_about_release.py
# coding=utf-8 # 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 requir...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/print_env.py
utils/print_env.py
#!/usr/bin/env python3 # 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 # # Unles...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/utils/release.py
utils/release.py
# coding=utf-8 # Copyright 2021 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
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/docs/source/_config.py
docs/source/_config.py
# docstyle-ignore INSTALL_CONTENT = """ # Diffusers installation ! pip install diffusers transformers datasets accelerate # To install from source instead of the last release, comment the command above and uncomment the following one. # ! pip install git+https://github.com/huggingface/diffusers.git """ notebook_first_...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/test_examples_utils.py
examples/test_examples_utils.py
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 law or ag...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/conftest.py
examples/conftest.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/examples/community/text_inpainting.py
examples/community/text_inpainting.py
from typing import Callable, List, Optional, Union import PIL.Image import torch from transformers import ( CLIPImageProcessor, CLIPSegForImageSegmentation, CLIPSegProcessor, CLIPTextModel, CLIPTokenizer, ) from diffusers import DiffusionPipeline from diffusers.configuration_utils import FrozenDic...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_xl_instantid.py
examples/community/pipeline_stable_diffusion_xl_instantid.py
# Copyright 2025 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-2.0 # # Unless required by applicable l...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/fresco_v2v.py
examples/community/fresco_v2v.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/examples/community/masked_stable_diffusion_xl_img2img.py
examples/community/masked_stable_diffusion_xl_img2img.py
from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import torch from PIL import Image, ImageFilter from diffusers.image_processor import PipelineImageInput from diffusers.pipelines.stable_diffusion_xl.pipeline_output import StableDiffusionXLPipelineOutput from diffusers.pipelines....
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stg_ltx.py
examples/community/pipeline_stg_ltx.py
# Copyright 2025 Lightricks 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/examples/community/instaflow_one_step.py
examples/community/instaflow_one_step.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/examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py
examples/community/pipeline_stable_diffusion_xl_attentive_eraser.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/examples/community/pipeline_animatediff_ipex.py
examples/community/pipeline_animatediff_ipex.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/examples/community/adaptive_mask_inpainting.py
examples/community/adaptive_mask_inpainting.py
# Copyright 2023 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/examples/community/pipeline_animatediff_controlnet.py
examples/community/pipeline_animatediff_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
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_comparison.py
examples/community/stable_diffusion_comparison.py
from typing import Any, Callable, Dict, List, Optional, Union import torch from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from diffusers import ( AutoencoderKL, DDIMScheduler, DiffusionPipeline, LMSDiscreteScheduler, PNDMScheduler, StableDiffusionPipeline, UNet2D...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stg_wan.py
examples/community/pipeline_stg_wan.py
# Copyright 2025 The Wan 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/examples/community/unclip_image_interpolation.py
examples/community/unclip_image_interpolation.py
import inspect from typing import List, Optional, Union import PIL.Image import torch from torch.nn import functional as F from transformers import ( CLIPImageProcessor, CLIPTextModelWithProjection, CLIPTokenizer, CLIPVisionModelWithProjection, ) from diffusers import ( DiffusionPipeline, Imag...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/llm_grounded_diffusion.py
examples/community/llm_grounded_diffusion.py
# Copyright 2025 Long Lian, the GLIGEN 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/clip_guided_stable_diffusion.py
examples/community/clip_guided_stable_diffusion.py
import inspect from typing import List, Optional, Union import torch from torch import nn from torch.nn import functional as F from torchvision import transforms from transformers import CLIPImageProcessor, CLIPModel, CLIPTextModel, CLIPTokenizer from diffusers import ( AutoencoderKL, DDIMScheduler, DPMSo...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py
examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py
# Copyright 2025 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-2.0 # # Unless required by applicable l...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_repaint.py
examples/community/stable_diffusion_repaint.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/examples/community/pipeline_stg_cogvideox.py
examples/community/pipeline_stg_cogvideox.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/examples/community/multilingual_stable_diffusion.py
examples/community/multilingual_stable_diffusion.py
import inspect from typing import Callable, List, Optional, Union import torch from transformers import ( CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, MBart50TokenizerFast, MBartForConditionalGeneration, pipeline, ) from diffusers.configuration_utils import FrozenDict from diffusers.model...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/interpolate_stable_diffusion.py
examples/community/interpolate_stable_diffusion.py
import inspect import time from pathlib import Path from typing import Callable, List, Optional, Union import numpy as np import torch from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from diffusers.configuration_utils import FrozenDict from diffusers.models import AutoencoderKL, UNet2DCondit...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_3_differential_img2img.py
examples/community/pipeline_stable_diffusion_3_differential_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/examples/community/pipline_flux_fill_controlnet_Inpaint.py
examples/community/pipline_flux_fill_controlnet_Inpaint.py
import inspect from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import PIL import torch from transformers import ( CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5TokenizerFast, ) from diffusers.image_processor import PipelineImageInput, VaeImageProcessor from di...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/speech_to_image_diffusion.py
examples/community/speech_to_image_diffusion.py
import inspect from typing import Callable, List, Optional, Union import torch from transformers import ( CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, WhisperForConditionalGeneration, WhisperProcessor, ) from diffusers import ( AutoencoderKL, DDIMScheduler, DiffusionPipeline, ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/tiled_upscaling.py
examples/community/tiled_upscaling.py
# Copyright 2025 Peter Willemsen <peter@codebuffet.co>. 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/examples/community/pipeline_stable_diffusion_xl_differential_img2img.py
examples/community/pipeline_stable_diffusion_xl_differential_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/examples/community/masked_stable_diffusion_img2img.py
examples/community/masked_stable_diffusion_img2img.py
from typing import Any, Callable, Dict, List, Optional, Union import numpy as np import PIL.Image import torch from diffusers import StableDiffusionImg2ImgPipeline from diffusers.pipelines.stable_diffusion import StableDiffusionPipelineOutput class MaskedStableDiffusionImg2ImgPipeline(StableDiffusionImg2ImgPipeline...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_controlnet_reference.py
examples/community/stable_diffusion_controlnet_reference.py
# Inspired by: https://github.com/Mikubill/sd-webui-controlnet/discussions/1236 and https://github.com/Mikubill/sd-webui-controlnet/discussions/1280 from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import PIL.Image import torch from diffusers import StableDiffusionControlNetPipe...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/mod_controlnet_tile_sr_sdxl.py
examples/community/mod_controlnet_tile_sr_sdxl.py
# Copyright 2025 The DEVAIEXP 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/rerender_a_video.py
examples/community/rerender_a_video.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/examples/community/lpw_stable_diffusion_xl.py
examples/community/lpw_stable_diffusion_xl.py
## ---------------------------------------------------------- # A SDXL pipeline can take unlimited weighted prompt # # Author: Andrew Zhu # GitHub: https://github.com/xhinker # Medium: https://medium.com/@xhinker ## ----------------------------------------------------------- import inspect import os from typing import...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_flux_kontext_multiple_images.py
examples/community/pipeline_flux_kontext_multiple_images.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_controlnet_xl_kolors_inpaint.py
examples/community/pipeline_controlnet_xl_kolors_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/examples/community/stable_diffusion_ipex.py
examples/community/stable_diffusion_ipex.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/examples/community/stable_diffusion_controlnet_inpaint.py
examples/community/stable_diffusion_controlnet_inpaint.py
# Inspired by: https://github.com/haofanwang/ControlNet-for-Diffusers/ import inspect from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import PIL.Image import torch import torch.nn.functional as F from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from di...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/seed_resize_stable_diffusion.py
examples/community/seed_resize_stable_diffusion.py
""" modified based on diffusion library from Huggingface: https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py """ import inspect from typing import Callable, List, Optional, Union import torch from transformers import CLIPImageProcessor, CLIPTextMod...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_controlnet_inpaint_img2img.py
examples/community/stable_diffusion_controlnet_inpaint_img2img.py
# Inspired by: https://github.com/haofanwang/ControlNet-for-Diffusers/ import inspect from typing import Any, Callable, Dict, List, Optional, Union import numpy as np import PIL.Image import torch import torch.nn.functional as F from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from diffusers...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stg_mochi.py
examples/community/pipeline_stg_mochi.py
# Copyright 2025 Genmo 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 by...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/run_tensorrt_controlnet.py
examples/community/run_tensorrt_controlnet.py
import argparse import atexit import inspect import os import time import warnings from typing import Any, Callable, Dict, List, Optional, Union import numpy as np import PIL.Image import pycuda.driver as cuda import tensorrt as trt import torch from PIL import Image from pycuda.tools import make_default_context from ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_animatediff_img2video.py
examples/community/pipeline_animatediff_img2video.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/examples/community/pipeline_kolors_inpainting.py
examples/community/pipeline_kolors_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
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_xl_ipex.py
examples/community/pipeline_stable_diffusion_xl_ipex.py
# Copyright 2023 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/examples/community/iadb.py
examples/community/iadb.py
from typing import List, Optional, Tuple, Union import torch from diffusers import DiffusionPipeline from diffusers.configuration_utils import ConfigMixin from diffusers.pipelines.pipeline_utils import ImagePipelineOutput from diffusers.schedulers.scheduling_utils import SchedulerMixin class IADBScheduler(Scheduler...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_sdxl_style_aligned.py
examples/community/pipeline_sdxl_style_aligned.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/examples/community/pipeline_fabric.py
examples/community/pipeline_fabric.py
# Copyright 2025 FABRIC 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 re...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/regional_prompting_stable_diffusion.py
examples/community/regional_prompting_stable_diffusion.py
import inspect import math from typing import Any, Callable, Dict, List, Optional, Union import torch import torchvision.transforms.functional as FF from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, CLIPVisionModelWithProjection from diffusers.callbacks import MultiPipelineCallbacks, Pipeline...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/sde_drag.py
examples/community/sde_drag.py
import math import tempfile from typing import List, Optional import numpy as np import PIL.Image import torch from accelerate import Accelerator from torchvision import transforms from tqdm.auto import tqdm from transformers import CLIPTextModel, CLIPTokenizer from diffusers import AutoencoderKL, DiffusionPipeline, ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_flux_with_cfg.py
examples/community/pipeline_flux_with_cfg.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_upscale_ldm3d.py
examples/community/pipeline_stable_diffusion_upscale_ldm3d.py
# Copyright 2025 The Intel Labs Team 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 ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_prompt2prompt.py
examples/community/pipeline_prompt2prompt.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/examples/community/hd_painter.py
examples/community/hd_painter.py
import math import numbers from typing import Any, Callable, Dict, List, Optional, Union import torch import torch.nn.functional as F from torch import nn from diffusers.image_processor import PipelineImageInput from diffusers.models import AsymmetricAutoencoderKL, ImageProjection from diffusers.models.attention_proc...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_kolors_differential_img2img.py
examples/community/pipeline_kolors_differential_img2img.py
# Copyright 2025 Stability AI, Kwai-Kolors 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/unclip_text_interpolation.py
examples/community/unclip_text_interpolation.py
import inspect from typing import List, Optional, Tuple, Union import torch from torch.nn import functional as F from transformers import CLIPTextModelWithProjection, CLIPTokenizer from transformers.models.clip.modeling_clip import CLIPTextModelOutput from diffusers import ( DiffusionPipeline, ImagePipelineOu...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stg_ltx_image2video.py
examples/community/pipeline_stg_ltx_image2video.py
# Copyright 2025 Lightricks 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/examples/community/pipeline_flux_semantic_guidance.py
examples/community/pipeline_flux_semantic_guidance.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/sd_text2img_k_diffusion.py
examples/community/sd_text2img_k_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/examples/community/composable_stable_diffusion.py
examples/community/composable_stable_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/examples/community/gluegen.py
examples/community/gluegen.py
import inspect from typing import Any, Dict, List, Optional, Union import torch import torch.nn as nn from transformers import AutoModel, AutoTokenizer, CLIPImageProcessor from diffusers import DiffusionPipeline from diffusers.image_processor import VaeImageProcessor from diffusers.loaders import StableDiffusionLoraL...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py
examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.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/examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py
examples/community/pipeline_stable_diffusion_xl_controlnet_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/examples/community/wildcard_stable_diffusion.py
examples/community/wildcard_stable_diffusion.py
import inspect import os import random import re from dataclasses import dataclass from typing import Callable, Dict, List, Optional, Union import torch from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from diffusers.configuration_utils import FrozenDict from diffusers.models import Autoencod...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_controlnet_xl_kolors_img2img.py
examples/community/pipeline_controlnet_xl_kolors_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/examples/community/magic_mix.py
examples/community/magic_mix.py
from typing import Union import torch from PIL import Image from torchvision import transforms as tfms from tqdm.auto import tqdm from transformers import CLIPTextModel, CLIPTokenizer from diffusers import ( AutoencoderKL, DDIMScheduler, DiffusionPipeline, LMSDiscreteScheduler, PNDMScheduler, ...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/latent_consistency_txt2img.py
examples/community/latent_consistency_txt2img.py
# Copyright 2025 Stanford University 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
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/marigold_depth_estimation.py
examples/community/marigold_depth_estimation.py
# Copyright 2025 Bingxin Ke, ETH Zurich 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/clip_guided_stable_diffusion_img2img.py
examples/community/clip_guided_stable_diffusion_img2img.py
import inspect from typing import List, Optional, Union import numpy as np import PIL.Image import torch from torch import nn from torch.nn import functional as F from torchvision import transforms from transformers import CLIPImageProcessor, CLIPModel, CLIPTextModel, CLIPTokenizer from diffusers import ( Autoenc...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_boxdiff.py
examples/community/pipeline_stable_diffusion_boxdiff.py
# Copyright 2025 Jingyang Zhang 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/examples/community/cogvideox_ddim_inversion.py
examples/community/cogvideox_ddim_inversion.py
""" This script performs DDIM inversion for video frames using a pre-trained model and generates a video reconstruction based on a provided prompt. It utilizes the CogVideoX pipeline to process video frames, apply the DDIM inverse scheduler, and produce an output video. **Please notice that this script is based on the...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_faithdiff_stable_diffusion_xl.py
examples/community/pipeline_faithdiff_stable_diffusion_xl.py
# Copyright 2025 Junyang Chen, Jinshan Pan, Jiangxin Dong, IMAG Lab 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.ap...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_controlnet_xl_kolors.py
examples/community/pipeline_controlnet_xl_kolors.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/examples/community/pipeline_flux_rf_inversion.py
examples/community/pipeline_flux_rf_inversion.py
# Copyright 2025 Black Forest Labs and The HuggingFace Team. All rights reserved. # modeled after RF Inversion: https://rf-inversion.github.io/, authored by Litu Rout, Yujia Chen, Nataniel Ruiz, # Constantine Caramanis, Sanjay Shakkottai and Wen-Sheng Chu. # # Licensed under the Apache License, Version 2.0 (the "Licens...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/run_onnx_controlnet.py
examples/community/run_onnx_controlnet.py
import argparse import inspect import os import time import warnings from typing import Any, Callable, Dict, List, Optional, Union import numpy as np import PIL.Image import torch from PIL import Image from transformers import CLIPTokenizer from diffusers import OnnxRuntimeModel, StableDiffusionImg2ImgPipeline, UniPC...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_mega.py
examples/community/stable_diffusion_mega.py
from typing import Any, Callable, Dict, List, Optional, Union import PIL.Image import torch from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer from diffusers import ( AutoencoderKL, DDIMScheduler, DiffusionPipeline, LMSDiscreteScheduler, PNDMScheduler, StableDiffusionImg...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_tensorrt_inpaint.py
examples/community/stable_diffusion_tensorrt_inpaint.py
# # Copyright 2025 The HuggingFace Inc. team. # SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/dps_pipeline.py
examples/community/dps_pipeline.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/examples/community/stable_diffusion_tensorrt_txt2img.py
examples/community/stable_diffusion_tensorrt_txt2img.py
# # Copyright 2025 The HuggingFace Inc. team. # SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/ddim_noise_comparative_analysis.py
examples/community/ddim_noise_comparative_analysis.py
# Copyright 2022 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/examples/community/pipeline_hunyuandit_differential_img2img.py
examples/community/pipeline_hunyuandit_differential_img2img.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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/stable_diffusion_reference.py
examples/community/stable_diffusion_reference.py
# Inspired by: https://github.com/Mikubill/sd-webui-controlnet/discussions/1236 and https://github.com/Mikubill/sd-webui-controlnet/discussions/1280 import inspect from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import PIL.Image import torch from packaging import version from tr...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_stable_diffusion_pag.py
examples/community/pipeline_stable_diffusion_pag.py
# Implementation of StableDiffusionPipeline with PAG # https://ku-cvlab.github.io/Perturbed-Attention-Guidance import inspect from typing import Any, Callable, Dict, List, Optional, Union import torch import torch.nn.functional as F from packaging import version from transformers import CLIPImageProcessor, CLIPTextMo...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/latent_consistency_img2img.py
examples/community/latent_consistency_img2img.py
# Copyright 2025 Stanford University 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
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/edict_pipeline.py
examples/community/edict_pipeline.py
from typing import Optional import torch from PIL import Image from tqdm.auto import tqdm from transformers import CLIPTextModel, CLIPTokenizer from diffusers import AutoencoderKL, DDIMScheduler, DiffusionPipeline, UNet2DConditionModel from diffusers.image_processor import VaeImageProcessor from diffusers.utils impor...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/pipeline_null_text_inversion.py
examples/community/pipeline_null_text_inversion.py
import inspect import os import numpy as np import torch import torch.nn.functional as nnf from PIL import Image from torch.optim.adam import Adam from tqdm import tqdm from diffusers import StableDiffusionPipeline from diffusers.pipelines.stable_diffusion import StableDiffusionPipelineOutput def retrieve_timesteps...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/clip_guided_images_mixing_stable_diffusion.py
examples/community/clip_guided_images_mixing_stable_diffusion.py
# -*- coding: utf-8 -*- import inspect from typing import Optional, Union import numpy as np import PIL.Image import torch from torch.nn import functional as F from torchvision import transforms from transformers import CLIPImageProcessor, CLIPModel, CLIPTextModel, CLIPTokenizer from diffusers import ( Autoencode...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
false
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/mixture_tiling_sdxl.py
examples/community/mixture_tiling_sdxl.py
# Copyright 2025 The DEVAIEXP 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...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true
huggingface/diffusers
https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/examples/community/matryoshka.py
examples/community/matryoshka.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/examples/community/stable_diffusion_xl_controlnet_reference.py
examples/community/stable_diffusion_xl_controlnet_reference.py
# Based on stable_diffusion_xl_reference.py and stable_diffusion_controlnet_reference.py import inspect from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import PIL.Image import torch from diffusers import StableDiffusionXLControlNetPipeline from diffusers.callbacks import Multi...
python
Apache-2.0
47378066c002573613a1dba686570fbd5a1cf48a
2026-01-04T14:42:56.953111Z
true