svjack commited on
Commit
574e257
·
1 Parent(s): cab936f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -10,6 +10,7 @@ if not os.path.exists("sd-ggml"):
10
  os.system("git clone https://huggingface.co/svjack/sd-ggml")
11
  else:
12
  shutil.rmtree("sd-ggml")
 
13
  assert os.path.exists("sd-ggml")
14
  os.chdir("sd-ggml")
15
  assert os.path.exists("stable-diffusion.cpp")
@@ -30,6 +31,7 @@ def process(model_path ,prompt, num_samples, image_resolution, sample_steps, see
30
  os.mkdir(output_path)
31
  else:
32
  shutil.rmtree(output_path)
 
33
  assert os.path.exists(output_path)
34
 
35
  run_format = './bin/sd -m {} --sampling-method "dpm++2mv2" -o "{}/{}.png" -p "{}" --steps {} -H {} -W {}'
 
10
  os.system("git clone https://huggingface.co/svjack/sd-ggml")
11
  else:
12
  shutil.rmtree("sd-ggml")
13
+ os.system("git clone https://huggingface.co/svjack/sd-ggml")
14
  assert os.path.exists("sd-ggml")
15
  os.chdir("sd-ggml")
16
  assert os.path.exists("stable-diffusion.cpp")
 
31
  os.mkdir(output_path)
32
  else:
33
  shutil.rmtree(output_path)
34
+ os.mkdir(output_path)
35
  assert os.path.exists(output_path)
36
 
37
  run_format = './bin/sd -m {} --sampling-method "dpm++2mv2" -o "{}/{}.png" -p "{}" --steps {} -H {} -W {}'