Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
Tile-Upscaler
Commits
deca0dff
Commit
deca0dff
authored
Jul 26, 2024
by
chenpangpang
Browse files
feat: 修改gradio页面为中文
parent
674b6804
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
Tile-Upscaler/app.py
Tile-Upscaler/app.py
+6
-11
No files found.
Tile-Upscaler/app.py
View file @
deca0dff
...
...
@@ -199,24 +199,19 @@ def gradio_process_image(input_image, resolution, num_inference_steps, strength,
return
result
title
=
"""<h1 align="center">Image Upscaler with Tile Controlnet</h1>
<p align="center">The main ideas come from</p>
<p><center>
<a href="https://github.com/philz1337x/clarity-upscaler" target="_blank">[philz1337x]</a>
<a href="https://github.com/BatouResearch/controlnet-tile-upscale" target="_blank">[Pau-Lozano]</a>
</center></p>
title
=
"""<h1 align="center">tile-upscaler:由低质量图片生成高质量图片的图片修复工具</h1>
"""
with
gr
.
Blocks
(
css
=
"./theme.css"
)
as
demo
:
gr
.
HTML
(
title
)
with
gr
.
Row
():
with
gr
.
Column
():
input_image
=
gr
.
Image
(
type
=
"pil"
,
label
=
"
Input Image
"
)
run_button
=
gr
.
Button
(
"
Enhance Image
"
)
input_image
=
gr
.
Image
(
type
=
"pil"
,
label
=
"
输入图片
"
)
run_button
=
gr
.
Button
(
"
生成
"
)
with
gr
.
Column
():
gallery
=
gr
.
Image
(
label
=
"
Generated Images
"
)
with
gr
.
Accordion
(
"
Advanced Options
"
,
open
=
False
):
resolution
=
gr
.
Slider
(
minimum
=
256
,
maximum
=
2048
,
value
=
512
,
step
=
256
,
label
=
"
Resolution
"
)
gallery
=
gr
.
Image
(
label
=
"
生成图片
"
)
with
gr
.
Accordion
(
"
高级选项
"
,
open
=
False
):
resolution
=
gr
.
Slider
(
minimum
=
256
,
maximum
=
2048
,
value
=
512
,
step
=
256
,
label
=
"
分辨率
"
)
num_inference_steps
=
gr
.
Slider
(
minimum
=
1
,
maximum
=
50
,
value
=
20
,
step
=
1
,
label
=
"Number of Inference Steps"
)
strength
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
1
,
value
=
0.4
,
step
=
0.01
,
label
=
"Strength"
)
hdr
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
1
,
value
=
0
,
step
=
0.1
,
label
=
"HDR Effect"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment