Spaces:
Running
Running
TheEeeeLin
commited on
Commit
•
cb449af
1
Parent(s):
7173af9
update image
Browse files- demo/images/resize.py +9 -0
- demo/images/test2.jpg +0 -0
- demo/images/test3.jpg +0 -0
- demo/images/test4.jpg +0 -0
- demo/images/test6.jpg +0 -0
- demo/ui.py +1 -1
demo/images/resize.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import cv2
|
2 |
+
|
3 |
+
input_image = cv2.imread("./test4.jpg")
|
4 |
+
|
5 |
+
# resize成长宽的一半
|
6 |
+
cv2.imwrite(
|
7 |
+
"./test4_resized_half.jpg",
|
8 |
+
cv2.resize(input_image, (input_image.shape[1] // 2, input_image.shape[0] // 2)),
|
9 |
+
)
|
demo/images/test2.jpg
CHANGED
demo/images/test3.jpg
CHANGED
demo/images/test4.jpg
CHANGED
demo/images/test6.jpg
DELETED
Binary file (520 kB)
|
|
demo/ui.py
CHANGED
@@ -149,7 +149,7 @@ def create_ui(
|
|
149 |
whitening_option = gr.Slider(
|
150 |
label=LOCALES["whitening_strength"][DEFAULT_LANG]["label"],
|
151 |
minimum=0,
|
152 |
-
maximum=
|
153 |
value=2,
|
154 |
step=1,
|
155 |
interactive=True,
|
|
|
149 |
whitening_option = gr.Slider(
|
150 |
label=LOCALES["whitening_strength"][DEFAULT_LANG]["label"],
|
151 |
minimum=0,
|
152 |
+
maximum=15,
|
153 |
value=2,
|
154 |
step=1,
|
155 |
interactive=True,
|