InstructIR
An image restoration network that follows a written instruction, here in its seven-task (7D) version.
Multimodal · 1,772 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Multimodal
- Parameters
- 33.2M
- Operations
- 1,772
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECCV 2024
- Cited by
- 109 (as of 28 October 2026)
- Authors
- Marcos V. Conde, Gregor Geigle, Radu Timofte
- Source
- GitHub: mv-lab/InstructIR
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17585
- Graph hash
- b3910cba3b61ac0cceac0ec1692f6e29e738be77faa7131044eba278993602ca
- Skeleton hash
- 8aa7927306ade91f553600d14021fc2aa30c7b6efe02ce8db73ab4c36c2b8f7b
- Architecture hash
- b283c0d59a56c673bd3f18975f96c01ae4438252e3cc3c2c1da6d748fc0e416a
- Diagram SHA-256
- 410f9e19335e703ffb81c2d700e5dedaaffdb8f683cb1e6ea8604fcb73052fe4
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
InstructIR restores a degraded photograph according to a written request: it takes an image and a human-written instruction for how to improve that image. A single model handles several kinds of degradation, and the paper evaluates it on image denoising, deraining, deblurring, dehazing and low-light image enhancement.
The model has two parts, an image model and a text encoder. The text encoder is BGE-micro-v2, a 3-layer sentence encoder that is frozen during training. On top of it sit a learned projection and a two-layer MLP head that classifies the degradation type from the instruction embedding. The image model is NAFNet arranged as a 4-level encoder-decoder, with [2, 2, 4, 8] blocks in the encoder and [2, 2, 2, 2] in the decoder. The instruction reaches the image features through an Instruction Condition Block, which turns the text embedding into a soft per-channel mask that multiplies the features.
This model is the 7D variant, which adds super-resolution and image enhancement to the five tasks above. The paper reports an improvement of +1dB over previous all-in-one restoration methods. It gives the size of the image model as 16M parameters and of the language model as 17M.
Key idea. InstructIR guides a single image restoration model with human-written instructions, recovering images from several degradation types given natural language prompts.
- InstructIR
- image restoration
- all-in-one image restoration
- text-guided image restoration
- instruction-based restoration
- denoising
- deblurring
- dehazing
- deraining
- low-light enhancement
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{conde2024instructirhighqualityimagerestoration,
title={InstructIR: High-Quality Image Restoration Following Human Instructions},
author={Marcos V. Conde and Gregor Geigle and Radu Timofte},
year={2024},
eprint={2401.16468},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2401.16468},
}