Spaces:
Runtime error
Runtime error
use decord
#15
by
pravdomil
- opened
https://github.com/dmlc/decord
import decord
reader = decord.VideoReader(cfg.input_path)
image = reader.next().asnumpy()
tensor_image = src.img_util.numpy2tensor(input_image)