app
Browse files
app.py
CHANGED
@@ -281,7 +281,8 @@ css = """
|
|
281 |
with gr.Blocks(css=css) as demo:
|
282 |
with gr.Column(elem_id="col-container"):
|
283 |
gr.Markdown("# CrossFlow")
|
284 |
-
gr.Markdown("CrossFlow directly transforms text representations into images for text-to-image generation, enabling interpolation in the input text latent space.")
|
|
|
285 |
# gr.Markdown("CrossFlow directly transforms text representations into images for text-to-image generation, enabling interpolation in the input text latent space.")
|
286 |
|
287 |
with gr.Row():
|
@@ -335,7 +336,7 @@ with gr.Blocks(css=css) as demo:
|
|
335 |
minimum=1,
|
336 |
maximum=50,
|
337 |
step=1,
|
338 |
-
value=
|
339 |
)
|
340 |
with gr.Row():
|
341 |
num_of_interpolation = gr.Slider(
|
@@ -343,7 +344,7 @@ with gr.Blocks(css=css) as demo:
|
|
343 |
minimum=5,
|
344 |
maximum=50,
|
345 |
step=1,
|
346 |
-
value=
|
347 |
)
|
348 |
|
349 |
gr.Examples(examples=examples, inputs=[prompt1, prompt2])
|
|
|
281 |
with gr.Blocks(css=css) as demo:
|
282 |
with gr.Column(elem_id="col-container"):
|
283 |
gr.Markdown("# CrossFlow")
|
284 |
+
gr.Markdown("[CrossFlow](https://cross-flow.github.io/) directly transforms text representations into images for text-to-image generation, enabling interpolation in the input text latent space.")
|
285 |
+
gr.Markdown("This demo uses 256px images, 25 sampling steps (instead of 50), and 10 interpolations (instead of 50) to conserve GPU memory. For better results, see the original [code](https://github.com/qihao067/CrossFlow).")
|
286 |
# gr.Markdown("CrossFlow directly transforms text representations into images for text-to-image generation, enabling interpolation in the input text latent space.")
|
287 |
|
288 |
with gr.Row():
|
|
|
336 |
minimum=1,
|
337 |
maximum=50,
|
338 |
step=1,
|
339 |
+
value=25, # Replace with defaults that work for your model
|
340 |
)
|
341 |
with gr.Row():
|
342 |
num_of_interpolation = gr.Slider(
|
|
|
344 |
minimum=5,
|
345 |
maximum=50,
|
346 |
step=1,
|
347 |
+
value=10, # Replace with defaults that work for your model
|
348 |
)
|
349 |
|
350 |
gr.Examples(examples=examples, inputs=[prompt1, prompt2])
|