From 72cd27a13587c9579942577e9e3880778be195f6 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 1 May 2023 14:33:44 +0300 Subject: [PATCH 1/2] update changelog --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73b25eaf..8b8a3611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Upcoming version: +## 1.1.0 ### Features: * switch to torch 2.0.0 (except for AMD GPUs) * visual improvements to custom code scripts @@ -54,5 +54,5 @@ * outpainting Mk2 & Poorman should use the SAMPLE file format to save images, not GRID file format * do not fail all Loras if some have failed to load when making a picture -## Before versions: +## 1.0.0 * everything From 5ab7f213bec2f816f9c5644becb32eb72c8ffb89 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Tue, 2 May 2023 09:20:35 +0300 Subject: [PATCH 2/2] fix an error that prevents running webui on torch<2.0 without --disable-safe-unpickle --- CHANGELOG.md | 4 ++++ modules/safe.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8a3611..8d2f96e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 +### Bug Fixes: + * fix an error that prevents running webui on torch<2.0 without --disable-safe-unpickle + ## 1.1.0 ### Features: * switch to torch 2.0.0 (except for AMD GPUs) diff --git a/modules/safe.py b/modules/safe.py index dadf319c..e6c2f2c0 100644 --- a/modules/safe.py +++ b/modules/safe.py @@ -24,7 +24,11 @@ class RestrictedUnpickler(pickle.Unpickler): def persistent_load(self, saved_id): assert saved_id[0] == 'storage' - return TypedStorage(_internal=True) + + try: + return TypedStorage(_internal=True) + except TypeError: + return TypedStorage() # PyTorch before 2.0 does not have the _internal argument def find_class(self, module, name): if self.extra_handler is not None: