stlaurentjr commited on
Commit
34ed012
1 Parent(s): 897c5a7

Update scripts/mainrunpodA1111.py

Browse files
Files changed (1) hide show
  1. scripts/mainrunpodA1111.py +3 -0
scripts/mainrunpodA1111.py CHANGED
@@ -150,6 +150,9 @@ def mdl(Original_Model_Version, Path_to_MODEL, MODEL_LINK):
150
 
151
  if not os.path.exists('/workspace/sd/stable-diffusion-webui/models/Stable-diffusion/SDv1-5.ckpt'):
152
  call('ln -s /workspace/auto-models/* /workspace/sd/stable-diffusion-webui/models/Stable-diffusion', shell=True)
 
 
 
153
  call('ln -s /workspace/auto-lora/* /workspace/sd/stable-diffusion-webui/models/Lora', shell=True)
154
 
155
  if Path_to_MODEL !='':
 
150
 
151
  if not os.path.exists('/workspace/sd/stable-diffusion-webui/models/Stable-diffusion/SDv1-5.ckpt'):
152
  call('ln -s /workspace/auto-models/* /workspace/sd/stable-diffusion-webui/models/Stable-diffusion', shell=True)
153
+
154
+ if not os.path.exists('/workspace/sd/stable-diffusion-webui/models/Lora'):
155
+ call('mkdir -p /workspace/sd/stable-diffusion-webui/models/Lora', shell=True)
156
  call('ln -s /workspace/auto-lora/* /workspace/sd/stable-diffusion-webui/models/Lora', shell=True)
157
 
158
  if Path_to_MODEL !='':