Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import torch
|
4 |
from PIL import Image
|
5 |
|
6 |
-
model_id = '
|
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:
|
111 |
</div>
|
112 |
<p>
|
113 |
-
Demo for <a href="https://huggingface.co/
|
114 |
-
Stable Diffusion model by <a href="https://huggingface.co/
|
115 |
-
</p>
|
116 |
-
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🔥</b>"}.
|
117 |
|
118 |
-
<
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
<
|
|
|
126 |
<br>
|
127 |
-
<
|
128 |
-
|
|
|
129 |
</code></small>
|
130 |
|
131 |
-
<b>Negative Prompt</b
|
132 |
-
|
|
|
133 |
</code>
|
134 |
-
<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 |
|