Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ 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("_")[0]
|
16 |
_MODEL = from_pretrained_keras(CKPT)
|
17 |
|
@@ -93,7 +93,7 @@ def infer(image):
|
|
93 |
|
94 |
|
95 |
title = "Derain images containing rain drops or stripes."
|
96 |
-
description = f"The underlying model is [this](https://huggingface.co/{CKPT}). You can use the model to derain images containing rain drops or stripes. 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,
|
|
|
11 |
from create_maxim_model import Model
|
12 |
from maxim.configs import MAXIM_CONFIGS
|
13 |
|
14 |
+
CKPT = "google/maxim-s2-deraining-raindrop"
|
15 |
VARIANT = CKPT.split("/")[-1].split("_")[0]
|
16 |
_MODEL = from_pretrained_keras(CKPT)
|
17 |
|
|
|
93 |
|
94 |
|
95 |
title = "Derain images containing rain drops or stripes."
|
96 |
+
description = f"The underlying model is [this](https://huggingface.co/{CKPT}). You can use the model to derain images containing rain drops or stripes. This variant is particularly suited for draining image containing rain drops. If your images contain rain streaks, then use [this variant](https://huggingface.co/google/maxim-s2-deraining-rain13k). 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,
|