Does ROI crop availible on GPU?
Describe the question.
I'm working on a project that requires applying different Region of Interest (ROI) cropping to each image within a batch. However, after reviewing the issues and documentation ( #5366, resize_crop_mirror resize crop ), I've found that the current cropping functions only support applying the same cropping parameters to all images within a batch. Additionally, some functions that offer random cropping are documented as they only operate on the CPU.
Is it possible to implement the operation I need on the GPU?
Check for duplicates
- [x] I have searched the open bugs/issues and have found no duplicates for this bug report
Hi @TsingWei,
Thank you for reaching out. I'm not sure how you want to generate the cropping window but with DALI you have several options:
- you can use this ROI generator or this, and then pass it to the 'slice` operator
- use can use this operator which does both mentioned steps internally
- you can create your own, custom operator that generates the ROI and pass the coordinates to the 'slice` operator
Hi @TsingWei,
Thank you for reaching out. I'm not sure how you want to generate the cropping window but with DALI you have several options:
- you can use this ROI generator or this, and then pass it to the 'slice` operator
- use can use this operator which does both mentioned steps internally
- you can create your own, custom operator that generates the ROI and pass the coordinates to the 'slice` operator