Spaces:
Runtime error
Runtime error
shichen1231
commited on
Commit
•
02c02c6
1
Parent(s):
a874c16
- app.py +3 -2
- weights_v3/up2x-latest-denoise2x.pth +3 -0
app.py
CHANGED
@@ -42,7 +42,7 @@ if __name__ == '__main__':
|
|
42 |
ModelPath = "weights_v3/"
|
43 |
model_cache = {}
|
44 |
|
45 |
-
input_model_name = gr.inputs.Dropdown(os.listdir(ModelPath), default="
|
46 |
input_tile_mode = gr.inputs.Dropdown([0, 1, 2, 3, 4], default=2, label='选择tile_mode')
|
47 |
input_img = gr.inputs.Image(label='image', type='pil')
|
48 |
|
@@ -53,9 +53,10 @@ if __name__ == '__main__':
|
|
53 |
outputs=outputs,
|
54 |
allow_screenshot=False,
|
55 |
allow_flagging='never',
|
56 |
-
examples=[['test-img.jpg', "
|
57 |
article='[https://github.com/bilibili/ailab/tree/main/Real-CUGAN](https://github.com/bilibili/ailab/tree/main/Real-CUGAN)<br>'
|
58 |
'感谢b站开源的项目,图片过大会导致内存不足,所有我将图片裁剪小,想体验大图片的效果请自行前往上面的链接。<br>'
|
|
|
59 |
'The large image will lead to memory limit exceeded. So I crop and resize image. '
|
60 |
'If you want to experience the large image, please go to the link above.')
|
61 |
iface.launch()
|
|
|
42 |
ModelPath = "weights_v3/"
|
43 |
model_cache = {}
|
44 |
|
45 |
+
input_model_name = gr.inputs.Dropdown(os.listdir(ModelPath), default="up2x-latest-denoise2x.pth", label='选择model')
|
46 |
input_tile_mode = gr.inputs.Dropdown([0, 1, 2, 3, 4], default=2, label='选择tile_mode')
|
47 |
input_img = gr.inputs.Image(label='image', type='pil')
|
48 |
|
|
|
53 |
outputs=outputs,
|
54 |
allow_screenshot=False,
|
55 |
allow_flagging='never',
|
56 |
+
examples=[['test-img.jpg', "up2x-latest-denoise2x.pth", 2]],
|
57 |
article='[https://github.com/bilibili/ailab/tree/main/Real-CUGAN](https://github.com/bilibili/ailab/tree/main/Real-CUGAN)<br>'
|
58 |
'感谢b站开源的项目,图片过大会导致内存不足,所有我将图片裁剪小,想体验大图片的效果请自行前往上面的链接。<br>'
|
59 |
+
'修改bbb'
|
60 |
'The large image will lead to memory limit exceeded. So I crop and resize image. '
|
61 |
'If you want to experience the large image, please go to the link above.')
|
62 |
iface.launch()
|
weights_v3/up2x-latest-denoise2x.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8188b3faef4258cf748c59360cbc8086ebedf4a63eb9d5d6637d45f819d32496
|
3 |
+
size 5147249
|