-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dali Loader using a NamedTuple datatype instead of an array #5539
Comments
Hi @rachelglenn, Thank you for reaching out. I'm afraid that you may hit the DALI limitation, however, before we rule other issues out please share a simple code snip we can run on our end that will illustrate your approach and reproduce the problem. |
Here is what I can put together as an example. I hope that I didn't make any small typos
|
Hi @rachelglenn, Thank you for providing the code snippet. However, I get multiple errors running it. Can you please check it on your end? |
Yes, I am not surprised. I am not able to get it to work. This is why I am asking for help of how to use a named Tuple in the datatype for the pipeline. Can you help provide an example using:
|
I get errors not related to the issue you raised, for example:
After adding:
class model_data(namedtuple):
|
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
The text was updated successfully, but these errors were encountered: