Unverified Commit 500b9cf1 authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

[chore] Move guiders experimental warning (#12543)

* move guiders experimental warning to init.

* up
parent d34b18c7
...@@ -17,12 +17,6 @@ from typing import Union ...@@ -17,12 +17,6 @@ from typing import Union
from ..utils import is_torch_available, logging 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(): if is_torch_available():
from .adaptive_projected_guidance import AdaptiveProjectedGuidance from .adaptive_projected_guidance import AdaptiveProjectedGuidance
from .adaptive_projected_guidance_mix import AdaptiveProjectedMixGuidance from .adaptive_projected_guidance_mix import AdaptiveProjectedMixGuidance
......
...@@ -41,6 +41,10 @@ class BaseGuidance(ConfigMixin, PushToHubMixin): ...@@ -41,6 +41,10 @@ class BaseGuidance(ConfigMixin, PushToHubMixin):
_identifier_key = "__guidance_identifier__" _identifier_key = "__guidance_identifier__"
def __init__(self, start: float = 0.0, stop: float = 1.0, enabled: bool = True): 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._start = start
self._stop = stop self._stop = stop
self._step: int = None self._step: int = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment