Downloads · 30 days
0
0% of all-time downloads
google/maxim-s2-deraining-raindrop
maxim-s2-deraining-raindrop is a image-to-image model from google. Use it when you need one image transformed into another. It is set up for keras. The card lists the license as apache-2.0.
MAXIM model pre-trained for image deraining. It was introduced in the paper MAXIM: Multi-Axis MLP for Image Processing by Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, Yinxiao Li an…
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
391
Public
Repo size
108 MB
Likes
2
Public
Click a slice to open those files.
.data-00000-of-0000158 MB · 54%
From the Hugging Face model README
MAXIM model pre-trained for image deraining. It was introduced in the paper MAXIM: Multi-Axis MLP for Image Processing by Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, Yinxiao Li and first released in this repository.
Disclaimer: The team releasing MAXIM did not write a model card for this model so this model card has been written by the Hugging Face team.
MAXIM introduces a shared MLP-based backbone for different image processing tasks such as image deblurring, deraining, denoising, dehazing, low-light image enhancement, and retouching. The following figure depicts the main components of MAXIM:

The authors didn't release the training code. For more details on how the model was trained, refer to the original paper.
As per the table, the model achieves a PSNR of 31.87 and an SSIM of 0.935.
You can use the raw model for image deraining tasks.
The model is officially released in JAX. It was ported to TensorFlow in this repository.
Here is how to use this model:
from huggingface_hub import from_pretrained_keras
from PIL import Image
import tensorflow as tf
import numpy as np
import requests
url = "https://github.com/sayakpaul/maxim-tf/raw/main/images/Deraining/input/55.png"
image = Image.open(requests.get(url, stream=True).raw)
image = np.array(image)
image = tf.convert_to_tensor(image)
image = tf.image.resize(image, (256, 256))
model = from_pretrained_keras("google/maxim-s2-deraining-raindrop")
predictions = model.predict(tf.expand_dims(image, 0))
For a more elaborate prediction pipeline, refer to this Colab Notebook.
@article{tu2022maxim,
title={MAXIM: Multi-Axis MLP for Image Processing},
author={Tu, Zhengzhong and Talebi, Hossein and Zhang, Han and Yang, Feng and Milanfar, Peyman and Bovik, Alan and Li, Yinxiao},
journal={CVPR},
year={2022},
}