-
Notifications
You must be signed in to change notification settings - Fork 630
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
ops.readers.Numpy how to return the filename #5790
Comments
Hi @rachelglenn, Thank you for reaching out.
|
I build my pipeline with a graph and have tried using either DALIGenericIterator, DALIRaggedIterator as the iterators. I am not able to get the filename. I have tried following this issue: ``import nvidia.dali as dali Define the DALI pipelineclass NumpyReaderPipeline(dali.Pipeline):
Define input parametersfiles = ["file1.npy", "file2.npy", "file3.npy"] # Example file paths Create the pipelinepipe = NumpyReaderPipeline(batch_size=batch_size, num_threads=num_threads, device_id=device_id, Build the pipelinepipe.build() Create a DALI Generic Iteratoriterator = DALIGenericIterator([pipe], output_map=["data", "source_info"], auto_reset=True) Run the pipeline and print the data and source info (filenames)for data in iterator:
`` |
I'm afraid the method mentioned is a property of the DALI tensor, not the Torch one, which is returned by the iterator. |
Thank you for the help and a possible work around. Do you know of any examples that use the external source operator? |
@rachelglenn have you checked this example? |
Describe the question.
Hi is there a way to return the filename of the loaded data or a way to get that information, when shuffle is turned on? Thanks in advance.
Check for duplicates
The text was updated successfully, but these errors were encountered: