diff options
author | Sihan Wang <31711261+shwang95@users.noreply.github.com> | 2022-11-02 06:09:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 06:09:33 +0000 |
commit | 5c864be010b42373e51eac4c6869d561adca4202 (patch) | |
tree | 1de5f558ab056bc766ac51d3612356f0de52b1f8 /modules/safe.py | |
parent | 7bd8581e461623932ffbd5762ee931ee51f798db (diff) | |
parent | 65522ff157e4be4095a99421da04ecb0749824ac (diff) | |
download | stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.tar.gz stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.tar.bz2 stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.zip |
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'modules/safe.py')
-rw-r--r-- | modules/safe.py | 2 |
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)
|