mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-27 04:11:39 -08:00
make launch.py run installers for extensions that have ones
add some more classes to safety module for an extension
This commit is contained in:
parent
f126986b76
commit
d35bf64945
2 changed files with 21 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue