Skip to content

ErenBalatkan/FlowNet2-PyTorch-EasyToUse-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlowNet2-Pytorch-EasyToUse-Wrapper

This repository provides a wrapper with very easy usage for Nvidia's FlowNet2 Implementation

Test on Cyberpunk 2077 Cinematic

IMAGE ALT TEXT

Installation

  • Step 1 :
    Start with Nvidia's Installation guide located at https://github.com/NVIDIA/flownet2-pytorch

  • Step 2 :
    Place all the files under flownet2-pytorch-master to flownet2 folder. (Or you can simply rename flownet2-pytorch-master directory to flownet2 and place it directly on root directory)

Usage

Please refer to how_to_use.py for code examples

 # For predicting flow given 2 images
flow_controller.predict(im1, im2)

# For converting flow matrix(output of predict method) into image 
flow_controller.convert_flow_to_image(flow) 

# For converting videos located on disk to optical flow videos
flow_controller.convert_video_to_flow("cp77cinematic.mp4", "output", downsample_res=(320, 320)) 

About

This repository provides a wrapper with very easy usage for Nvidia's Flownet2 Implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages