-
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
Help wanted: Runtime error using Numpy readers: Unknown Numpy type string. #4744
Comments
Hi @omar-valerio, It seems that the file format you use is not supported by DALI. Is there any chance you can share a toy file (not necessarily with the real data) that reproduces this problem so we can examine it? |
Hi @JanuszL , Thanks. I'm attaching one of the *.npy files (compressed as zip). Loading the files directly with numpy works.
output:
|
Hi @omar-valerio, The bool is not supported by the numpy reader operator. #4745 PR should enable it. |
Hi @JanuszL , Thank you very much for the swift response. Unfortunately, I'm not familiar with tracking the PR. I ran the following command and I believe there is a nightly build from yesterday (1.25.0.dev20230327). Is this the one with the bool support?
|
Hi @omar-valerio, It hasn't been merged yet, will let you know when the build is available. |
@omar-valerio - the latest nightly build ( |
Hi @JanuszL - I just installed the nightly build and I'm able to read the numpy files. I noticed that I had to cast to FLOAT so that the PyTorch DaliGenericIterator can use my pipeline. I am posting the code for future reference. Thanks.
My output:
|
There is another PR that has just been merged that should enable bools for Torch integration. I should be available in the next nightly build. |
Hi DALI Team,
I am following the example to read files containing numpy arrays given as a file list inside a text file. I got the following runtime error message:
The text was updated successfully, but these errors were encountered: