Spaces:
Running
on
Zero
Running
on
Zero
fixed header
Browse files
app.py
CHANGED
@@ -571,7 +571,7 @@ if __name__ == "__main__":
|
|
571 |
<sup>1</sup> Photogrammetry and Remote Sensing, ETH Zurich <sup>2</sup> Max Planck Institute for Informatics, Saarbrücken
|
572 |
|
573 |
<p align="center" style="margin-top: 8px;">
|
574 |
-
<a href="
|
575 |
<img src="https://img.shields.io/badge/arXiv-PDF-b31b1b" alt="Paper">
|
576 |
</a>
|
577 |
<a href="https://inverseFLAIR.github.io" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
|
@@ -585,7 +585,8 @@ if __name__ == "__main__":
|
|
585 |
**Select a task below and upload your image.** <br>
|
586 |
**Inpainting Note:** <br>
|
587 |
- Provide a descriptive prompt (e.g., "A realistic sky replacement").
|
588 |
-
- For large masks, increase the number of steps (up to 80) for better results.
|
|
|
589 |
**Super Resolution:** <br>
|
590 |
- Upload a either a high resolution image which will be be center cropped to 768x768 and downscaled by the selected factor, or a low-resolution image (e.g., 64x64 pixels) which will be upscaled.
|
591 |
- Or upload a low-resolution image which will be upscaled by the selected factor to 768x768. The input resolution must match the target resolution for the selected scale factor (e.g., 64x64 for x12, 32x32 for x24).
|
@@ -612,8 +613,8 @@ if __name__ == "__main__":
|
|
612 |
type="pil",
|
613 |
label="Upload Image & Draw Mask (for Inpainting)",
|
614 |
sources=["upload"],
|
615 |
-
height=
|
616 |
-
width=
|
617 |
visible=True
|
618 |
)
|
619 |
|
@@ -643,34 +644,36 @@ if __name__ == "__main__":
|
|
643 |
label="Prompt",
|
644 |
placeholder="E.g., a beautiful landscape, a detailed portrait"
|
645 |
)
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
|
|
|
|
674 |
submit_button = gr.Button("Submit")
|
675 |
|
676 |
# # Add Save Configuration button and status text
|
|
|
571 |
<sup>1</sup> Photogrammetry and Remote Sensing, ETH Zurich <sup>2</sup> Max Planck Institute for Informatics, Saarbrücken
|
572 |
|
573 |
<p align="center" style="margin-top: 8px;">
|
574 |
+
<a href="https://arxiv.org/abs/2506.02680" target="https://arxiv.org/abs/2506.02680" rel="noopener noreferrer" style="display: inline-block;">
|
575 |
<img src="https://img.shields.io/badge/arXiv-PDF-b31b1b" alt="Paper">
|
576 |
</a>
|
577 |
<a href="https://inverseFLAIR.github.io" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
|
|
|
585 |
**Select a task below and upload your image.** <br>
|
586 |
**Inpainting Note:** <br>
|
587 |
- Provide a descriptive prompt (e.g., "A realistic sky replacement").
|
588 |
+
- For large masks, increase the number of steps (up to 80) for better results.
|
589 |
+
|
590 |
**Super Resolution:** <br>
|
591 |
- Upload a either a high resolution image which will be be center cropped to 768x768 and downscaled by the selected factor, or a low-resolution image (e.g., 64x64 pixels) which will be upscaled.
|
592 |
- Or upload a low-resolution image which will be upscaled by the selected factor to 768x768. The input resolution must match the target resolution for the selected scale factor (e.g., 64x64 for x12, 32x32 for x24).
|
|
|
613 |
type="pil",
|
614 |
label="Upload Image & Draw Mask (for Inpainting)",
|
615 |
sources=["upload"],
|
616 |
+
height=768,
|
617 |
+
width=768,
|
618 |
visible=True
|
619 |
)
|
620 |
|
|
|
644 |
label="Prompt",
|
645 |
placeholder="E.g., a beautiful landscape, a detailed portrait"
|
646 |
)
|
647 |
+
|
648 |
+
# Advanced settings accordion
|
649 |
+
with gr.Accordion("Advanced Settings", open=False):
|
650 |
+
seed_slider = gr.Slider(
|
651 |
+
minimum=0,
|
652 |
+
maximum=2**32 -1, # Max for torch.manual_seed
|
653 |
+
step=1,
|
654 |
+
label="Seed (if not random)",
|
655 |
+
value=42,
|
656 |
+
interactive=True
|
657 |
+
)
|
658 |
+
use_random_seed_checkbox = gr.Checkbox(
|
659 |
+
label="Use Random Seed",
|
660 |
+
value=True,
|
661 |
+
interactive=True
|
662 |
+
)
|
663 |
+
guidance_scale_slider = gr.Slider(
|
664 |
+
minimum=1.0,
|
665 |
+
maximum=15.0,
|
666 |
+
step=0.5,
|
667 |
+
value=default_guidance_scale,
|
668 |
+
label="Guidance Scale"
|
669 |
+
)
|
670 |
+
num_steps_slider = gr.Slider(
|
671 |
+
minimum=28,
|
672 |
+
maximum=150,
|
673 |
+
step=1,
|
674 |
+
value=default_num_steps,
|
675 |
+
label="Number of Steps"
|
676 |
+
)
|
677 |
submit_button = gr.Button("Submit")
|
678 |
|
679 |
# # Add Save Configuration button and status text
|