Skip to content

Commit 500b9cf

Browse files
authored
[chore] Move guiders experimental warning (huggingface#12543)
* move guiders experimental warning to init. * up
1 parent d34b18c commit 500b9cf

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/diffusers/guiders/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
from ..utils import is_torch_available, logging
1818

1919

20-
logger = logging.get_logger(__name__)
21-
logger.warning(
22-
"Guiders are currently an experimental feature under active development. The API is subject to breaking changes in future releases."
23-
)
24-
25-
2620
if is_torch_available():
2721
from .adaptive_projected_guidance import AdaptiveProjectedGuidance
2822
from .adaptive_projected_guidance_mix import AdaptiveProjectedMixGuidance

src/diffusers/guiders/guider_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ class BaseGuidance(ConfigMixin, PushToHubMixin):
4141
_identifier_key = "__guidance_identifier__"
4242

4343
def __init__(self, start: float = 0.0, stop: float = 1.0, enabled: bool = True):
44+
logger.warning(
45+
"Guiders are currently an experimental feature under active development. The API is subject to breaking changes in future releases."
46+
)
47+
4448
self._start = start
4549
self._stop = stop
4650
self._step: int = None

0 commit comments

Comments
 (0)