Coder Social home page Coder Social logo

efenet's Introduction

EFENet: Reference-based Video Super-Resolution with Enhanced Flow Estimation

In this repository we provide code of the paper:

EFENet: Reference-based Video Super-Resolution with Enhanced Flow Estimation

Yaping Zhao, Mengqi Ji, Ruqi Huang, Bin Wang, Shengjin Wang

arxiv link: http://arxiv.org/abs/2110.07797

Usage

  1. For pre-requisites, run:
conda env create -f environment.yml
conda activate efenet
  1. Pretrained model is currently available at OneDrive and Baidu Netdisk (password: efen), download the CP10000.pth and put it in the pretrained folder. This pretrained model only uses one training sample for demo purpose. If you want to train your own model, please prepare your own training set.

  2. For EFENet training, run:

sh train.sh

or

python train_efenet_vimeo.py  \
--dataset demo   \
--display 100 \
--batch_size 1  \
--step_size 50000 \
--gamma 0.1 \
--loss CharbonnierLoss \
--optim Adam \
--lr 0.00001  \
--checkpoints_dir ./checkpoints/ \
--frame_num 7 \
--checkpoint_file ./pretrained/CP10000.pth \
--with_GAN_loss 0 \
--img_save_path result/ \
--net_type multiflowfusion5 \
--pretrained 1 \
--gpu_id 0 
  1. For EFENet testing, run:
sh test.sh

or

python train_efenet_vimeo.py  \
--dataset demo   \
--mode test \
--display 100 \
--batch_size 1  \
--step_size 50000 \
--gamma 0.1 \
--loss CharbonnierLoss \
--optim Adam \
--lr 0.00001  \
--checkpoints_dir ./checkpoints/ \
--frame_num 7 \
--checkpoint_file ./pretrained/CP10000.pth \
--with_GAN_loss 0 \
--img_save_path result/ \
--net_type multiflowfusion5 \
--pretrained 0 \
--gpu_id 0
  1. If positive, you will get models in the checkpoints/ folder when training and results in the result/ folder when testing.

Dataset

Dataset is stored in the folder dataset/, where subfolders clean/, corrupted/, SISR/ contain ground truth HR images, corrupted LR images, upsampled LR images by interpolation (e.g., bicubic) or SISR methods. Images in SISR/ could be as same as in corrupted/, though preprocessing by advanced SISR methods (e.g., MDSR) brings a small performance boost.

testlist.txt and trainlist.txt could be modified for your experiment on other datasets.

This repo only provides a sample for demo purposes.

Citation

Cite our paper if you find it interesting!

@misc{zhao2021efenet,
      title={EFENet: Reference-based Video Super-Resolution with Enhanced Flow Estimation}, 
      author={Yaping Zhao and Mengqi Ji and Ruqi Huang and Bin Wang and Shengjin Wang},
      year={2021},
      eprint={2110.07797},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

efenet's People

Contributors

indigopurple avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cv-ip

efenet's Issues

Request for Re-upload of Checkpoint File Link

The Google Drive link for the currently available checkpoint on the repo is inaccessible due to permission issues.
It seems that even Baidu Netdisk is not accessible, despite not being of Chinese nationality.
Could you please re-upload the checkpoint file link?

Need for Training on New Videos

Does the model need to be trained separately for each arbitrary video?

I just tried reversing the order of 'im1.png'~'im7.png' provided in the repo and attempted to perform SR on 'im7.png' from the HR image of 'im1.png', but the result turned out blurry.

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.