Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ from PIL import Image
|
|
11 |
from create_maxim_model import Model
|
12 |
from maxim.configs import MAXIM_CONFIGS
|
13 |
|
14 |
-
CKPT = "
|
15 |
-
VARIANT = CKPT.split("/")[-1].split("
|
16 |
_MODEL = from_pretrained_keras(CKPT)
|
17 |
|
18 |
|
@@ -93,7 +93,7 @@ def infer(image):
|
|
93 |
|
94 |
|
95 |
title = "Dehaze hazy images."
|
96 |
-
description = f"The underlying model is [this](https://huggingface.co/{CKPT}). You can use the model to dehaze hazy images. There is [another version of the model]('https://hf.co/
|
97 |
|
98 |
iface = gr.Interface(
|
99 |
infer,
|
|
|
11 |
from create_maxim_model import Model
|
12 |
from maxim.configs import MAXIM_CONFIGS
|
13 |
|
14 |
+
CKPT = "google/maxim-s2-dehazing-sots-outdoor"
|
15 |
+
VARIANT = CKPT.split("/")[-1].split("-")[1]
|
16 |
_MODEL = from_pretrained_keras(CKPT)
|
17 |
|
18 |
|
|
|
93 |
|
94 |
|
95 |
title = "Dehaze hazy images."
|
96 |
+
description = f"The underlying model is [this](https://huggingface.co/{CKPT}). You can use the model to dehaze hazy images. There is [another version of the model]('https://hf.co/google/maxim-s2-dehazing-sots-indoor') (better suited for indoor images) you can try out. To quickly try out the model, you can choose from the available sample images below, or you can submit your own image. Not that, internally, the model is re-initialized based on the spatial dimensions of the input image and this process is time-consuming."
|
97 |
|
98 |
iface = gr.Interface(
|
99 |
infer,
|