Abstract
Current computer vision (CV) systems use an image signal processing (ISP) unit to convert the high resolution raw images captured by image sensors to visually pleasing RGB images. Typically, CV models are trained on these RGB images and have yielded state-of-the-art (SOTA) performance on a wide range of complex vision tasks, such as object detection. In addition, in order to deploy these models on resource-constrained low-power devices, recent works have proposed in-sensor and in-pixel computing approaches that try to partly/fully bypass the ISP and yield significant bandwidth reduction between the image sensor and the CV processing unit by downsampling the activation maps in the initial convolutional neural network (CNN) layers. However, direct inference on the raw images degrades the test accuracy due to the difference in covariance of the raw images captured by the image sensors compared to the ISP-processed images used for training. Moreover, it is difficult to train deep CV models on raw images, because most (if not all) large-scale open-source datasets consist of RGB images. To mitigate this concern, we propose to invert the ISP pipeline, which can convert the RGB images of any dataset to its raw counterparts, and enable model training on raw images. We release the raw version of the COCO dataset, a large-scale benchmark for generic high-level vision tasks. For ISP-less CV systems, training on these raw images result in a ∼7.1% increase in test accuracy on the visual wake works (VWW) dataset compared to relying on training with traditional ISP-processed RGB datasets. To further improve the accuracy of ISP-less CV models and to increase the energy and bandwidth benefits obtained by in-sensor/in-pixel computing, we propose an energy-efficient form of analog in-pixel demosaicing that may be coupled with in-pixel CNN computations. When evaluated on raw images captured by real sensors from the PASCALRAW dataset, our approach results in a 8.1% increase in mAP. Lastly, we demonstrate a further 20.5% increase in mAP by using a novel application of few-shot learning with thirty shots each for the novel PASCALRAW dataset, constituting 3 classes. Codes are available at https://github.com/godatta/ISP-less-CV.
Introduction
Standard computer vision (CV) models are primarily "RGB-centric," designed to operate on images that have been extensively processed by an Image Signal Processor (ISP). The ISP performs complex operations such as demosaicing (converting Bayer patterns to RGB), white balancing, and gamma correction to produce images that are visually pleasing to humans. However, for autonomous systems like drones or smart security cameras, visual aesthetics are secondary to task performance.
ISPs are computationally expensive, often reside off-chip—thereby increasing data transfer energy—and introduce significant latency. Removing the ISP would save massive amounts of power, but two major hurdles exist:
- Covariance Shift: RAW sensor data has a vastly different pixel intensity distribution than RGB images, causing models trained on RGB to fail on RAW data.
- Data Scarcity: Large-scale annotated datasets like COCO are almost exclusively in RGB format, making it difficult to train deep models for RAW-domain tasks.
Methodology: Hardware-Software Co-design
To address these challenges, the authors propose an "ISPless" pipeline that bypasses traditional processing through a hardware-software co-design approach.
ISP Inversion and Data Generation
To overcome data scarcity, the researchers utilized Flow-based Invertible Neural Networks (trained on the MIT-Adobe 5K dataset) to learn the mapping from RGB back to RAW. This allowed them to "unprocess" the standard COCO dataset, creating a large-scale synthetic RAW dataset for training. This synthetic-to-real transfer strategy proves that massive real-world RAW datasets are not a prerequisite for training effective RAW-domain models.
Analog In-Pixel Demosaicing
Instead of software-based demosaicing, the paper proposes a hardware modification to the pixel array. By using interleaved "Row-Select" lines, the system can perform analog summation of green pixels directly on the sensor during the readout phase. This simple analog average is sufficient for CV tasks and significantly more energy-efficient than complex interpolation. Coupled with in-pixel CNN computations, this achieves a 12x reduction in bandwidth.
Few-Shot Refinement
To bridge the domain gap between simulated RAW data and real sensor data, a Two-stage Fine-tuning Approach (TFA) was employed. Using only 30 shots per class from the PASCALRAW dataset, the model is calibrated to the specific characteristics of real sensors.
Key Results
The ISPless approach demonstrates significant gains in both accuracy and efficiency:
- Accuracy: On the Visual Wake Words (VWW) dataset, training on inverted RAW images resulted in a 7.1% increase in test accuracy compared to using RGB-trained models.
- Object Detection: On the PASCALRAW dataset, the approach yielded an 8.1% increase in mAP, which rose by a further 20.5% after few-shot learning.
- Efficiency: The in-pixel demosaicing technique reduces data transmission energy by 75% with only a ~5% sensor energy overhead.
Conclusion
This work demonstrates that bypassing the ISP is a viable path for low-power, always-on computer vision. While challenges remain regarding spatial resolution trade-offs for small object detection and the manufacturing complexity of custom pixel arrays, the combination of ISP inversion and in-pixel computing provides a scalable framework for energy-efficient edge AI.
Summary updated