mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 04:11:15 -08:00
added guard for torch.load to prevent loading pickles with unknown content
This commit is contained in:
parent
bba2ac8324
commit
875ddfeecf
3 changed files with 91 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import argparse
|
||||
import os
|
||||
import sys
|
||||
import modules.safe
|
||||
|
||||
script_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
models_path = os.path.join(script_path, "models")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue