Skip to content

FFNeRV: Flow-Guided Frame-Wise Neural Representations for Videos

License

Notifications You must be signed in to change notification settings

maincold2/FFNeRV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFNeRV: Flow-Guided Frame-Wise Neural Representations for Videos

Joo Chan Lee, Daniel Rho, Jong Hwan Ko†, and Eunbyung Park†

Our code is based on NeRV

Method overview

0. Requirements

pip install -r requirements.txt 

(Update) Highly recommend upgrading the Pytorch version (>= 1.13.0) for faster training and inference.

Dataset link: UVG

1. Training (Encoding)

For representation

python main.py -e 300 --lower-width 96 --num-blocks 1 --dataset [data_dir] --outf [out_dir] --fc-hw-dim 9_16_156 --expansion 1 --loss Fusion6 --strides 5 2 2 2 2  --conv-type conv -b 1  --lr 0.0005 --agg-ind -2 -1 1 2 --lw 0.1 --t-dim 64 128 256 512

For compression

python main.py -e 600 --lower-width 24 --num-blocks 1 --dataset [data_dir] --outf [out_dir] --fc-hw-dim 9_16_48 --expansion 8 --loss Fusion6 --strides 5 3 2 2 2  --conv-type compact -b 1  --lr 0.0005 --agg-ind -2 -1 1 2 --lw 0.1 --wbit 8 --t-dim 300 600 --resol 1920 1080
  • "--conv-type": the type of convolution blocks
  • "--agg-ind": relative video indices for aggregation
  • "--wbit": for n-bit quantization (QAT)
  • "--t-dim": multi-channels of temporal grids

More details can be found in "main.py"

2. Evaluation (+ Entropy coding)

python main.py --lower-width 24 --num-blocks 1 --dataset [data_dir] --outf [out_dir] --fc-hw-dim 9_16_48 --expansion 8 --strides 5 3 2 2 2  --conv-type compact -b 1 --agg-ind -2 -1 1 2 --wbit 8 --t-dim 300 600 --resol 1920 1080 --eval-only

3. Decoding

python main.py --lower-width 24 --num-blocks 1 --dataset [data_dir] --outf [out_dir] --fc-hw-dim 9_16_48 --expansion 8 --strides 5 3 2 2 2  --conv-type compact -b 1 --agg-ind -2 -1 1 2 --wbit 8 --t-dim 300 600 --resol 1920 1080 --eval-only --weight [weight_path] --dump-images

About

FFNeRV: Flow-Guided Frame-Wise Neural Representations for Videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages