sketchkit.animation.RIFE package¶
Submodules¶
sketchkit.animation.RIFE.RIFE module¶
- class sketchkit.animation.RIFE.RIFE.RIFE(device: str = 'cuda')[source]¶
Bases:
objectA class for sketch animation using the method of paper “Real-Time Intermediate Flow Estimation for Video Frame Interpolation” in ECCV 2022.
- device¶
The device that is used.
- Type:
str
- run(input_image_list: list[ndarray], inner_frames: int) list[ndarray][source]¶
Generate sketch animation or inbetweening for a list of keyframes.
- Parameters:
input_image_list (list[numpy.ndarray]) – a list of keyframes in shape (H, W, 3), with values in [0, 255].
inner_frames (int) – number of intermediate frames.
- Returns:
a list of image frames in size H*W*3 in [0, 255].
- Return type:
frame_list (list[numpy.ndarray])
Module contents¶
- class sketchkit.animation.RIFE.RIFE(device: str = 'cuda')[source]¶
Bases:
objectA class for sketch animation using the method of paper “Real-Time Intermediate Flow Estimation for Video Frame Interpolation” in ECCV 2022.
- device¶
The device that is used.
- Type:
str
- run(input_image_list: list[ndarray], inner_frames: int) list[ndarray][source]¶
Generate sketch animation or inbetweening for a list of keyframes.
- Parameters:
input_image_list (list[numpy.ndarray]) – a list of keyframes in shape (H, W, 3), with values in [0, 255].
inner_frames (int) – number of intermediate frames.
- Returns:
a list of image frames in size H*W*3 in [0, 255].
- Return type:
frame_list (list[numpy.ndarray])