NVIDIA/DALI

help, how to decode png byte numpy array that with shape [batch, length, image_byte]

Open

#4,017 建立於 2022年6月28日

在 GitHub 查看
 (2 留言) (0 反應) (1 負責人)C++ (670 fork)auto 404
external sourcehelp wanted

倉庫指標

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

描述

Hello, I am currently try to use external source method to read videos that are stored as a sequence of image frames (fixed length). However, it looks like the fn.decoders.image function only allows to decode data with shape [batch, image_byte]. Is there any way that I can modify the shape from [batch, length, image_byte] to [batch * length, image_byte] in define_graph section? Currently I cannot modify the ExternalSourceIterator class so I can only obtain png byte numpy array that with shape [batch, length, image_byte] and then I cannot find way to reshape data in nvidia.dali.pipeline.DataNode in define_graph function

貢獻者指南