Coder Social home page Coder Social logo

jyang297 / dqbc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kinoud/dqbc

0.0 0.0 0.0 33 KB

Official implementation of IJCAI 2023 paper "Video Frame Interpolation with Densely Queried Bilateral Correlation".

License: MIT License

Python 100.00%

dqbc's Introduction

Video Frame Interpolation with Densely Queried Bilateral Correlation

Introduction

This repository is the official implementation of the IJCAI 2023 paper "Video Frame Interpolation with Densely Queried Bilateral Correlation". [paper]

Requirements

  1. torch is necessary. The code has been developed with torch1.12.1.
  2. Install other requirements as:
    pip install -r requirements.txt

Benchmarking

Download our pretrained model.

Download Vimeo90K dataset.

Download SNU_FILM dataset.

Download UCF101 dataset.

Download MiddleBury Other dataset.

Make your downloaded files structured like below:

.
├── configs
├── datas
├── datasets
│   ├── middlebury
│   │   ├── other-data
│   │   └── other-gt-interp
│   ├── snu_film
│   │   ├── test
│   │   ├── test-easy.txt
│   │   ├── test-extreme.txt
│   │   ├── test-hard.txt
│   │   └── test-medium.txt
│   ├── ucf101
│   │   ├── 1
│   │   ├── 1001
│   │   ...
│   │   ├── 981
│   │   └── 991
│   └── vimeo_triplet
│       ├── readme.txt
│       ├── sequences
│       ├── tri_testlist.txt
│       └── tri_trainlist.txt
├── pretrained
│   └── 510000.pth
├── experiments
├── losses
├── models
├── utils
├── validate
├── train.py
├── test.py
└── val.py

Run benchmarking by following commands:

python val.py --config configs/benchmarking/vimeo.yaml --gpu_id 0
python val.py --config configs/benchmarking/middlebury.yaml --gpu_id 0
python val.py --config configs/benchmarking/ucf101.yaml --gpu_id 0
python val.py --config configs/benchmarking/snu_film.yaml --gpu_id 0

To enable the augmented test ("Ours-Aug" in the paper), uncomment the val_aug: [T,R] line in the configuration files.

Training

The model was trained on the Vimeo90K-triplet training split.

Run the following command for training:

CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --nproc_per_node=4 --master_port 9999 train.py --config configs/train.yaml

Testing on a Custom Image Pair

First specify the path of the model weights in configs/test.yaml.

Then you can test the model on a customized image pair as:

python test.py --config configs/test.yaml --im0 <path to im0> --im1 <path to im1> --output_dir <path to output folder>

Cite

@inproceedings{ijcai2023p198,
  title     = {Video Frame Interpolation with Densely Queried Bilateral Correlation},
  author    = {Zhou, Chang and Liu, Jie and Tang, Jie and Wu, Gangshan},
  booktitle = {Proceedings of the Thirty-Second International Joint Conference on
               Artificial Intelligence, {IJCAI-23}},
  publisher = {International Joint Conferences on Artificial Intelligence Organization},
  editor    = {Edith Elkind},
  pages     = {1786--1794},
  year      = {2023},
  month     = {8},
  note      = {Main Track},
  doi       = {10.24963/ijcai.2023/198},
  url       = {https://doi.org/10.24963/ijcai.2023/198},
}

dqbc's People

Contributors

kinoud avatar

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.