From 0535a2e877564f5ff2aac7716a19c72038ea31b4 Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Sat, 25 Oct 2025 11:49:27 -1000 Subject: [PATCH 1/2] move guiders experimental warning to init. --- check.py | 3 +++ src/diffusers/guiders/__init__.py | 6 ------ src/diffusers/guiders/guider_utils.py | 4 ++++ 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 check.py diff --git a/check.py b/check.py new file mode 100644 index 000000000000..75fdefe10131 --- /dev/null +++ b/check.py @@ -0,0 +1,3 @@ +from diffusers import StableDiffusionXLPipeline + +pipe = StableDiffusionXLPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-xl-pipe") \ No newline at end of file diff --git a/src/diffusers/guiders/__init__.py b/src/diffusers/guiders/__init__.py index 6c95b8e0c4ce..4e53c373c4f4 100644 --- a/src/diffusers/guiders/__init__.py +++ b/src/diffusers/guiders/__init__.py @@ -17,12 +17,6 @@ from ..utils import is_torch_available, logging -logger = logging.get_logger(__name__) -logger.warning( - "Guiders are currently an experimental feature under active development. The API is subject to breaking changes in future releases." -) - - if is_torch_available(): from .adaptive_projected_guidance import AdaptiveProjectedGuidance from .adaptive_projected_guidance_mix import AdaptiveProjectedMixGuidance diff --git a/src/diffusers/guiders/guider_utils.py b/src/diffusers/guiders/guider_utils.py index b7afd8648b88..71e4becfcdf3 100644 --- a/src/diffusers/guiders/guider_utils.py +++ b/src/diffusers/guiders/guider_utils.py @@ -41,6 +41,10 @@ class BaseGuidance(ConfigMixin, PushToHubMixin): _identifier_key = "__guidance_identifier__" def __init__(self, start: float = 0.0, stop: float = 1.0, enabled: bool = True): + logger.warning( + "Guiders are currently an experimental feature under active development. The API is subject to breaking changes in future releases." + ) + self._start = start self._stop = stop self._step: int = None From eb64261dc30613265d059f79cdab18842e175b90 Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Sat, 25 Oct 2025 11:50:36 -1000 Subject: [PATCH 2/2] up --- check.py | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 check.py diff --git a/check.py b/check.py deleted file mode 100644 index 75fdefe10131..000000000000 --- a/check.py +++ /dev/null @@ -1,3 +0,0 @@ -from diffusers import StableDiffusionXLPipeline - -pipe = StableDiffusionXLPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-xl-pipe") \ No newline at end of file