ランキングに戻る

google-research/maxim

Pythonarxiv.org/abs/2201.02973

[CVPR 2022 Oral] Official repository for "MAXIM: Multi-Axis MLP for Image Processing". SOTA for denoising, deblurring, deraining, dehazing, and enhancement.

imagearchitectureimage-processingcomputer-visiontransformermlpenhancementimage-restorationrestorationdenoisingdeblurringdehazing
スター成長
スター
1.1k
フォーク
115
週間成長
Issue
18
5001k
2022年3月2023年8月2025年2月2026年7月
成果物PyPIpip install maxim
README

PWC PWC PWC PWC PWC PWC

PWC PWC

PWC PWC PWC PWC PWC

PWC PWC

MAXIM: Multi-Axis MLP for Image Processing (CVPR 2022 Oral, Best Paper Nomination)

Paper Open In Colab slides Poster

This repo hosts the official implementation of the MAXIM models:

"MAXIM: Multi-Axis MLP for Image Processing". CVPR 2022 Oral.
Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, and Yinxiao Li
Google Research, University of Texas at Austin

Disclaimer: This is not an officially supported Google product.

News:

Quick Demos

Try the web demo for Image Denoising, Deblurring, Deraining, Dehazing and Enhancement with customized input image here Replicate

Try the Colab here using Open In Colab

Architecture

Model overview

Installation

Install dependencies:

pip install -r requirements.txt

Setup project:

pip install .

Results and Pre-trained models

We provide the pre-trained models and visual results. Please contact us if you have any questions or requests.

Task Dataset PSNR SSIM Model #params FLOPs ckpt outputs
Denoising SIDD 39.96 0.960 MAXIM-3S 22.2M 339G ckpt images
Denoising DND 39.84 0.954 MAXIM-3S 22.2M 339G ckpt images
Deblurring GoPro 32.86 0.961 MAXIM-3S 22.2M 339G ckpt images
Deblurring HIDE 32.83 0.956 MAXIM-3S 22.2M 339G ckpt images
Deblurring REDS 28.93 0.865 MAXIM-3S 22.2M 339G ckpt images
Deblurring RealBlur-R 39.45 0.962 MAXIM-3S 22.2M 339G ckpt images
Deblurring RealBlur-J 32.84 0.935 MAXIM-3S 22.2M 339G ckpt images
Deraining Rain13k 33.24 0.933 MAXIM-2S 14.1M 216G ckpt images
Deraining Raindrop 31.87 0.935 MAXIM-2S 14.1M 216G ckpt images
Dehazing RESIDE-Indoor 38.11 0.991 MAXIM-2S 14.1M 216G ckpt images
Dehazing RESIDE-Outdoor 34.19 0.985 MAXIM-2S 14.1M 216G ckpt images
Enhancement LOL 23.43 0.863 MAXIM-2S 14.1M 216G ckpt images
Enhancement FiveK 26.15 0.945 MAXIM-2S 14.1M 216G ckpt images

Demo

First download corresponding checkpoints and then go ahead and run:

Image Denoising (click to expand)
python3 maxim/run_eval.py --task Denoising --ckpt_path ${SIDD_CKPT_PATH} \
  --input_dir maxim/images/Denoising --output_dir maxim/images/Results --has_target=False
Image Deblurring (click to expand)
python3 maxim/run_eval.py --task Deblurring --ckpt_path ${GOPRO_CKPT_PATH} \
  --input_dir maxim/images/Deblurring --output_dir maxim/images/Results --has_target=False
Image Deraining (click to expand)

Rain streak:

python3 maxim/run_eval.py --task Deraining --ckpt_path ${RAIN13K_CKPT_PATH} \
  --input_dir maxim/images/Deraining --output_dir maxim/images/Results --has_target=False

Rain drop:

python3 maxim/run_eval.py --task Deraining --ckpt_path ${RAINDROP_CKPT_PATH} \
  --input_dir maxim/images/Deraining --output_dir maxim/images/Results --has_target=False
Image Dehazing (click to expand)

Indoor:

python3 maxim/run_eval.py --task Dehazing --ckpt_path ${REDISE_INDOOR_CKPT_PATH} \
  --input_dir maxim/images/Dehazing --output_dir maxim/images/Results --has_target=False

Outdoor:

python3 maxim/run_eval.py --task Dehazing --ckpt_path ${REDISE_OUTDOOR_CKPT_PATH} \
  --input_dir maxim/images/Dehazing --output_dir maxim/images/Results --has_target=False
Image Enhancement (click to expand)

Low-light enhancement:

python3 maxim/run_eval.py --task Enhancement --ckpt_path ${LOL_CKPT_PATH} \
  --input_dir maxim/images/Enhancement --output_dir maxim/images/Results --has_target=False

Retouching:

python3 maxim/run_eval.py --task Enhancement --ckpt_path ${FIVEK_CKPT_PATH} \
  --input_dir maxim/images/Enhancement --output_dir maxim/images/Results --has_target=False

Results

Image Denoising (click to expand)
Image Deblurring (click to expand)

Synthetic blur

Realistic blur

Image Deraining (click to expand)

Rain streak

Rain drop

Image Dehazing (click to expand)
Image Enhancement (click to expand)

Citation

Should you find this repository useful, please consider citing:

@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},
}

Acknowledgement

This repository is built on the vision_transformer and musiq repositories. Our work is also inspired by HiT, MPRNet, and HINet.

関連リポジトリ
upscayl/upscayl

🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

TypeScriptnpmGNU Affero General Public License v3.0aiesrgan
upscayl.org
47.4k2.4k
lovell/sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.

JavaScriptnpmApache License 2.0javascriptwebp
sharp.pixelplumbing.com
32.5k1.4k
Molunerfinn/PicGo

:rocket: The Ultimate Image Uploader for Efficient Creators. Supports Obsidian, Typora, VS Code etc. and 60+ image hosting services (S3, GitHub, Cloudflare R2, Imgur, Aliyun OSS...). Paste, upload, done.

TypeScriptnpmMIT Licenseelectronelectron-app
picgo.app
26.9k2.3k
SDWebImage/SDWebImage

Asynchronous image downloader with cache support as a UIImageView category

Objective-CMIT Licensemacosios
sdwebimage.github.io
25.6k6k
dimsemenov/PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent

JavaScriptnpmMIT Licensegallerylightbox
photoswipe.com
25.2k3.3k
onevcat/Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.

SwiftMIT Licenseswiftkingfisher
24.4k2.8k
Intervention/image

PHP Image Processing

PHPPackagistMIT Licensephpimage
image.intervention.io
14.4k1.5k
python-pillow/Pillow

Python Imaging Library (fork)

PythonPyPIOtherccross-platform
python-pillow.github.io
13.7k2.5k
vercel/satori

Enlightened library to convert HTML and CSS to SVG

TypeScriptnpmMozilla Public License 2.0image-generatorjsx
og-playground.vercel.app
13.7k356
Yalantis/uCrop

Image Cropping Library for Android

JavaMavenandroidjava
yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
12.1k2.2k
imgproxy/imgproxy

Fast and secure standalone server for resizing, processing, and converting images on the fly

GoGo ModulesApache License 2.0imageresize-images
imgproxy.net
11k758
tsayen/dom-to-image

Generates an image from a DOM node using HTML5 canvas

JavaScriptnpmOthercanvashtml
10.8k1.7k