Skip to content

Commit

Permalink
[Post release] Push post release (open-mmlab#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored Mar 3, 2023
1 parent 1f4deb6 commit 3d2648d
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/dreambooth/train_dreambooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@


# 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__)

Expand Down
2 changes: 1 addition & 1 deletion examples/dreambooth/train_dreambooth_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


# 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"))
Expand Down
2 changes: 1 addition & 1 deletion examples/dreambooth/train_dreambooth_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@


# 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__)

Expand Down
2 changes: 1 addition & 1 deletion examples/text_to_image/train_text_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@


# 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")

Expand Down
2 changes: 1 addition & 1 deletion examples/text_to_image/train_text_to_image_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


# 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__)

Expand Down
2 changes: 1 addition & 1 deletion examples/text_to_image/train_text_to_image_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


# 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")

Expand Down
2 changes: 1 addition & 1 deletion examples/textual_inversion/textual_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@


# 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__)

Expand Down
2 changes: 1 addition & 1 deletion examples/textual_inversion/textual_inversion_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
# ------------------------------------------------------------------------------

# 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__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


# 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")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def run(self):

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",
Expand Down
2 changes: 1 addition & 1 deletion src/diffusers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.14.0"
__version__ = "0.15.0.dev0"

from .configuration_utils import ConfigMixin
from .utils import (
Expand Down
7 changes: 2 additions & 5 deletions src/diffusers/pipelines/repaint/pipeline_repaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

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


Expand Down Expand Up @@ -90,7 +90,6 @@ def __call__(
generator: Optional[Union[torch.Generator, List[torch.Generator]]] = None,
output_type: Optional[str] = "pil",
return_dict: bool = True,
**kwargs,
) -> Union[ImagePipelineOutput, Tuple]:
r"""
Args:
Expand Down Expand Up @@ -124,9 +123,7 @@ def __call__(
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)
Expand Down

0 comments on commit 3d2648d

Please sign in to comment.