Spaces:
Running on Zero
Running on Zero
Deploy InstantRetouch IP2P-BILA ZeroGPU Space
Browse files- app.py +7 -6
- assets/examples/Expert329-0-0-Best-Input.jpg +0 -0
- assets/examples/Expert338-0-0-Best-Input.jpg +0 -0
- assets/examples/Expert352-0-0-Best-Input.jpg +0 -0
- assets/examples/Expert357-0-0-Best-Input.jpg +0 -0
- assets/examples/Expert388-0-0-Best-Input.jpg +0 -0
- assets/examples/Expert394-0-0-Best-Input.jpg +0 -0
app.py
CHANGED
|
@@ -55,10 +55,11 @@ manager = DemoManager()
|
|
| 55 |
DEFAULT_MODEL = manager.default_model
|
| 56 |
EXAMPLE_DIR = ROOT / "assets" / "examples"
|
| 57 |
EXAMPLES = [
|
| 58 |
-
[str(EXAMPLE_DIR / "
|
| 59 |
-
[str(EXAMPLE_DIR / "
|
| 60 |
-
[str(EXAMPLE_DIR / "
|
| 61 |
-
[str(EXAMPLE_DIR / "
|
|
|
|
| 62 |
]
|
| 63 |
|
| 64 |
|
|
@@ -82,9 +83,9 @@ with gr.Blocks(title="InstantRetouch") as demo:
|
|
| 82 |
gr.Markdown(
|
| 83 |
"""
|
| 84 |
# InstantRetouch
|
| 85 |
-
Instruction-guided photo retouching
|
| 86 |
|
| 87 |
-
|
| 88 |
"""
|
| 89 |
)
|
| 90 |
with gr.Row():
|
|
|
|
| 55 |
DEFAULT_MODEL = manager.default_model
|
| 56 |
EXAMPLE_DIR = ROOT / "assets" / "examples"
|
| 57 |
EXAMPLES = [
|
| 58 |
+
[str(EXAMPLE_DIR / "Expert338-0-0-Best-Input.jpg"), "Make the scene more dramatic with a warm sunset vibe and richer colors for a cinematic travel magazine feel.", 42, 1024, 1.0],
|
| 59 |
+
[str(EXAMPLE_DIR / "Expert357-0-0-Best-Input.jpg"), "Make the scene feel like a warm autumn evening with a cozy, inviting travel magazine feel.", 7, 1024, 1.0],
|
| 60 |
+
[str(EXAMPLE_DIR / "Expert352-0-0-Best-Input.jpg"), "Make the scene feel more cinematic with a moody, atmospheric vibe while keeping the person and cityscape prominent.", 123, 1024, 0.9],
|
| 61 |
+
[str(EXAMPLE_DIR / "Expert394-0-0-Best-Input.jpg"), "Make the scene more dramatic and moody, emphasizing the sunset glow and enhancing the lanterns' warmth for a cinematic feel.", 314, 1024, 1.0],
|
| 62 |
+
[str(EXAMPLE_DIR / "Expert388-0-0-Best-Input.jpg"), "Make the flower look timeless and classic with a black-and-white vintage tone, emphasizing its delicate details.", 42, 1024, 1.0],
|
| 63 |
]
|
| 64 |
|
| 65 |
|
|
|
|
| 83 |
gr.Markdown(
|
| 84 |
"""
|
| 85 |
# InstantRetouch
|
| 86 |
+
Instruction-guided photo retouching that is fast and high-fidelity. Upload an image, enter an optional instruction, or click one of the examples below.
|
| 87 |
|
| 88 |
+
Please note that running on HF space requires extra time for GPU allocation, environment preperation and startup, so the processing time will be longer that the pure inference time reported in our paper. The strength slider allows continous control on editing strength.
|
| 89 |
"""
|
| 90 |
)
|
| 91 |
with gr.Row():
|
assets/examples/Expert329-0-0-Best-Input.jpg
ADDED
|
assets/examples/Expert338-0-0-Best-Input.jpg
ADDED
|
assets/examples/Expert352-0-0-Best-Input.jpg
ADDED
|
assets/examples/Expert357-0-0-Best-Input.jpg
ADDED
|
assets/examples/Expert388-0-0-Best-Input.jpg
ADDED
|
assets/examples/Expert394-0-0-Best-Input.jpg
ADDED
|