sldl.video¶
Module contents¶
- class VideoSR(model_name='BSRGAN', precision='full')[source]¶
Bases:
ModuleVideo Super-Resolution
Takes an image and increases its resoulution by some factor. Currently supports SwinIR, BSRGAN, and VRT models.
- Parameters:
Example:
from sldl.video import VideoSR sr = VideoSR('BSRGAN').cuda() sr('your_video.mp4', 'upscaled_video.mp4')
- property device¶
- class VideoDenoising(model_name='SwinIR', noise=15, precision: str = 'full')[source]¶
Bases:
ModuleVideo Denoising
Takes a noisy video and removes the noise from it. Currently supports only SwinIR that is applied to a video frame-by-frame.
- Parameters:
Example:
from sldl.video import VideoDenoising denoiser = VideoDenoising('BSRGAN').cuda() sr('your_video.mp4', 'denoised_video.mp4')
- class VideoInterpolation(model_name: str = 'IFRNet-Vimeo')[source]¶
Bases:
ModuleVideo Interpolation
Takes an image and increases the FPS. Currently supports only IFRNet trained on Vimeo90K an GoPro datasets and only x2 FPS increasing.
- Parameters:
model_name (str) – Name of the pre-trained model. Can be one of the IFRNet-Vimeo and IFRNet-GoPro. Default: IFRNet-Vimeo.
Example:
from sldl.video import VideoInterpolation interpolator = VideoInterpolation('IFRNet-Vimeo').cuda() interpolator('your_video.mp4', 'interpolated_video.mp4')
- property device¶