LituRout commited on
Commit
7c04fc2
1 Parent(s): 2b1bea3

add SD weights

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. download.sh +1 -2
app.py CHANGED
@@ -350,7 +350,7 @@ else:
350
 
351
  print('Downloading stable diffusion pretrained weights')
352
  subprocess.call(['sh', './download.sh'])
353
- model = load_model_from_config(config, f"{opt.ckpt}")
354
 
355
  model = model.to(device)
356
 
 
350
 
351
  print('Downloading stable diffusion pretrained weights')
352
  subprocess.call(['sh', './download.sh'])
353
+ model = load_model_from_config(config, "model.ckpt")
354
 
355
  model = model.to(device)
356
 
download.sh CHANGED
@@ -1,3 +1,2 @@
1
  wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
2
- mkdir ./stable-diffusion/models/ldm/stable-diffusion-v1/
3
- mv v1-5-pruned-emaonly.ckpt ./stable-diffusion/models/ldm/stable-diffusion-v1/model.ckpt
 
1
  wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
2
+ mv v1-5-pruned-emaonly.ckpt model.ckpt