Compare commits

...

2 Commits

Author SHA1 Message Date
Patrick von Platen
a1d33fc9a5 Release: v0.22.1 2023-11-06 15:41:55 +01:00
Patrick von Platen
1a4db89def [Custom Pipelines] Make sure that community pipelines can use repo revision (#5659)
fix custom pipelines
2023-11-06 15:40:25 +01:00
3 changed files with 8 additions and 3 deletions

View File

@@ -244,7 +244,7 @@ install_requires = [
setup(
name="diffusers",
version="0.22.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.22.1", # 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="State-of-the-art diffusion in PyTorch and JAX.",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",

View File

@@ -1,4 +1,4 @@
__version__ = "0.22.0"
__version__ = "0.22.1"
from typing import TYPE_CHECKING

View File

@@ -353,13 +353,18 @@ def _get_pipeline_class(
else:
file_name = CUSTOM_PIPELINE_FILE_NAME
if repo_id is not None and hub_revision is not None:
# if we load the pipeline code from the Hub
# make sure to overwrite the `revison`
revision = hub_revision
return get_class_from_dynamic_module(
custom_pipeline,
module_file=file_name,
class_name=class_name,
repo_id=repo_id,
cache_dir=cache_dir,
revision=revision if hub_revision is None else hub_revision,
revision=revision,
)
if class_obj != DiffusionPipeline: