Spaces:
Runtime error
Runtime error
BertChristiaens
commited on
Commit
•
b913503
1
Parent(s):
07cf2eb
content
Browse files- explanation.py +4 -4
explanation.py
CHANGED
@@ -5,14 +5,14 @@ def make_inpainting_explanation():
|
|
5 |
st.write("In the inpainting mode, you can draw regions on the input image that you want to regenerate. "
|
6 |
"This can be useful to remove unwanted objects from the image or to improve the consistency of the image."
|
7 |
)
|
8 |
-
st.image("content/inpainting_sidebar.png", caption="Image before inpainting, note the ornaments on the wall", width=
|
9 |
st.write("You can find drawing options in the sidebar. There are two modes: freedraw and polygon. Freedraw allows the user to draw with a pencil of a certain width. "
|
10 |
"Polygon allows the user to draw a polygon by clicking on the image to add a point. The polygon is closed by right clicking.")
|
11 |
|
12 |
st.write("### Example inpainting")
|
13 |
st.write("In the example below, the ornaments on the wall are removed. The inpainting is done by drawing a mask on the image.")
|
14 |
-
st.image("content/inpainting_before.jpg", caption="Image before inpainting, note the ornaments on the wall"
|
15 |
-
st.image("content/inpainting_after.png", caption="Image before inpainting, note the ornaments on the wall"
|
16 |
|
17 |
def make_regeneration_explanation():
|
18 |
with st.expander("Explanation object regeneration"):
|
@@ -24,7 +24,7 @@ def make_regeneration_explanation():
|
|
24 |
st.write("In the example below, the room consists of various objects such as wall, ceiling, floor, lamp, bed, ... "
|
25 |
"In the multiselect box, all the objects except for 'lamp', 'bed and 'table' are selected to be regenerated. "
|
26 |
)
|
27 |
-
st.image("content/regen_example.png", caption="Room where all concepts except for 'bed', 'lamp', 'table' are regenerated"
|
28 |
|
29 |
def make_segmentation_explanation():
|
30 |
pass
|
|
|
5 |
st.write("In the inpainting mode, you can draw regions on the input image that you want to regenerate. "
|
6 |
"This can be useful to remove unwanted objects from the image or to improve the consistency of the image."
|
7 |
)
|
8 |
+
st.image("content/inpainting_sidebar.png", caption="Image before inpainting, note the ornaments on the wall", width=500)
|
9 |
st.write("You can find drawing options in the sidebar. There are two modes: freedraw and polygon. Freedraw allows the user to draw with a pencil of a certain width. "
|
10 |
"Polygon allows the user to draw a polygon by clicking on the image to add a point. The polygon is closed by right clicking.")
|
11 |
|
12 |
st.write("### Example inpainting")
|
13 |
st.write("In the example below, the ornaments on the wall are removed. The inpainting is done by drawing a mask on the image.")
|
14 |
+
st.image("content/inpainting_before.jpg", caption="Image before inpainting, note the ornaments on the wall")
|
15 |
+
st.image("content/inpainting_after.png", caption="Image before inpainting, note the ornaments on the wall")
|
16 |
|
17 |
def make_regeneration_explanation():
|
18 |
with st.expander("Explanation object regeneration"):
|
|
|
24 |
st.write("In the example below, the room consists of various objects such as wall, ceiling, floor, lamp, bed, ... "
|
25 |
"In the multiselect box, all the objects except for 'lamp', 'bed and 'table' are selected to be regenerated. "
|
26 |
)
|
27 |
+
st.image("content/regen_example.png", caption="Room where all concepts except for 'bed', 'lamp', 'table' are regenerated")
|
28 |
|
29 |
def make_segmentation_explanation():
|
30 |
pass
|