DmitrMakeev
commited on
Commit
•
09920f1
1
Parent(s):
71aa43a
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,7 @@ with demo:
|
|
44 |
with gr.Row():
|
45 |
Image_input = gr.Image(type="numpy", label="Input", interactive=True)
|
46 |
Image_anchor = gr.Image(type="numpy", label="Anchor", tool="color-sketch", interactive=True, visible=False)
|
47 |
-
|
48 |
-
Image_anchor.style(width="480px", height="480px") # Изменяет размеры области ввода
|
49 |
with gr.Row():
|
50 |
Num_anchor = gr.Number(type="int", value=8, label="Количество опорных точек (3~14)")
|
51 |
Radio_resolution = gr.Radio(type="index", choices=["Low (256x256)", "Medium (512x512)", "High (1024x1024)"], \
|
@@ -64,12 +63,7 @@ with demo:
|
|
64 |
|
65 |
## guiline
|
66 |
gr.Markdown(value="""
|
67 |
-
|
68 |
-
1. Upload your image or select one from the examples.
|
69 |
-
2. Set up the arguments: "Num. of anchors" and "Colorization resolution".
|
70 |
-
3. Run the colorization (two modes supported):
|
71 |
-
- 📀Automatic mode: **Click** "Colorize" to get the automatically colorized output.
|
72 |
-
- ✏️Editable mode: **Check** ""Show editable anchors"; **Click** "Predict anchors"; **Redraw** the anchor colors (only anchor region will be used); **Click** "Colorize" to get the result.
|
73 |
""")
|
74 |
if RUN_MODE != "local":
|
75 |
gr.Examples(examples=[
|
|
|
44 |
with gr.Row():
|
45 |
Image_input = gr.Image(type="numpy", label="Input", interactive=True)
|
46 |
Image_anchor = gr.Image(type="numpy", label="Anchor", tool="color-sketch", interactive=True, visible=False)
|
47 |
+
|
|
|
48 |
with gr.Row():
|
49 |
Num_anchor = gr.Number(type="int", value=8, label="Количество опорных точек (3~14)")
|
50 |
Radio_resolution = gr.Radio(type="index", choices=["Low (256x256)", "Medium (512x512)", "High (1024x1024)"], \
|
|
|
63 |
|
64 |
## guiline
|
65 |
gr.Markdown(value="""
|
66 |
+
|
|
|
|
|
|
|
|
|
|
|
67 |
""")
|
68 |
if RUN_MODE != "local":
|
69 |
gr.Examples(examples=[
|