Coder Social home page Coder Social logo

cbunet's Introduction

Rendering Nighttime Image Via Cascaded Color and Brightness Compensation


RAW (visualized) Conventional ISP Our CBUnet

- This code is still being organized and we will try to finish it before June 26th.

This repository provides PyTorch implementation of the Rendering Nighttime Image Via Cascaded Color and Brightness Compensation. The model is trained for rendering nighttime RAW images into RGB. More visual results could be found in our website.


2. Prerequisites

  • Python: requeriments.txt
  • PyTorch libraries
  • Nvidia GPU

3. Demo

python demo.py -i xxx.dng

4. Training the model

  • Download the datasets from [Dataset] and edit the NR2R_ROOT in dataset.py
  • ownload the pretrained stage-1 from cube++.pth and stage-2 from p4_2.pkl ** and put them all in .pretrain folder.
  • The model is trained stage by stage, start training from the stage-1:
CUDA_VISIBLE_DEIVCES=0 python train_stage_1.py -b 16 -d 0
  • then copy the stage_1's checkpoint to .pretrain/stage_1.checkpoint
CUDA_VISIBLE_DEIVCES=0 python train_stage_2.py -b 16 -d 0
  • then copy the stage_2's checkpoint to .pretrain/stage_2.checkpoint
CUDA_VISIBLE_DEIVCES=0 python finetune.py -b 16 -d 0

5. Test the provided pre-trained models

python test.py --stage1 xxx.checkpoint --stage2 xxx.checkpoint --visual visualization

6. Citation

@article{ignatov2020replacing,
  title={Replacing Mobile Camera ISP with a Single Deep Learning Model},
  author={Ignatov, Andrey and Van Gool, Luc and Timofte, Radu},
  journal={arXiv preprint arXiv:2002.05509},
  year={2020}
}

7. Contact

Zhihao Li (lizhihao6_at_outlook.com)

8. Thaks

Zhihao Li (lizhihao6_at_outlook.com)

cbunet's People

Contributors

lizhihao6 avatar

Stargazers

 avatar  avatar  avatar Jingyi Xu avatar  avatar  avatar heimayouxia avatar bianhao avatar  avatar Huang avatar  avatar Sugar avatar zhaozz avatar Simon avatar  avatar  avatar Jianqiang Wang avatar  avatar  avatar Berat Eren Terzioğlu avatar  avatar Walker avatar

Watchers

 avatar  avatar

cbunet'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.