Skip to content

yefeng00/EEV-0.4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EEV-0.4

Pytorch implementation of the paper "MPAI-EEV: Standardization Efforts of Artificial Intelligence based End-to-End Video Coding"

Requirements

  • Python==3.7
  • PyTorch==1.11
  • torchac
  • ninja

Data Preparation

Training Dataset

Test Dataset

This method focuses on the P-frame compression. In terms of I frames, we apply CompressAI to compress them. The test datasets include:

Basically, the test sequences are cropped. After that, both the width and height are the multiplier of 64. Subsequently, we split them into consecutive pictures by ffmpeg. Taking UVG as example, the data process is shown as follows.

  1. Crop Videos from 1920x1080 to 1920x1024.
    ffmpeg -pix_fmt yuv420p  -s 1920x1080 -i ./videos/xxxx.yuv -vf crop=1920:1024:0:0 ./videos_crop/xxxx.yuv
    
  2. Convert YUV files to images.
    ffmpeg -s 1920x1024 -pix_fmt yuv420p -i ./videos_crop/xxxx.yuv ./images_crop/xxxx/im%3d.png
    

Evaluation

We respectively train four differnt models for PSNR metric, where $\lambda$ equals to 256, 512, 1024 and 2048. As for MS-SSIM metric, we set $\lambda$ as 8, 16, 32 and 64. Our pretrained models are provided on Google Drive.

python eval.py --eval_lambda 256 --metric mse --intra_model cheng2020_anchor --test_class ClassD --gop_size 10 --pretrain ./checkpoints/dmvc_psnr_256.model

python eval.py --eval_lambda 8 --metric ms-ssim --intra_model cheng2020_anchor --test_class ClassD --gop_size 10 --pretrain ./checkpoints/dmvc_msssim_8.model

Related links

About

Pytorch implementation of the paper "MPAI-EEV: Standardization Efforts of Artificial Intelligence based End-to-End Video Coding"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages