Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ dtype = torch.bfloat16
|
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
|
13 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
14 |
-
good_vae = AutoencoderKL.from_pretrained("
|
15 |
-
pipe = DiffusionPipeline.from_pretrained("
|
16 |
torch.cuda.empty_cache()
|
17 |
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
@@ -54,10 +54,19 @@ css="""
|
|
54 |
with gr.Blocks(css=css) as demo:
|
55 |
|
56 |
with gr.Column(elem_id="col-container"):
|
57 |
-
gr.Markdown(f"""#
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
""")
|
|
|
61 |
|
62 |
with gr.Row():
|
63 |
|
|
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
|
13 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
14 |
+
good_vae = AutoencoderKL.from_pretrained("ifmain/UltraReal_Fine-Tune", subfolder="vae", torch_dtype=dtype).to(device)
|
15 |
+
pipe = DiffusionPipeline.from_pretrained("ifmain/UltraReal_Fine-Tune", torch_dtype=dtype, vae=taef1).to(device)
|
16 |
torch.cuda.empty_cache()
|
17 |
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
54 |
with gr.Blocks(css=css) as demo:
|
55 |
|
56 |
with gr.Column(elem_id="col-container"):
|
57 |
+
gr.Markdown(f"""# UltraReal Fine-Tune (Flux.1 Dev)
|
58 |
+
|
59 |
+
**🚀 Фотореализм нового уровня!**
|
60 |
+
Вышла 4-я версия **UltraReal Fine-Tune**, основанная на **Flux.1 Dev**.
|
61 |
+
Скачать можно тут: [Civitai](https://civitai.com/models/978314?modelVersionId=1413133)
|
62 |
+
|
63 |
+
**🚀 Next-level photorealism!**
|
64 |
+
The 4th version of **UltraReal Fine-Tune**, based on **Flux.1 Dev**, has been released.
|
65 |
+
You can download it here: [Civitai](https://civitai.com/models/978314?modelVersionId=1413133)
|
66 |
+
|
67 |
+
[[model](https://huggingface.co/black-forest-labs/FLUX.1-dev)] [[non-commercial license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)] [[blog](https://blackforestlabs.ai/announcing-black-forest-labs/)]
|
68 |
""")
|
69 |
+
|
70 |
|
71 |
with gr.Row():
|
72 |
|