Spaces:
Running
on
Zero
Running
on
Zero
adding title and links
Browse files
app.py
CHANGED
@@ -30,7 +30,51 @@ def process_image(image):
|
|
30 |
|
31 |
return [view(result['hr_alb']), 1 - invert(result['dif_shd']), view_scale(result['pos_res'])]
|
32 |
|
33 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
with gr.Row():
|
35 |
input_img = gr.Image(label="Input Image")
|
36 |
|
|
|
30 |
|
31 |
return [view(result['hr_alb']), 1 - invert(result['dif_shd']), view_scale(result['pos_res'])]
|
32 |
|
33 |
+
with gr.Blocks(
|
34 |
+
css="""
|
35 |
+
#download {
|
36 |
+
height: 118px;
|
37 |
+
}
|
38 |
+
.slider .inner {
|
39 |
+
width: 5px;
|
40 |
+
background: #FFF;
|
41 |
+
}
|
42 |
+
.viewport {
|
43 |
+
aspect-ratio: 4/3;
|
44 |
+
}
|
45 |
+
.tabs button.selected {
|
46 |
+
font-size: 20px !important;
|
47 |
+
color: crimson !important;
|
48 |
+
}
|
49 |
+
h1 {
|
50 |
+
text-align: center;
|
51 |
+
display: block;
|
52 |
+
}
|
53 |
+
h2 {
|
54 |
+
text-align: center;
|
55 |
+
display: block;
|
56 |
+
}
|
57 |
+
h3 {
|
58 |
+
text-align: center;
|
59 |
+
display: block;
|
60 |
+
}
|
61 |
+
.md_feedback li {
|
62 |
+
margin-bottom: 0px !important;
|
63 |
+
}
|
64 |
+
""",
|
65 |
+
) as demo:
|
66 |
+
gr.Markdown(
|
67 |
+
"""
|
68 |
+
# Colorful Diffuse Intrinsic Image Decomposition in the Wild
|
69 |
+
<p align="center">
|
70 |
+
<a title="Website" href="https://yaksoy.github.io/ColorfulShading/" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
|
71 |
+
<img src="https://www.obukhov.ai/img/badges/badge-website.svg">
|
72 |
+
</a>
|
73 |
+
<a title="Github" href="https://github.com/compphoto/Intrinsic" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
|
74 |
+
<img src="https://img.shields.io/github/stars/compphoto/Intrinsic?label=GitHub%20%E2%98%85&logo=github&color=C8C" alt="badge-github-stars">
|
75 |
+
</a>
|
76 |
+
"""
|
77 |
+
)
|
78 |
with gr.Row():
|
79 |
input_img = gr.Image(label="Input Image")
|
80 |
|