NVIDIA / NVIDIA/DALI

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

Open
#4,017 2 comments 0 reactions 1 assignee View on GitHub

@szalpal is already working on this.

Since Jun 28, 2022.

external source help wanted
Dominant language
C++
Stars
5.8k
Forks
678
Avg merge
3d 1h
Merged PRs (30d)
27

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.