NVIDIA / NVIDIA/DALI

Dali Loader using a NamedTuple datatype instead of an array

Open
#5,539 5 comments 0 reactions 1 assignee View on GitHub

@JanuszL is already working on this.

Since Jun 25, 2024.

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

Description

Describe the question.

I am following the example for external input to the dali loader. My datatype going to my model is a NamedTuple. When I try to create the dataloader:
dataloader = DALIGenericIterator(pipeline, ["image"])
I get an error associated with my NamedTuple type:
TypeError: Illegal pipeline output type. The output 0 contains a nested DataNode. Missing list/tuple expansion (*) is the likely cause.

I am not sure how the Dali loader can accept a NamedTuple type. Is it possible? I am not sure what to put for the second argument in the creation of the dataloader iterator (DALIGenericIterator).

Thanks for the help.

Check for duplicates
  • I have searched the open bugs/issues and have found no duplicates for this bug report

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.