Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
0191a91
1
Parent(s):
23d07c9
yes
Browse files
app.py
CHANGED
@@ -67,7 +67,8 @@ def plot_heat(mat, title):
|
|
67 |
plt.savefig(buf, format="png", bbox_inches='tight')
|
68 |
buf.seek(0)
|
69 |
plt.close(fig)
|
70 |
-
|
|
|
71 |
|
72 |
# βββ SDXL Text Encoding βββββββββββββββββββββββββββββββββββββββ
|
73 |
def encode_sdxl_prompt(prompt, negative_prompt=""):
|
@@ -341,7 +342,14 @@ with gr.Blocks(title="SDXL Dual Shunt Adapter", theme=gr.themes.Soft()) as demo:
|
|
341 |
prompt, negative_prompt, adapter_l, adapter_g, strength, noise, gate_prob,
|
342 |
use_anchor, steps, cfg_scale, scheduler_name, width, height, seed
|
343 |
],
|
344 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
)
|
346 |
|
347 |
if __name__ == "__main__":
|
|
|
67 |
plt.savefig(buf, format="png", bbox_inches='tight')
|
68 |
buf.seek(0)
|
69 |
plt.close(fig)
|
70 |
+
pil_image = Image.open(buf)
|
71 |
+
return pil_image
|
72 |
|
73 |
# βββ SDXL Text Encoding βββββββββββββββββββββββββββββββββββββββ
|
74 |
def encode_sdxl_prompt(prompt, negative_prompt=""):
|
|
|
342 |
prompt, negative_prompt, adapter_l, adapter_g, strength, noise, gate_prob,
|
343 |
use_anchor, steps, cfg_scale, scheduler_name, width, height, seed
|
344 |
],
|
345 |
+
outputs=[
|
346 |
+
out_img,
|
347 |
+
delta_l,
|
348 |
+
gate_l,
|
349 |
+
delta_g,
|
350 |
+
gate_g,
|
351 |
+
stats_l,
|
352 |
+
stats_g]
|
353 |
)
|
354 |
|
355 |
if __name__ == "__main__":
|