Giter Club home page Giter Club logo

b_drrn's Introduction

B-DRRN: A Block Information Constrained Deep Recursive Residual Network for Video Compression Artifacts Reduction (PCS'19)

Paper, arXiv

Trinh Man Hoang, Jinjia Zhou

Picture Coding Symposium, Ningbo, China, PCS 2019

Table of Contents

  1. Introduction
  2. Citation
  3. Requirements and Dependencies
  4. Testing Pre-trained Models
  5. Training New Models

Introduction

We developed a B-DRRN with an additional branch that used the Recursive Residual structure for limiting the size of the network. This branch then is used to learn the features from the block information which is represented for the source of block-based video coding artifact. Furthermore, our B-DRRN uses the sharing weight technique for all branches to keep the number of parameters remains the same with the main branch.

Citation

If you find the code and datasets useful in your research, please cite:

@article{B-DRRN,
     title={B-DRRN: A Block Information Constrained Deep Recursive Residual Network for Video Compression Artifacts Reduction},
     author={Trinh Man Hoang, Jinjia Zhou},
     journal={Picture Coding Symposium},
     doi={10.1109/PCS48520.2019.8954521},
     year={2019}
}

Requirements and Dependencies

  • Ubuntu 16.04.5 LTS
  • Python 3.6.8
  • Cuda & Cudnn (We test with Cuda = 10.0 and Cudnn = 7.6.5)
  • PyTorch 1.3.0
  • Tensorflow (-gpu) 1.14.0
  • NVIDIA GPU (We use Teska V100 with compute = 7.0)
  • Scikit-image 1.3.0
  • Scipy 1.14.0
  • Baseline HEVC - HM software 16.20

Testing Pre-trained Models

Make model weights dir and Middlebury dataset dir:

$ cd B_DRRN
$ mkdir model_weights
$ mkdir test_data

Download pretrained models for QP = 37 from https://drive.google.com/open?id=1HT1169L2U8VUJjCAjxTx0BYwaCVsJa8o and put it into ./model_weights/ folder.

Download and uncompressed the test set:

Decoded frames: https://drive.google.com/open?id=1PKRHDBPjY685oVBtkATUpzEVPpbh1FOs

$ unzip decoded_frames.zip

Mean Mask frames: https://drive.google.com/open?id=1Z4hwD5o7myFDNiM5pyHZq9SZ9mMEcfS-

$ unzip mean_mask_frames.zip

Ground Truth: https://drive.google.com/open?id=1etkaj9q38QyeiOQAI_06fW2Mv6a1-voj

$ unzip ground_truth.zip

We are good to go by:

$ python source/test/test.py --arch 'BDRRN' --weights_path 'path/to/your/weight.pth' --images_dir '/path/to/decoded_frame/folder/' --parts_dir '/path/to/mean_mask/folder/' --outputs_dir 'path/to/your/results_folder/' --gts_dir '/path/to/the/groundtruth/folder/' --num_channels 1 --cuda_device 0

Training New Models

Run the training script:

$ python source/train/train.py --arch 'BDRRN' --images_dir '/path/to/decoded_frame/folder/' --parts_dir '/path/to/mean_mask/folder/'  --labels_dir '/path/to/the/groundtruth/folder/' --outputs_dir 'path/to/weights/folder/' --num_epoch 150 --num_channels 1 --cuda_device 0 --batch_size 256 --format '.png'

Contact

Trinh Man Hoang

License

This repository (as well as its materials) is for non-commercial uses and research purposes only.

b_drrn's People

Contributors

hoangtrinh avatar

Stargazers

 avatar Artur Sagitov avatar liuna avatar whusky avatar Elliott Zheng avatar pedro rohde avatar  avatar mimi avatar

Watchers

James Cloos avatar  avatar  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.