Update to FFusionXL-Base / SD xl-refiner-1.0
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
22 |
|
23 |
torch.cuda.max_memory_allocated(device=device)
|
24 |
|
25 |
-
pipe1 = DiffusionPipeline.from_pretrained("FFusion/FFusionXL-
|
26 |
-
pipe2 = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-0
|
27 |
|
28 |
pipe1 = pipe1.to(device)
|
29 |
pipe1.enable_xformers_memory_efficient_attention()
|
@@ -82,7 +82,7 @@ gr.Interface(fn=genie,
|
|
82 |
gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True)],
|
83 |
outputs=[gc.Image(type='numpy', label="Generated Image"), gc.Image(type='numpy', label="Refined Image")],
|
84 |
title="FFusionXL - Generate and Refine",
|
85 |
-
description='<div style="display: flex; flex-wrap: wrap; gap: 2px;"><a href="https://huggingface.co/FFusion/FFusionXL-
|
86 |
article = '**Citation** \
|
87 |
Please note that the demo is intended for academic and research purposes ONLY. Any use of the demo for generating inappropriate content is strictly prohibited. The responsibility for any misuse or inappropriate use of the demo lies solely with the users who generated such content, and this demo shall not be held liable for any such use. Original code: Manjushri. By interacting within this environment, you hereby acknowledge and agree to the terms of the SDXL 0.9 Research License. \
|
88 |
Attribution: SDXL 0.9 is licensed under the SDXL Research License, Copyright (c) Stability AI Ltd. All Rights Reserved. \
|
@@ -101,6 +101,6 @@ gr.Interface(fn=genie,
|
|
101 |
<a href="https://civitai.com/models/82039/ffusion-ai-sd-21" target="_new" rel="ugc"><img src="https://img.shields.io/badge/Civitai-FFusionAI-blue"></a> \
|
102 |
</div>\
|
103 |
\
|
104 |
-
![
|
105 |
\
|
106 |
<a href="mailto:di@ffusion.ai"><img src="https://img.shields.io/badge/Email-di%40ffusion.ai-blue?style=for-the-badge&logo=gmail"></a>').launch(debug=True, max_threads=10)
|
|
|
22 |
|
23 |
torch.cuda.max_memory_allocated(device=device)
|
24 |
|
25 |
+
pipe1 = DiffusionPipeline.from_pretrained("FFusion/FFusionXL-BASE", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
|
26 |
+
pipe2 = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
|
27 |
|
28 |
pipe1 = pipe1.to(device)
|
29 |
pipe1.enable_xformers_memory_efficient_attention()
|
|
|
82 |
gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True)],
|
83 |
outputs=[gc.Image(type='numpy', label="Generated Image"), gc.Image(type='numpy', label="Refined Image")],
|
84 |
title="FFusionXL - Generate and Refine",
|
85 |
+
description='<div style="display: flex; flex-wrap: wrap; gap: 2px;"><a href="https://huggingface.co/FFusion/FFusionXL-BASE" target="_new" rel="ugc"><img src="https://img.shields.io/badge/FFusionXL--BASE--SDXL-Model-pink" alt="FFusionXL-BASE-SDXL"></a> <a href="https://huggingface.co/FFusion/FFusionXL-09-SDXL/blob/main/LICENSE.md" target="_new" rel="ugc"><img src="https://img.shields.io/badge/License-FFXL%20Research%20License-blue"></a></div>',
|
86 |
article = '**Citation** \
|
87 |
Please note that the demo is intended for academic and research purposes ONLY. Any use of the demo for generating inappropriate content is strictly prohibited. The responsibility for any misuse or inappropriate use of the demo lies solely with the users who generated such content, and this demo shall not be held liable for any such use. Original code: Manjushri. By interacting within this environment, you hereby acknowledge and agree to the terms of the SDXL 0.9 Research License. \
|
88 |
Attribution: SDXL 0.9 is licensed under the SDXL Research License, Copyright (c) Stability AI Ltd. All Rights Reserved. \
|
|
|
101 |
<a href="https://civitai.com/models/82039/ffusion-ai-sd-21" target="_new" rel="ugc"><img src="https://img.shields.io/badge/Civitai-FFusionAI-blue"></a> \
|
102 |
</div>\
|
103 |
\
|
104 |
+
![ffusionAI-FFusionXL-SDXL-preview.jpg](https://cdn-uploads.huggingface.co/production/uploads/6380cf05f496d57325c12194/LIONhgnyxUuEynNivGsME.jpeg) \
|
105 |
\
|
106 |
<a href="mailto:di@ffusion.ai"><img src="https://img.shields.io/badge/Email-di%40ffusion.ai-blue?style=for-the-badge&logo=gmail"></a>').launch(debug=True, max_threads=10)
|