Skip to content

Commit

Permalink
prioritize repositories/stable-diffusion path when searching for SD
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Sep 10, 2022
1 parent 22faf30 commit 695c05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# search for directory of stable diffsuion in following palces
sd_path = None
possible_sd_paths = ['.', os.path.dirname(script_path), os.path.join(script_path, 'repositories/stable-diffusion')]
possible_sd_paths = [os.path.join(script_path, 'repositories/stable-diffusion'), '.', os.path.dirname(script_path)]
for possible_sd_path in possible_sd_paths:
if os.path.exists(os.path.join(possible_sd_path, 'ldm/models/diffusion/ddpm.py')):
sd_path = os.path.abspath(possible_sd_path)
Expand Down

0 comments on commit 695c05f

Please sign in to comment.