Thafx commited on
Commit
99087c8
1 Parent(s): 4a96576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -27,7 +27,7 @@ def error_str(error, title="Error"):
27
  {error}""" if error else ""
28
 
29
  def inference(prompt, guidance, steps, width=512, height=512, seed=0, img=None, strength=0.5, neg_prompt="", auto_prefix=False):
30
-
31
  generator = torch.Generator('cuda').manual_seed(seed) if seed != 0 else None
32
  prompt = f"{prefix} {prompt}" if auto_prefix else prompt
33
 
@@ -79,17 +79,17 @@ with gr.Blocks(css=css) as demo:
79
  <h1>Realistic Vision V1.3</h1>
80
  </div>
81
  <p>
82
- Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V1.3">Realistic Vision V1.3</a> Stable Diffusion model by "Eugene".<br>
83
  Please use this prompt template to get the desired generation results:<br>
84
- <h2><b>Prompt</b>:</h2><br>
85
  <details>
86
  RAW photo, *subject*, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
87
- <br>
88
  <i>Example: RAW photo, a close up portrait photo of 26 y.o woman in wastelander clothes, long haircut, pale skin, slim body, background is city ruins, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
89
  </i>
90
  </details>
91
 
92
- <h2><b>Negative Prompt</b>:</h2><br>
93
  <details>
94
  (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck
95
  </details>
 
27
  {error}""" if error else ""
28
 
29
  def inference(prompt, guidance, steps, width=512, height=512, seed=0, img=None, strength=0.5, neg_prompt="", auto_prefix=False):
30
+ os.system("python3 -m --no-half-vae -o out")
31
  generator = torch.Generator('cuda').manual_seed(seed) if seed != 0 else None
32
  prompt = f"{prefix} {prompt}" if auto_prefix else prompt
33
 
 
79
  <h1>Realistic Vision V1.3</h1>
80
  </div>
81
  <p>
82
+ Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V1.3">Realistic Vision V1.3</a> Stable Diffusion model by "Eugene".<br><br>
83
  Please use this prompt template to get the desired generation results:<br>
84
+ <h2><b>Prompt</b>:</h2>
85
  <details>
86
  RAW photo, *subject*, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
87
+ <br><br>
88
  <i>Example: RAW photo, a close up portrait photo of 26 y.o woman in wastelander clothes, long haircut, pale skin, slim body, background is city ruins, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
89
  </i>
90
  </details>
91
 
92
+ <h2><b>Negative Prompt</b>:</h2>
93
  <details>
94
  (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck
95
  </details>