Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

CAIN

Input

(Image from Vimeo-90K dataset http://data.csail.mit.edu/tofu/dataset/vimeo_septuplet.zip)

Output

Usage

Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.

For the sample images,

$ python3 cain.py

If you want to specify the input image, put the first image path after the --input option, and the next image path after the --input2 option.
You can use --savepath option to change the name of the output file to save.

$ python3 cain.py --input IMAGE_PATH1 --input2 IMAGE_PATH2 --savepath SAVE_IMAGE_PATH

The --input option can also specify the directory path where the images are located.

$ python3 cain.py --input DIR_PATH

By adding the --video option, you can input the video.
If you pass 0 as an argument to VIDEO_PATH, you can use the webcam input instead of the video file.

$ python3 cain.py --video VIDEO_PATH --savepath SAVE_VIDEO_PATH

You can set output video size using -hw option.

$ python3 cain.py -hw 256,448

Reference

Framework

Pytorch

Model Format

ONNX opset=11

Netron

cain.onnx.prototxt