aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-11-01 11:19:24 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-11-01 11:20:15 +0000
commitd35bf649456da2558cbb6f2ea16fa1606022b7e7 (patch)
tree1c98a2089817786cdc0d6dfaf0f08714bfb80249 /modules
parentf126986b76a4129061c85cd7213cde05a2f63b33 (diff)
downloadstable-diffusion-webui-gfx803-d35bf649456da2558cbb6f2ea16fa1606022b7e7.tar.gz
stable-diffusion-webui-gfx803-d35bf649456da2558cbb6f2ea16fa1606022b7e7.tar.bz2
stable-diffusion-webui-gfx803-d35bf649456da2558cbb6f2ea16fa1606022b7e7.zip
make launch.py run installers for extensions that have ones
add some more classes to safety module for an extension
Diffstat (limited to 'modules')
-rw-r--r--modules/safe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/safe.py b/modules/safe.py
index 399165a1..348a24fc 100644
--- a/modules/safe.py
+++ b/modules/safe.py
@@ -32,7 +32,7 @@ class RestrictedUnpickler(pickle.Unpickler):
return getattr(collections, name)
if module == 'torch._utils' and name in ['_rebuild_tensor_v2', '_rebuild_parameter']:
return getattr(torch._utils, name)
- if module == 'torch' and name in ['FloatStorage', 'HalfStorage', 'IntStorage', 'LongStorage', 'DoubleStorage']:
+ if module == 'torch' and name in ['FloatStorage', 'HalfStorage', 'IntStorage', 'LongStorage', 'DoubleStorage', 'ByteStorage']:
return getattr(torch, name)
if module == 'torch.nn.modules.container' and name in ['ParameterDict']:
return getattr(torch.nn.modules.container, name)