[Post release] Push post release (#2546)

This commit is contained in:
Patrick von Platen 2023-03-03 18:11:01 +01:00 committed by GitHub
parent 1f4deb697f
commit 3d2648d743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 16 deletions

View File

@ -47,7 +47,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = get_logger(__name__)

View File

@ -36,7 +36,7 @@ from diffusers.utils import check_min_version
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
# Cache compiled models across invocations of this script.
cc.initialize_cache(os.path.expanduser("~/.cache/jax/compilation_cache"))

View File

@ -54,7 +54,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = get_logger(__name__)

View File

@ -47,7 +47,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = get_logger(__name__, log_level="INFO")

View File

@ -34,7 +34,7 @@ from diffusers.utils import check_min_version
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = logging.getLogger(__name__)

View File

@ -48,7 +48,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = get_logger(__name__, log_level="INFO")

View File

@ -78,7 +78,7 @@ else:
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = get_logger(__name__)

View File

@ -57,7 +57,7 @@ else:
# ------------------------------------------------------------------------------
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = logging.getLogger(__name__)

View File

@ -27,7 +27,7 @@ from diffusers.utils import check_min_version, is_accelerate_version, is_tensorb
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.14.0")
check_min_version("0.15.0.dev0")
logger = get_logger(__name__, log_level="INFO")

View File

@ -219,7 +219,7 @@ install_requires = [
setup(
name="diffusers",
version="0.14.0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
version="0.15.0.dev0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
description="Diffusers",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",

View File

@ -1,4 +1,4 @@
__version__ = "0.14.0"
__version__ = "0.15.0.dev0"
from .configuration_utils import ConfigMixin
from .utils import (

View File

@ -21,7 +21,7 @@ import torch
from ...models import UNet2DModel
from ...schedulers import RePaintScheduler
from ...utils import PIL_INTERPOLATION, deprecate, logging, randn_tensor
from ...utils import PIL_INTERPOLATION, logging, randn_tensor
from ..pipeline_utils import DiffusionPipeline, ImagePipelineOutput
@ -90,7 +90,6 @@ class RePaintPipeline(DiffusionPipeline):
generator: Optional[Union[torch.Generator, List[torch.Generator]]] = None,
output_type: Optional[str] = "pil",
return_dict: bool = True,
**kwargs,
) -> Union[ImagePipelineOutput, Tuple]:
r"""
Args:
@ -124,9 +123,7 @@ class RePaintPipeline(DiffusionPipeline):
True, otherwise a `tuple. When returning a tuple, the first element is a list with the generated images.
"""
message = "Please use `image` instead of `original_image`."
original_image = deprecate("original_image", "0.15.0", message, take_from=kwargs)
original_image = original_image or image
original_image = image
original_image = _preprocess_image(original_image)
original_image = original_image.to(device=self.device, dtype=self.unet.dtype)