Coder Social home page Coder Social logo

dualbr's Introduction

Motion Blur Decomposition with Cross-shutter Guidance

visitors Arxiv | Paper | Supp | Project page

Xiang Ji, Haiyang Jiang, Yinqiang Zheng

The University of Tokyo

This repository provides the official PyTorch implementation of the paper.

TL;DR

Inspired by the complementary exposure characteristics of a global shutter (GS) camera and a rolling shutter (RS) camera, we propose a dual Blur-RS setting to solve the motion ambiguity of blur decomposition. As shown in the Figure below, the RS view not only provides local details but also implicitly captures the temporal order of latent frames. Meanwhile, GS view could be exploited to mitigate the initial-state ambiguity from RS counterpart.


image

Dependencies

  1. Python and Pytorch
  • Pyhotn=3.8 (Anaconda recommended)
  • Pytorch=1.11.0
  • CUDA=11.3/11.4
conda create -n dualbr python=3.8
conda activate dualbr
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
  1. Other packages
pip install -r requirements.txt

Data and Pretrained Model

  • Download datasets realBR and synthetic data GOPRO-VFI_copy based on GOPRO.
  • Unzip them under a specified directory by yourself.
  • Please download checkpoints from this link and put them under root directory of this project.

Test

To test model, please run the command below:

bash ./test.sh       ### Please specify your data directory, output path in the script

Train

To train model, please run the command below:

bash ./train.sh       ### Please refer to the script for more info.

Acknowledgement

This project is implemented by partially referring to the code of work below:

dualbr's People

Contributors

jixiang2016 avatar dependabot[bot] avatar

Stargazers

fengzhihui avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

comparezz

dualbr's Issues

Demo code to deblur a single video

Thanks for your amazing work! May I wonder whether you could also provide demo code that can be used to deblur a single input video and save the output?

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.