DALI icon indicating copy to clipboard operation
DALI copied to clipboard

Post-processing with Nvidia Dali

Open justlike-prog opened this issue 3 years ago • 1 comments

Hi, I was looking for a way where I could augment an image right after getting it back form the inference still on the GPU. To be more precise I would like to have a way to pass a Tensor to a blurring function and do the blurring on the GPU.

I saw that Nvidia Dali is capable of doing such a thing when it comes to preprocessing. How would that work if I would do postprocessing?

justlike-prog avatar Apr 21 '22 12:04 justlike-prog

Hi @justlike-prog,

It is possible. You can use the external source operator to feed raw data into the DALI pipeline. In your case, you can disable pipelining and prefetching as you probably want to process samples as they appear.

If you are using TRITON, there is a dedicated DALI backend that would handle data passing from the model, and all you have to do is just define the postprocessing flow.

JanuszL avatar Apr 21 '22 13:04 JanuszL