Abstract
Professional photo retouching often involves complex, localized adjustments that are difficult to automate across diverse images. We present INRetouch, a context-aware Implicit Neural Representation (INR) capable of learning professional editing styles from a single reference pair. Unlike standard pixel-wise INRs, INRetouch incorporates local spatial context through window sampling and a specialized depth-wise convolution block. This allows for the transfer of sophisticated effects like vignetting and object-specific color grading. Our model is extremely efficient, featuring only 11.5K parameters and supporting real-time 4K inference.
Introduction
Professional photography relies on retouching to achieve specific aesthetic goals. These edits range from global color corrections to localized masking and artistic effects like vignetting. While software presets (e.g., Adobe Lightroom) are common, they often lack consistency when applied to images with varying content or lighting. Existing deep learning approaches, such as Look-Up Tables (LUTs), are efficient but limited to global transformations. Conversely, style transfer models often sacrifice image fidelity.
INRetouch addresses these limitations by leveraging the efficiency of INRs while introducing spatial awareness. By learning the "delta" between a single before-after pair, it can generalize complex editing logic to new inputs in a one-shot manner.
Methodology
The core of INRetouch is an Implicit Neural Representation modified to perceive local image structure. Standard INRs process pixels in isolation, making them "blind" to spatial context. We introduce three primary modifications to overcome this:
- Window Sampling: During training, the model samples $n \times n$ pixel windows rather than individual points, providing the network with immediate local neighborhood information.
- Context-Awareness Block: We integrate a branch utilizing 1x1 and 3x3 depth-wise convolutions. This architectural choice enables the model to detect edges, textures, and spatial gradients, which are essential for localized effects like vignetting or sky-specific enhancements.
- Adjustable Intensity ($\alpha$): The model employs a global residual connection. It learns to predict the edit (the difference between input and output). By scaling this prediction by a user-defined factor $\alpha$, the intensity of the retouching can be interactively adjusted during inference.
Experiments and Results
To evaluate INRetouch, the authors introduced the Photo Retouching Dataset (PRD), containing 100,000 high-quality images retouched with professional Lightroom presets. These presets include complex local transformations, making the dataset more challenging than previous benchmarks focused on global adjustments.
Quantitatively, INRetouch achieves a PSNR of 23.42 dB on the retouch transfer task, outperforming standard INR architectures like SIREN (22.86 dB) and traditional example-based methods like Image Analogies (12.32 dB). The model's efficiency is a standout feature; with only 11.5K parameters, it can process a 4K image in approximately 70ms on an NVIDIA RTX 4090.
Conclusion
INRetouch demonstrates that adding spatial context to tiny INRs enables them to perform sophisticated image processing tasks previously reserved for much larger generative models. While it currently faces challenges with high-frequency noise transfer, its efficiency and one-shot learning capability make it a powerful tool for professional workflows. Future work will focus on improving temporal consistency for video applications and enhancing the transfer of fine-grained textures.
Summary updated