Git Product home page Git Product logo

microisp's Introduction

MicroISP: Processing 32MP Photos on Mobile Devices with Deep Learning


This repository provides the implementation of the RAW-to-RGB mapping approach and MicroISP CNN presented in this paper. The model is trained to convert RAW Bayer data obtained directly from mobile camera sensor into photos captured with a professional medium format 102MP Fujifilm GFX100 camera, thus replacing the entire hand-crafted ISP camera pipeline. The provided pre-trained MicroISP model can be used to generate full-resolution 32MP photos from RAW (DNG) image files captured using the Sony Exmor IMX586 camera sensor directly on mobile devices.


2. Prerequisites


3. MicroISP CNN


drawing


The model accepts the raw RGBG Bayer data coming directly from the camera sensor. The input is then grouped in 4 feature maps corresponding to each of the four RGBG color channels using the space-to-depth op. Next, this input is processed in parallel in 3 model branches corresponding to the R, G and B color channels and consisting of N residual building blocks. After applying the depth-to-space op at the end of each branch, their outputs are concatenated into the reconstructed RGB photo.

The proposed MicroISP model contains only layers supported by the Neural Networks API 1.2, and thus can run on any NNAPI-compliant AI accelerator (such as NPU, APU, DSP or GPU) available on mobile devices with Android 10 and above. The size of the MicroISP network is only 158 KB when exported for inference using the TFLite FP32 format. The model consumes around 90, 475 and 975MB of RAM when processing FullHD, 12MP and 32MP photos on mobile GPUs, respectively. Its GPU runtimes on various platforms for images of different resolutions are provided below:


drawing


4. Test the provided pre-trained models on full-resolution RAW image files

python inference.py

The model will then process DNG images from the sample_RAW_photos directory and save the resulting RGB/PNG images to the sample_visual_results folder.


5. Folder structure

pretrained_weights/   -   the folder with the provided pre-trained MicroISP model
sample_RAW_photos/   -   the folder with sample RAW/DNG images from the Fujifilm UltraISP Dataset
model.py   -   TensorFlow MicroISP implementation
inference.py   -   applying the pre-trained model to full-resolution test images
export_to_tflite.py   -   model export to TensorFlow Lite format for on-device deployment


6. License

Copyright (C) 2024 Andrey Ignatov. All rights reserved.

Licensed under the CC BY-NC-SA 4.0 (Attribution-NonCommercial-ShareAlike 4.0 International).

The code is released for academic research use only.


7. Citation

@inproceedings{ignatov2022microisp,
  title={MicroISP: Processing 32MP Photos on Mobile Devices with Deep Learning},
  author={Ignatov, Andrey and Sycheva, Anastasia and Timofte, Radu and Tseng, Yu and Xu, Yu-Syuan and Yu, Po-Hsiang and Chiang, Cheng-Ming and Kuo, Hsien-Kai and Chen, Min-Hung and Cheng, Chia-Ming and others},
  booktitle={European Conference on Computer Vision},
  pages={729--746},
  year={2022},
  organization={Springer}
}

8. Any further questions?

Please contact Andrey Ignatov ([email protected]) for more information

microisp's People

Contributors

aiff22 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

microisp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.