HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Instruct-IPT: All-in-One Image Processing Transformer via Weight Modulation

Yuchuan Tian; Jianhong Han; Hanting Chen; Yuanyuan Xi; Ning Ding; Jie Hu; Chao Xu; Yunhe Wang

Instruct-IPT: All-in-One Image Processing Transformer via Weight Modulation

Abstract

Due to the unaffordable size and intensive computation costs of low-level vision models, All-in-One models that are designed to address a handful of low-level vision tasks simultaneously have been popular. However, existing All-in-One models are limited in terms of the range of tasks and performance. To overcome these limitations, we propose Instruct-IPT -- an All-in-One Image Processing Transformer (IPT) that could effectively address manifold image restoration tasks with large inter-task gaps, such as denoising, deblurring, deraining, dehazing, and desnowing. While most research propose feature adaptation methods, we reveal their failure in addressing highly distinct tasks, and suggest weight modulation that adapts weights to specific tasks. Firstly, we search for task-sensitive weights and introduce task-specific biases on top of them. Secondly, we conduct rank analysis for a good compression strategy and perform low-rank decomposition on the biases. Thirdly, we propose synchronous training that updates the task-general backbone model and the task-specific biases simultaneously. In this way, the model is instructed to learn both general and task-specific knowledge. Via our simple yet effective method that instructs the IPT to be task experts, Instruct-IPT could better cooperate between tasks with distinct characteristics at humble costs. As an additional feature, we enable Instruct-IPT to receive human prompts. We have conducted experiments on Instruct-IPT to demonstrate the effectiveness of our method on manifold tasks, and we have effectively extended our method to diffusion denoisers as well. The code is available at https://github.com/huawei-noah/Pretrained-IPT.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
color-image-denoising-on-cbsd68-sigma50Instruct-IPT
PSNR: 28.61
image-deblurring-on-goproInstruct-IPT
PSNR: 33.86
SSIM: 0.967
image-dehazing-on-sots-outdoorInstruct-IPT
PSNR: 39.95
SSIM: 0.992
single-image-deraining-on-rain100lInstruct-IPT
PSNR: 39.35
SSIM: 0.977
single-image-desnowing-on-csdInstruct-IPT
Average PSNR (dB): 40.12

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp