Spaces:
Running
Running
Commit
·
2c032a1
1
Parent(s):
e4999b4
docs(update)
Browse files
app.py
CHANGED
@@ -34,19 +34,19 @@ def inference(img, template, angel):
|
|
34 |
return ['result_image.jpg', 'hue.jpg']
|
35 |
|
36 |
title = 'Color Harmonization'
|
37 |
-
description = 'Compute Color Harmonization with
|
38 |
article = "<p style='text-align: center'></p>"
|
39 |
-
examples = [['./examples/aim_interface.png', "V", 25], ['./examples/esfahan_unsplash.jpeg', "I",
|
40 |
# css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
41 |
|
42 |
gr.Interface(
|
43 |
inference,
|
44 |
-
[gr.inputs.Image(type='file', label='
|
45 |
gr.inputs.Dropdown(["X", "Y", "T", "I", "mirror_L", "L", "V", "i"],
|
46 |
default="X",
|
47 |
label="Template"),
|
48 |
gr.inputs.Slider(0, 359, label="Angle")],
|
49 |
-
[gr.outputs.Image(type='file', label='
|
50 |
gr.outputs.Image(type='file', label='Hue')],
|
51 |
title=title,
|
52 |
description=description,
|
|
|
34 |
return ['result_image.jpg', 'hue.jpg']
|
35 |
|
36 |
title = 'Color Harmonization'
|
37 |
+
description = 'Compute Color Harmonization with different templates based on Color Harmonization paper by Daniel Cohen-Or et al. More on https://github.com/kargaranamir/ColorHarmonization. More metrics for user interfaces on https://interfacemetrics.aalto.fi'
|
38 |
article = "<p style='text-align: center'></p>"
|
39 |
+
examples = [['./examples/aim_interface.png', "V", 25], ['./examples/esfahan_unsplash.jpeg', "I", 352]]
|
40 |
# css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
41 |
|
42 |
gr.Interface(
|
43 |
inference,
|
44 |
+
[gr.inputs.Image(type='file', label='Original Image'),
|
45 |
gr.inputs.Dropdown(["X", "Y", "T", "I", "mirror_L", "L", "V", "i"],
|
46 |
default="X",
|
47 |
label="Template"),
|
48 |
gr.inputs.Slider(0, 359, label="Angle")],
|
49 |
+
[gr.outputs.Image(type='file', label='Harmonized Image'),
|
50 |
gr.outputs.Image(type='file', label='Hue')],
|
51 |
title=title,
|
52 |
description=description,
|