Closed SingL3 closed 1 year ago
Hi @SingL3, thanks for reporting the issue. I think it is related to the DALI TRITON Backend. I will transfer this issue there, as DALI backend engineers can better answer related issues.
Hello @SingL3 !
For the fn.resize
operator, data layout matters. Your input data has CHW
layout, while by default Resize works on HWC
layout. To properly use it, you shall set the layout of input data. Changing this line:
images = dali.fn.external_source(device="cpu", name="DALI_INPUT_1", layout='CHW')
should do the trick.
Cheers!
Without the @szalpal correction, you are attempting to enlarge a 3x512 image with 512 channels to 224x224 with 512 channels.
Thank you for your replies. That really works.
Description Unexpected large memory needed for gpu resize
Triton Information 2.32.0
Are you using the Triton container or did you build it yourself? yes
To Reproduce I am using a dali backend to process decoded images. I try to resize and crop images on gpu. i try this:
My input is a FP32 tensor with shape (256, 3, 512, 512) and I got this error when inference:
4489633333248B(4181.3 GB) is so big. Here the input only takes 0.75GB. Expected behavior Only small gpu memory is used.