Update app.py
Browse files
app.py
CHANGED
@@ -14,13 +14,13 @@ def inference(img):
|
|
14 |
#img = img.resize((basewidth, hsize), Image.ANTIALIAS)
|
15 |
img.save("test/1.png", "PNG")
|
16 |
os.system(
|
17 |
-
'python
|
18 |
return 'result/1.png'
|
19 |
|
20 |
|
21 |
-
title = "
|
22 |
-
description = "Gradio demo for
|
23 |
-
article = "<p style='text-align: center'><a href='https://' target='_blank'>
|
24 |
|
25 |
examples = [['Noise.png'], ['Noise2.png']]
|
26 |
gr.Interface(
|
|
|
14 |
#img = img.resize((basewidth, hsize), Image.ANTIALIAS)
|
15 |
img.save("test/1.png", "PNG")
|
16 |
os.system(
|
17 |
+
'python main_test_HWMNet.py --input_dir test --weights experiments/pretrained_models/LOL_enhancement_HWMNet.pth')
|
18 |
return 'result/1.png'
|
19 |
|
20 |
|
21 |
+
title = "Half Wavelet Attention on M-Net+ for Low-light Image Enhancement"
|
22 |
+
description = "Gradio demo for HWMNet. HWMNet has competitive performance results on two real-world low-light datasets in terms of quantitative metrics and visual quality. See the paper and project page for detailed results below. Here, we provide a demo for low-light image enhancement. To use it, simply upload your image, or click one of the examples to load them. Reference from: https://huggingface.co/akhaliq"
|
23 |
+
article = "<p style='text-align: center'><a href='https://' target='_blank'>Half Wavelet Attention on M-Net+ for Low-light Image Enhancement</a> | <a href='https://github.com/FanChiMao/HWMNet' target='_blank'>Github Repo</a></p>"
|
24 |
|
25 |
examples = [['Noise.png'], ['Noise2.png']]
|
26 |
gr.Interface(
|