Dali Loader using a NamedTuple datatype instead of an array
@JanuszL is already working on this.
Since Jun 25, 2024.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.