auto-diffusers 2.0.16__py3-none-any.whl → 2.0.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1132,7 +1132,7 @@ class AutoConfig:
1132
1132
  self.load_lora_weights(pretrained_model_name_or_path_or_dict, adapter_name=adapter_name, **kwargs)
1133
1133
 
1134
1134
 
1135
- class EasyPipelineForText2Image(AutoPipelineForText2Image, AutoConfig):
1135
+ class EasyPipelineForText2Image(AutoPipelineForText2Image):
1136
1136
  r"""
1137
1137
  [`EasyPipelineForText2Image`] is a generic pipeline class that instantiates a text-to-image pipeline class. The
1138
1138
  specific underlying pipeline class is automatically selected from either the
@@ -1274,13 +1274,14 @@ class EasyPipelineForText2Image(AutoPipelineForText2Image, AutoConfig):
1274
1274
  # Check the format of the model checkpoint
1275
1275
  if hf_checkpoint_status.loading_method == "from_single_file":
1276
1276
  # Load the pipeline from a single file checkpoint
1277
- return load_pipeline_from_single_file(
1277
+ pipeline = load_pipeline_from_single_file(
1278
1278
  pretrained_model_or_path=checkpoint_path,
1279
1279
  pipeline_mapping=SINGLE_FILE_CHECKPOINT_TEXT2IMAGE_PIPELINE_MAPPING,
1280
1280
  **kwargs,
1281
1281
  )
1282
1282
  else:
1283
- return cls.from_pretrained(checkpoint_path, **kwargs)
1283
+ pipeline = cls.from_pretrained(checkpoint_path, **kwargs)
1284
+ return add_methods(pipeline)
1284
1285
 
1285
1286
  @classmethod
1286
1287
  def from_civitai(cls, pretrained_model_link_or_path, **kwargs):
@@ -1639,11 +1640,12 @@ class EasyPipelineForImage2Image(AutoPipelineForImage2Image):
1639
1640
  checkpoint_path = checkpoint_status.model_path
1640
1641
 
1641
1642
  # Load the pipeline from a single file checkpoint
1642
- return load_pipeline_from_single_file(
1643
+ pipeline = load_pipeline_from_single_file(
1643
1644
  pretrained_model_or_path=checkpoint_path,
1644
1645
  pipeline_mapping=SINGLE_FILE_CHECKPOINT_IMAGE2IMAGE_PIPELINE_MAPPING,
1645
1646
  **kwargs,
1646
1647
  )
1648
+ return add_methods(pipeline)
1647
1649
 
1648
1650
 
1649
1651
  class EasyPipelineForInpainting(AutoPipelineForInpainting):
@@ -1789,13 +1791,14 @@ class EasyPipelineForInpainting(AutoPipelineForInpainting):
1789
1791
  # Check the format of the model checkpoint
1790
1792
  if hf_checkpoint_status.loading_method == "from_single_file":
1791
1793
  # Load the pipeline from a single file checkpoint
1792
- return load_pipeline_from_single_file(
1794
+ pipeline = load_pipeline_from_single_file(
1793
1795
  pretrained_model_or_path=checkpoint_path,
1794
1796
  pipeline_mapping=SINGLE_FILE_CHECKPOINT_INPAINT_PIPELINE_MAPPING,
1795
1797
  **kwargs,
1796
1798
  )
1797
1799
  else:
1798
- return cls.from_pretrained(checkpoint_path, **kwargs)
1800
+ pipeline = cls.from_pretrained(checkpoint_path, **kwargs)
1801
+ return add_methods(pipeline)
1799
1802
 
1800
1803
  @classmethod
1801
1804
  def from_civitai(cls, pretrained_model_link_or_path, **kwargs):
@@ -1895,8 +1898,9 @@ class EasyPipelineForInpainting(AutoPipelineForInpainting):
1895
1898
  checkpoint_path = checkpoint_status.model_path
1896
1899
 
1897
1900
  # Load the pipeline from a single file checkpoint
1898
- return load_pipeline_from_single_file(
1901
+ pipeline = load_pipeline_from_single_file(
1899
1902
  pretrained_model_or_path=checkpoint_path,
1900
1903
  pipeline_mapping=SINGLE_FILE_CHECKPOINT_INPAINT_PIPELINE_MAPPING,
1901
1904
  **kwargs,
1902
1905
  )
1906
+ return add_methods(pipeline)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto_diffusers
3
- Version: 2.0.16
3
+ Version: 2.0.18
4
4
  Summary: Customized diffusers with model search and other functions.
5
5
  Home-page: https://github.com/suzukimain/auto_diffusers
6
6
  Author: suzukimain
@@ -0,0 +1,8 @@
1
+ auto_diffusers/__init__.py,sha256=2VKCeWUc38yM2JVLhR9oqSQMC6513XEWPuBzk2pdRrM,204
2
+ auto_diffusers/pipeline_easy.py,sha256=UdThaZqwqNkTTFNIQApkFIcQImHEO6qpxEbkuuq4vr8,92365
3
+ auto_diffusers/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ auto_diffusers-2.0.18.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
+ auto_diffusers-2.0.18.dist-info/METADATA,sha256=v2IvranqZWMl8ghgTzXrvOP3Qk9BFCoTDPzwkrPhMS4,9912
6
+ auto_diffusers-2.0.18.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
+ auto_diffusers-2.0.18.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
8
+ auto_diffusers-2.0.18.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- auto_diffusers/__init__.py,sha256=2VKCeWUc38yM2JVLhR9oqSQMC6513XEWPuBzk2pdRrM,204
2
- auto_diffusers/pipeline_easy.py,sha256=guFGtEAw14muT1Js2CkM59Din3LC2V0Bwzb8IQcCGpw,92205
3
- auto_diffusers/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- auto_diffusers-2.0.16.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
- auto_diffusers-2.0.16.dist-info/METADATA,sha256=nFnXEuJ5QMD-f2_kHxI5zb_-39l1EQWOeLooa21bzQo,9912
6
- auto_diffusers-2.0.16.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
- auto_diffusers-2.0.16.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
8
- auto_diffusers-2.0.16.dist-info/RECORD,,