Closed agilests closed 1 year ago
me too ,same problems
you may use torchvision.io.read_video
as an alternative of decord
, see an example below.
frames, _, _ = torchvision.io.read_video(str(self.video_path), output_format="TCHW")
sample_indices = list(range(self.sample_start_idx, len(frames), self.sample_frame_rate))[:self.n_sample_frames]
frames = frames[sample_indices].type(torch.float32)
video = torch.stack(frames)
pip3 install -r requirement.txt error like:
The decord library has no arm adaptation, Is there an alternative library? https://pypi.tuna.tsinghua.edu.cn/simple/decord/