Z-Fran 6f2f3ae2ad | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
README_zh-CN.md | 1 year ago | |
metafile.yml | 2 years ago | |
tdan_vimeo90k_bdx4_ft_lr5e-5_800k.py | 1 year ago | |
tdan_vimeo90k_bdx4_lr1e-4_400k.py | 1 year ago | |
tdan_vimeo90k_bix4_ft_lr5e-5_400k.py | 1 year ago | |
tdan_vimeo90k_bix4_lr1e-4_400k.py | 1 year ago |
TDAN: Temporally Deformable Alignment Network for Video Super-Resolution
Video super-resolution (VSR) aims to restore a photo-realistic high-resolution (HR) video frame from both its corresponding low-resolution (LR) frame (reference frame) and multiple neighboring frames (supporting frames). Due to varying motion of cameras or objects, the reference frame and each support frame are not aligned. Therefore, temporal alignment is a challenging yet important problem for VSR. Previous VSR methods usually utilize optical flow between the reference frame and each supporting frame to wrap the supporting frame for temporal alignment. Therefore, the performance of these image-level wrapping-based models will highly depend on the prediction accuracy of optical flow, and inaccurate optical flow will lead to artifacts in the wrapped supporting frames, which also will be propagated into the reconstructed HR video frame. To overcome the limitation, in this paper, we propose a temporal deformable alignment network (TDAN) to adaptively align the reference frame and each supporting frame at the feature level without computing optical flow. The TDAN uses features from both the reference frame and each supporting frame to dynamically predict offsets of sampling convolution kernels. By using the corresponding kernels, TDAN transforms supporting frames to align with the reference frame. To predict the HR video frame, a reconstruction network taking aligned frames and the reference frame is utilized. Experimental results demonstrate the effectiveness of the proposed TDAN-based VSR model.
Evaluated on Y-channel. 8 pixels in each border are cropped before evaluation.
The metrics are PSNR / SSIM
.
Method | Vid4 (BIx4) | SPMCS-30 (BIx4) | Vid4 (BDx4) | SPMCS-30 (BDx4) | Download |
---|---|---|---|---|---|
tdan_vimeo90k_bix4_ft_lr5e-5_400k | 26.49/0.792 | 30.42/0.856 | 25.93/0.772 | 29.69/0.842 | model | log |
tdan_vimeo90k_bdx4_ft_lr5e-5_800k | 25.80/0.784 | 29.56/0.851 | 26.87/0.815 | 30.77/0.868 | model | log |
Train
You can use the following command to train a model.
./tools/dist_train.sh ${CONFIG_FILE} ${GPU_NUM} [optional arguments]
TDAN is trained with two stages.
Stage 1: Train with a larger learning rate (1e-4)
./tools/dist_train.sh configs/restorers/tdan/tdan_vimeo90k_bix4_lr1e-4_400k.py 8
Stage 2: Fine-tune with a smaller learning rate (5e-5)
./tools/dist_train.sh configs/restorers/tdan/tdan_vimeo90k_bix4_ft_lr5e-5_400k.py 8
For more details, you can refer to Train a model part in getting_started.
Test
You can use the following command to test a model.
python tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [--out ${RESULT_FILE}] [--save-path ${IMAGE_SAVE_PATH}]
Example: Test TDAN on SPMCS-30 using Bicubic downsampling.
python tools/test.py configs/restorers/tdan/tdan_vimeo90k_bix4_ft_lr5e-5_400k.py checkpoints/SOME_CHECKPOINT.pth --save_path outputs/
For more details, you can refer to Inference with pretrained models part in getting_started.
@InProceedings{tian2020tdan,
title={TDAN: Temporally-Deformable Alignment Network for Video Super-Resolution},
author={Tian, Yapeng and Zhang, Yulun and Fu, Yun and Xu, Chenliang},
booktitle = {Proceedings of the IEEE conference on Computer Vision and Pattern Recognition},
year = {2020}
}
No Description
Python Markdown other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》