diff options
author | Bruno Seoane <brunoseoaneamarillo@gmail.com> | 2022-11-01 15:06:10 +0000 |
---|---|---|
committer | Bruno Seoane <brunoseoaneamarillo@gmail.com> | 2022-11-01 15:06:10 +0000 |
commit | 31db25ecc8d9c3996e7bac00cc616ee12557b7d3 (patch) | |
tree | a2126c45535b989a7954ff30e142d73d1848cb0a /modules/safe.py | |
parent | 952ff32a5ffe7495721272a3443714b93c267ca9 (diff) | |
parent | 458cca03915ba437ac65a2087965f3885e6022bc (diff) | |
download | stable-diffusion-webui-gfx803-31db25ecc8d9c3996e7bac00cc616ee12557b7d3.tar.gz stable-diffusion-webui-gfx803-31db25ecc8d9c3996e7bac00cc616ee12557b7d3.tar.bz2 stable-diffusion-webui-gfx803-31db25ecc8d9c3996e7bac00cc616ee12557b7d3.zip |
Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui
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)
|