NVIDIA/DALI

Question on video loading

Open

#3,907 建立於 2022年5月16日

在 GitHub 查看
 (14 留言) (0 反應) (1 負責人)C++ (670 fork)auto 404
PyTorch LightningVideohelp wanted

倉庫指標

Star
 (5,722 star)
PR 合併指標
 (PR 指標待抓取)

描述

@JanuszL and team hope you're doing OK. I have a pytorch video model that assumes each batch element is a five-frame video sequence around a frame at index ind, i.e., [ind-2, ind-1, ind, ind+1, ind+2]. Now, I need to pass a batch of such sequences to that model, ie.,

seqs = []
for ind in range(batch_size):
    seq = # images [ind-2, ind-1, ind, ind+1, ind+2]
    seqs.append(seq)

I have a vision of how to do this in pytorch after getting the sequence from DALI. is there a simpler way to do this in DALI?

貢獻者指南