Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- __pycache__/dreamfuse_inference.cpython-310.pyc +0 -0
- app.py +49 -27
- dreamfuse/models/dreamfuse_flux/__pycache__/flux_processor.cpython-310.pyc +0 -0
- dreamfuse/models/dreamfuse_flux/__pycache__/transformer.cpython-310.pyc +0 -0
- dreamfuse/trains/utils/__pycache__/inference_utils.cpython-310.pyc +0 -0
- examples/logo.png +3 -0
- examples/wear_000_0.jpg +3 -0
- examples/wear_000_1.jpg +3 -0
__pycache__/dreamfuse_inference.cpython-310.pyc
CHANGED
Binary files a/__pycache__/dreamfuse_inference.cpython-310.pyc and b/__pycache__/dreamfuse_inference.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -48,6 +48,8 @@ class DreamFuseGUI:
|
|
48 |
"./examples/handheld_001_0.png"],
|
49 |
["./examples/style_000_1.jpg",
|
50 |
"./examples/style_000_0.jpg"],
|
|
|
|
|
51 |
]
|
52 |
self.examples = [[Image.open(x) for x in example] for example in self.examples]
|
53 |
self.css_style = self._get_css_style()
|
@@ -448,7 +450,14 @@ class DreamFuseGUI:
|
|
448 |
|
449 |
with gr.Blocks(css=self.css_style) as demo:
|
450 |
modified_fg_state = gr.State()
|
451 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
gr.Markdown('## π 4 Easy Steps to Create Your Fusion Image:')
|
453 |
gr.Markdown(
|
454 |
"""
|
@@ -497,32 +506,45 @@ class DreamFuseGUI:
|
|
497 |
transformation_text = gr.Textbox(label="Transformation Info", elem_id="transformation_info", visible=False)
|
498 |
model_output = gr.Image(label="Model Output", type="pil", height=512, width=512)
|
499 |
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
|
527 |
generate_btn.click(
|
528 |
fn=self.on_upload,
|
|
|
48 |
"./examples/handheld_001_0.png"],
|
49 |
["./examples/style_000_1.jpg",
|
50 |
"./examples/style_000_0.jpg"],
|
51 |
+
["./examples/wear_000_1.jpg",
|
52 |
+
"./examples/wear_000_0.jpg"],
|
53 |
]
|
54 |
self.examples = [[Image.open(x) for x in example] for example in self.examples]
|
55 |
self.css_style = self._get_css_style()
|
|
|
450 |
|
451 |
with gr.Blocks(css=self.css_style) as demo:
|
452 |
modified_fg_state = gr.State()
|
453 |
+
gr.HTML(
|
454 |
+
"""
|
455 |
+
<div style="display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px;">
|
456 |
+
<img src="./examples/logo.png" style="height: 40px;" />
|
457 |
+
<h1 style="margin: 0; font-size: 32px;">DreamFuse</h1>
|
458 |
+
</div>
|
459 |
+
"""
|
460 |
+
)
|
461 |
gr.Markdown('## π 4 Easy Steps to Create Your Fusion Image:')
|
462 |
gr.Markdown(
|
463 |
"""
|
|
|
506 |
transformation_text = gr.Textbox(label="Transformation Info", elem_id="transformation_info", visible=False)
|
507 |
model_output = gr.Image(label="Model Output", type="pil", height=512, width=512)
|
508 |
|
509 |
+
with gr.Row():
|
510 |
+
with gr.Column(scale=1):
|
511 |
+
gr.Examples(
|
512 |
+
examples=[self.examples[0]],
|
513 |
+
inputs=[background_img_in, draggable_img_in],
|
514 |
+
# elem_id="small-examples"
|
515 |
+
)
|
516 |
+
with gr.Column(scale=1):
|
517 |
+
gr.Examples(
|
518 |
+
examples=[self.examples[2]],
|
519 |
+
inputs=[background_img_in, draggable_img_in],
|
520 |
+
# elem_id="small-examples"
|
521 |
+
)
|
522 |
+
with gr.Row():
|
523 |
+
with gr.Column(scale=1):
|
524 |
+
gr.Examples(
|
525 |
+
examples=[self.examples[1]],
|
526 |
+
inputs=[background_img_in, draggable_img_in],
|
527 |
+
# elem_id="small-examples"
|
528 |
+
)
|
529 |
+
with gr.Column(scale=1):
|
530 |
+
gr.Examples(
|
531 |
+
examples=[self.examples[3]],
|
532 |
+
inputs=[background_img_in, draggable_img_in],
|
533 |
+
# elem_id="small-examples"
|
534 |
+
)
|
535 |
+
with gr.Row():
|
536 |
+
with gr.Column(scale=1):
|
537 |
+
gr.Examples(
|
538 |
+
examples=[self.examples[4]],
|
539 |
+
inputs=[background_img_in, draggable_img_in],
|
540 |
+
# elem_id="small-examples"
|
541 |
+
)
|
542 |
+
with gr.Column(scale=1):
|
543 |
+
gr.Examples(
|
544 |
+
examples=[self.examples[5]],
|
545 |
+
inputs=[background_img_in, draggable_img_in],
|
546 |
+
# elem_id="small-examples"
|
547 |
+
)
|
548 |
|
549 |
generate_btn.click(
|
550 |
fn=self.on_upload,
|
dreamfuse/models/dreamfuse_flux/__pycache__/flux_processor.cpython-310.pyc
CHANGED
Binary files a/dreamfuse/models/dreamfuse_flux/__pycache__/flux_processor.cpython-310.pyc and b/dreamfuse/models/dreamfuse_flux/__pycache__/flux_processor.cpython-310.pyc differ
|
|
dreamfuse/models/dreamfuse_flux/__pycache__/transformer.cpython-310.pyc
CHANGED
Binary files a/dreamfuse/models/dreamfuse_flux/__pycache__/transformer.cpython-310.pyc and b/dreamfuse/models/dreamfuse_flux/__pycache__/transformer.cpython-310.pyc differ
|
|
dreamfuse/trains/utils/__pycache__/inference_utils.cpython-310.pyc
CHANGED
Binary files a/dreamfuse/trains/utils/__pycache__/inference_utils.cpython-310.pyc and b/dreamfuse/trains/utils/__pycache__/inference_utils.cpython-310.pyc differ
|
|
examples/logo.png
ADDED
![]() |
Git LFS Details
|
examples/wear_000_0.jpg
ADDED
![]() |
Git LFS Details
|
examples/wear_000_1.jpg
ADDED
![]() |
Git LFS Details
|