diffusers 0.25.0__py3-none-any.whl → 0.25.1__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.
diffusers/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.25.0"
1
+ __version__ = "0.25.1"
2
2
 
3
3
  from typing import TYPE_CHECKING
4
4
 
@@ -9,7 +9,7 @@ deps = {
9
9
  "filelock": "filelock",
10
10
  "flax": "flax>=0.4.1",
11
11
  "hf-doc-builder": "hf-doc-builder>=0.3.0",
12
- "huggingface-hub": "huggingface-hub>=0.19.4",
12
+ "huggingface-hub": "huggingface-hub>=0.20.2",
13
13
  "requests-mock": "requests-mock==1.10.0",
14
14
  "importlib_metadata": "importlib_metadata",
15
15
  "invisible-watermark": "invisible-watermark>=0.2.0",
@@ -13,7 +13,6 @@
13
13
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
-
17
16
  import fnmatch
18
17
  import importlib
19
18
  import inspect
@@ -27,6 +26,7 @@ from typing import Any, Callable, Dict, List, Optional, Union
27
26
 
28
27
  import numpy as np
29
28
  import PIL.Image
29
+ import requests
30
30
  import torch
31
31
  from huggingface_hub import (
32
32
  ModelCard,
@@ -35,7 +35,7 @@ from huggingface_hub import (
35
35
  model_info,
36
36
  snapshot_download,
37
37
  )
38
- from huggingface_hub.utils import validate_hf_hub_args
38
+ from huggingface_hub.utils import OfflineModeIsEnabled, validate_hf_hub_args
39
39
  from packaging import version
40
40
  from requests.exceptions import HTTPError
41
41
  from tqdm.auto import tqdm
@@ -1654,7 +1654,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
1654
1654
  if not local_files_only:
1655
1655
  try:
1656
1656
  info = model_info(pretrained_model_name, token=token, revision=revision)
1657
- except HTTPError as e:
1657
+ except (HTTPError, OfflineModeIsEnabled, requests.ConnectionError) as e:
1658
1658
  logger.warn(f"Couldn't connect to the Hub: {e}.\nWill try to load from local cache.")
1659
1659
  local_files_only = True
1660
1660
  model_info_call_error = e # save error to reraise it if model is not cached locally
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diffusers
3
- Version: 0.25.0
3
+ Version: 0.25.1
4
4
  Summary: State-of-the-art diffusion in PyTorch and JAX.
5
5
  Home-page: https://github.com/huggingface/diffusers
6
6
  Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)
@@ -18,12 +18,13 @@ Classifier: Programming Language :: Python :: 3
18
18
  Classifier: Programming Language :: Python :: 3.8
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
21
22
  Requires-Python: >=3.8.0
22
23
  Description-Content-Type: text/markdown
23
24
  License-File: LICENSE
24
25
  Requires-Dist: importlib-metadata
25
26
  Requires-Dist: filelock
26
- Requires-Dist: huggingface-hub >=0.19.4
27
+ Requires-Dist: huggingface-hub >=0.20.2
27
28
  Requires-Dist: numpy
28
29
  Requires-Dist: regex !=2019.12.17
29
30
  Requires-Dist: requests
@@ -1,7 +1,7 @@
1
- diffusers/__init__.py,sha256=gPgPz75T4W3b0CCaiDUxJBjFTvQ2ztO2a6zDZ13dxDw,27505
1
+ diffusers/__init__.py,sha256=EyMIRUenXH105qccxEXpQS3mmfQ9ZKf7ZML7Ko0Iens,27505
2
2
  diffusers/configuration_utils.py,sha256=DSTUXVZRxtIzn_5FHavHAvUIDI9PFg2oun68BYCI2O0,31801
3
3
  diffusers/dependency_versions_check.py,sha256=kcB42KI2vgKHLxYgNJ1PtRNGMklz_zy2yUqR8idHC-4,1271
4
- diffusers/dependency_versions_table.py,sha256=YQ7y2HekzG3ygjXOMrtVv2rLW-uZ9KV75ep5LuYgBKw,1515
4
+ diffusers/dependency_versions_table.py,sha256=FG-dIdSnpJ2i2Re1ZVSWWMrtEJPqEQ7K-8C_rTl8a50,1515
5
5
  diffusers/image_processor.py,sha256=1dLcjTUVmqRKnyNpUWFkt4D2cyN1wXEeAUZR-eyNmFQ,36367
6
6
  diffusers/optimization.py,sha256=hEiD1hqAUdvOrffQFhApCqtVRufoDsrzcVtFuq6H4ow,14743
7
7
  diffusers/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -73,7 +73,7 @@ diffusers/pipelines/__init__.py,sha256=zxzhXy41iKv2BXWgabMnCN4s1APTmuF3eBRm_YQC7
73
73
  diffusers/pipelines/auto_pipeline.py,sha256=Ffs8MZ6QBI2eGoQOQXWnk1btXJad1RDflWcy4ISM_qs,50499
74
74
  diffusers/pipelines/onnx_utils.py,sha256=T7S-DqJPdYqURfqEiHwJJdJdMdmbYaEPIDeq4TIU6Nk,8326
75
75
  diffusers/pipelines/pipeline_flax_utils.py,sha256=KQgE0waWQjmrSXGl_fZNDV-muO1CYk2428R_i6accFQ,27479
76
- diffusers/pipelines/pipeline_utils.py,sha256=iwG5xs1pE0eQw9XMCr-96oZ_lmnsjAiHJJuI0nhIZ0U,102416
76
+ diffusers/pipelines/pipeline_utils.py,sha256=WtCmHRcjNgEI3aacO9WxTVUzmrV5oQGPcDUM2HzKDvk,102503
77
77
  diffusers/pipelines/amused/__init__.py,sha256=pzqLeLosNQ29prMLhTxvPpmoIDPB3OFMQMlErOIRkmI,1793
78
78
  diffusers/pipelines/amused/pipeline_amused.py,sha256=NYnMjBgK_b_-QZPU23NX2K8I7Fo_GnNAXzHiFg96w08,15652
79
79
  diffusers/pipelines/amused/pipeline_amused_img2img.py,sha256=nX2WZFTNk1GB4TjZPzVkZTA1AzMqZNoRkRAnTQd5P1o,17109
@@ -352,9 +352,9 @@ diffusers/utils/state_dict_utils.py,sha256=ZZBbOQij7f3U0GRH52oxCDYynZ_-O3SvQJQ9q
352
352
  diffusers/utils/testing_utils.py,sha256=HkBnGK4STbs49WZDfVwEJ4qBZVaBT1_SZH5Y4piyb_Y,34726
353
353
  diffusers/utils/torch_utils.py,sha256=KVeJcwzxbQHm7870OtibrxwkSCFddeCslLy9BtbZQHA,6233
354
354
  diffusers/utils/versions.py,sha256=-e7XW1TzZ-tsRo9PMQHp-hNGYHuVDFzLtwg3uAJzqdI,4333
355
- diffusers-0.25.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
356
- diffusers-0.25.0.dist-info/METADATA,sha256=c9-5IOxmbbU0oyy6ZGZoRgrfCOnkZSdG5yv0EabOSHo,19037
357
- diffusers-0.25.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
358
- diffusers-0.25.0.dist-info/entry_points.txt,sha256=_1bvshKV_6_b63_FAkcUs9W6tUKGeIoQ3SHEZsovEWs,72
359
- diffusers-0.25.0.dist-info/top_level.txt,sha256=axJl2884vMSvhzrFrSoht36QXA_6gZN9cKtg4xOO72o,10
360
- diffusers-0.25.0.dist-info/RECORD,,
355
+ diffusers-0.25.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
356
+ diffusers-0.25.1.dist-info/METADATA,sha256=UVB75C6_xPNtvXCyGz_XBC8nDAt_H7CwvF1V-Fd2hDI,19088
357
+ diffusers-0.25.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
358
+ diffusers-0.25.1.dist-info/entry_points.txt,sha256=_1bvshKV_6_b63_FAkcUs9W6tUKGeIoQ3SHEZsovEWs,72
359
+ diffusers-0.25.1.dist-info/top_level.txt,sha256=axJl2884vMSvhzrFrSoht36QXA_6gZN9cKtg4xOO72o,10
360
+ diffusers-0.25.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5