Closed dyhan316 closed 1 year ago
Hi @dyhan316,
Thank you for reaching out.
Is this because the original code was using legacy codes? (for example, not decorating @pipeline_def and instead inheriting from the pipeline class?
It is just a warning, but DALI still supports this functionality/API. The issue you see is imgs, lbls
are expected to be a list of files while you replaced lbls
with the numpy array. What you can do it to save this test, zero value label into the disc, and return a list of the same length as the images but just with the path to this particular label file.
Thank you so much for your fast and detailed response!
Hello, I am trying to use this code from NVIDIA on our data to accelerate augmentation in the GPU ((link))
Using the dataloader here url
(the
get_dataloader_fn
was slightly modified to to our dataset, as the code below)With this modified code, I tried to load the data as follows :
However, when I ran it I got the following error :
Is this because the original code was using legacy codes? (for example, not decorating
@pipeline_def
and instead inheriting from the pipeline class?