Merge pull request #1109 from d8ahazard/ModelLoader

Model Loader, Fixes
This commit is contained in:
AUTOMATIC1111 2022-09-30 09:35:58 +03:00 committed by GitHub
commit 25414bcd05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 2176 additions and 1413 deletions

View file

@ -3,9 +3,10 @@ import os
import sys
script_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
models_path = os.path.join(script_path, "models")
sys.path.insert(0, script_path)
# search for directory of stable diffsuion in following palces
# search for directory of stable diffusion in following places
sd_path = None
possible_sd_paths = [os.path.join(script_path, 'repositories/stable-diffusion'), '.', os.path.dirname(script_path)]
for possible_sd_path in possible_sd_paths: