Replies: 1 comment
-
@yxchng for performance, the early transforms that are handed by Pillow (I always use the SIMD version!) are fairly efficient in uint8 mode. The goal is to move the image onto the GPU in uint8 and then convert to float32/float16 (which is done as part of the normalization). Random erasing should be done after norm for proper centering and current impl works well on GPU. This balanced the CPU vs GPU use well. If you want to add new transforms, consider if it makes sense to do on the CPU w/ Pillow or other ops while it's still in uint8. If you need float and the transforms can utilize the GPU I'd put them in the prefetcher. I'm currently working on some variations of this in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just curious, how do you decide what transformations/augmentations are done in data prefetcher and what are not? Understanding this will help me to decide where to put my extra transformations. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions