egorchistov/deblurring-tsrn-rtvd
0
TSRN-RTVD: Real-Time Video Deblurring System
Install package:
pip install git+https://github.com/msu-video-group/tsrn-rtvdThen use it as you like:
import numpy as np
from tsrn_rtvd import TSRNRTVD
model = TSRNRTVD.from_pretrained("egorchistov/deblurring-tsrn-rtvd", device="cuda")
first = np.zeros((720, 1280, 3), dtype=np.uint8)
next_frame = np.zeros((720, 1280, 3), dtype=np.uint8)
model.reset(first)
result = model.process_next(next_frame)
deblurred_bgr = result.output_bgr