Spaces:
Thafx
/
Runtime error

Thafx commited on
Commit
b4553a2
·
1 Parent(s): 75ba3f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -19
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import torch
4
  from PIL import Image
5
 
6
- model_id = 'SG161222/Realistic_Vision_V1.4'
7
  prefix = 'RAW photo,'
8
 
9
  scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
@@ -107,31 +107,34 @@ with gr.Blocks(css=css) as demo:
107
  f"""
108
  <div class="main-div">
109
  <div>
110
- <h1 style="color:orange; font-family: verdana;">Realistic Vision V1.4</h1>
111
  </div>
112
  <p>
113
- Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V1.4">Realistic Vision V1.4</a>
114
- Stable Diffusion model by <a href="https://huggingface.co/SG161222/"><abbr title="SG1611222">Eugene</abbr></a>. {"" if prefix else ""}
115
- </p>
116
- Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🔥</b>"}.
117
 
118
- <br><br>
119
- Please use this prompt template below to get an example of the desired generation results:<br>
120
- <q><em>Important note: The <mark>"RAW photo"</mark> in the prompt may degrade the result in v1.4.</em></q>
121
-
122
- <b>Prompt</b>:<small><code>
123
- RAW photo, *subject*, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
124
- <br>
125
- <bdo dir="rtl">(high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3</bdo>
 
126
  <br>
127
- <sub><i>Example: RAW photo, a close up portrait photo of 26 y.o woman in wastelander clothes, long haircut, <br> pale skin, slim body, background is city ruins, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
128
- </i></sub>
 
129
  </code></small>
130
 
131
- <b>Negative Prompt</b>:<code>
132
- (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, <br> 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
 
133
  </code>
134
- <br><br>
 
135
  Have Fun & Enjoy <a href="https://www.thafx.com"><abbr title="//THAFX">Website</abbr></a>
136
  <br>
137
 
 
3
  import torch
4
  from PIL import Image
5
 
6
+ model_id = 'Dunkindont/Foto-Assisted-Diffusion-FAD_V0'
7
  prefix = 'RAW photo,'
8
 
9
  scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
 
107
  f"""
108
  <div class="main-div">
109
  <div>
110
+ <h1 style="color:purple; font-family: verdana;">Foto Assisted Diffusion (FAD) </h1>
111
  </div>
112
  <p>
113
+ Demo for <a href="https://huggingface.co/Dunkindont"><abbr title="Foto Assisted Diffusion">(FAD)</abbr></a>
114
+ Stable Diffusion model by <a href="https://huggingface.co/Dunkindont"><abbr title="Dunkindont">Dunkindont</abbr></a>. {"" if prefix else ""}
115
+ Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🔥</b>"}. </p>
 
116
 
117
+ <blockquote>
118
+ Model is meant to mimic a modern HDR photography style.
119
+ Trained on 600 HDR images on SD1.5
120
+ • Merged with one of my own models for illustrations and drawings for miniscule uses outside of photography
121
+ • No hi-res fix required, can generate natively from supported resolutions (See Supported Resolutions Tab)
122
+ </blockquote>
123
+ Please use this prompt template below to get an example of the desired generation results:
124
+ <br>
125
+ <q><em>Important note: You can use the model at 512x512 but the results will likely be undesirable.</em></q>
126
  <br>
127
+ <b>Prompt</b>:
128
+ <small><code>
129
+ medium portrait (close up:0.5) of a Beautiful scottish ginger woman, (messy bun), sitting on a wooden chair, wearing a fancy Victorian era dress, seductively posing, pale skin, dark red lips, dark eye shadow, ornate pendant, sitting in front of a large stone fireplace, candle burning, in a luxurious fantasy castle, side lighting, cinematic, Renaissance style, (Fujifilm XT3:1.1), (high detailed face:1.3), perfect hands
130
  </code></small>
131
 
132
+ <b>Negative Prompt</b>:
133
+ <code>
134
+ Negative prompt: (deformed mouth), (deformed lips), (deformed eyes), (cross-eyed), (deformed iris), (deformed hands), lowers, 3d render, cartoon, long body, wide hips, narrow waist, disfigured, ugly, cross eyed, squinting, grain, Deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, ugly, (poorly drawn hands), missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, disgusting, poorly drawn, mutilated, , mangled, old, surreal, ((text))
135
  </code>
136
+ <br>
137
+ <br>
138
  Have Fun & Enjoy <a href="https://www.thafx.com"><abbr title="//THAFX">Website</abbr></a>
139
  <br>
140