diff options
author | AngelBottomless <35677394+aria1th@users.noreply.github.com> | 2022-11-02 13:18:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 13:18:31 +0000 |
commit | 10b280e9a21d7bbe854b212164b955444610743f (patch) | |
tree | b1807fb11220f2607305ba47172b41c87441007a /modules/safe.py | |
parent | 9b5f85ac83f864310fe19c9deab6670bad695b0d (diff) | |
parent | 172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff) | |
download | stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.gz stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.bz2 stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.zip |
Merge branch 'AUTOMATIC1111:master' into force-push-patch-13
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)
|