iimmortall commited on
Commit
6e31e2e
·
verified ·
1 Parent(s): 860c112

Deploy InstantRetouch IP2P-BILA ZeroGPU Space

Browse files
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 / "4920_O_0_5_input.png"), "Make the image feel more serene and add a subtle blue hue.", 42, 1024, 1.0],
59
- [str(EXAMPLE_DIR / "4933_O_0_21_input.png"), "Improve the exposure and make the colors richer while keeping a natural photo look.", 7, 1024, 1.0],
60
- [str(EXAMPLE_DIR / "expert48_input.png"), "Brighten the image and enhance clarity with balanced contrast.", 123, 1024, 0.9],
61
- [str(EXAMPLE_DIR / "expert116_input.png"), "", 314, 1024, 1.0],
 
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 with the selected IP2P/BiLA checkpoint. Upload an image, enter an optional instruction, or click one of the examples below.
86
 
87
- This public demo uses the validation-selected IP2P/BiLA model only. The strength slider blends the model output with the input for gentler or stronger edits.
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