littlewhitesea / STDAN

This is the official implementation of "STDAN: Deformable Attention Network for Space-Time Video Super-Resolution" (TNNLS2023)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STDAN (Keep Update)

This is the official Pytorch implementation of STDAN: Deformable Attention Network for Space-Time Video Super-Resolution.

By Hai Wang, Xiaoyu Xiang, Yapeng Tian, Wenming Yang, Qingmin Liao

arXiv Open In Colab

Paper | Data | Colab

Introduction

The target of space-time video super-resolution (STVSR) is to increase the spatial-temporal resolution of low-resolution (LR) and low frame rate (LFR) videos. Recent approaches based on deep learning have made significant improvements, but most of them only use two adjacent frames, that is, short-term features, to synthesize the missing frame embedding, which cannot fully explore the information flow of consecutive input LR frames. In addition, existing STVSR models hardly exploit the temporal contexts explicitly to assist high-resolution (HR) frame reconstruction. To address these issues, in this paper, we propose a deformable attention network called STDAN for STVSR. First, we devise a long-short term feature interpolation (LSTFI) module, which is capable of excavating abundant content from more neighboring input frames for the interpolation process through a bidirectional RNN structure. Second, we put forward a spatial-temporal deformable feature aggregation (STDFA) module, in which spatial and temporal contexts in dynamic video frames are adaptively captured and aggregated to enhance SR reconstruction.

LSTFI Module

STDFA Module

STDFA

Dependencies

Installation

  1. Install the required packages:

    pip install -r requirements.txt
    
  2. Compile the deformable attention and convolution:

    cd YOUR_PATH/STDAN/codes/models/modules/DCNv2_latest
    bash make.sh
    

Training

Dataset preparation

You require to prepare datasets for training the model, the detailed information of Data Preparation is same as Zooming Slow-Mo.

Train the STDAN model

cd YOUR_PATH/codes
python train.py -opt options/train/train_stdan.yml

Testing

Pretrained Models

Our pretrained model can be downloaded via Google Drive or Baidu Netdisk(access code: gnhk). After you obtain the pretrained model, please put them into the YOUR_PATH/experiments/pretrained_models folder.

Testing on Vid4/SPMC datasets

cd YOUR_PATH/codes
python test.py

Testing on Vimeo-Slow/Medium/Fast datasets

cd YOUR_PATH/codes
python test_vimeo.py

Citation

If you find the code helpful in your research or work, please cite our paper:

@article{wang2023stdan,
  title={Stdan: deformable attention network for space-time video super-resolution},
  author={Wang, Hai and Xiang, Xiaoyu and Tian, Yapeng and Yang, Wenming and Liao, Qingmin},
  journal={IEEE Transactions on Neural Networks and Learning Systems},
  year={2023},
  publisher={IEEE}
}

Acknowledgments

We thank Zooming Slow-Mo and Detectron2. They provide many useful codes which facilitate our work.

About

This is the official implementation of "STDAN: Deformable Attention Network for Space-Time Video Super-Resolution" (TNNLS2023)


Languages

Language:Jupyter Notebook 60.5%Language:Python 27.5%Language:Cuda 9.5%Language:C++ 1.5%Language:C 0.8%Language:MATLAB 0.3%Language:Shell 0.0%