Skip to content

Grid and cutout dropout - Resolved copilot review comments#566

Merged
r-abishek merged 1 commit intor-abishek:ar/dropout_grid_cutoutfrom
RooseweltMcW:apr/grid_cutout_dropout
Feb 25, 2026
Merged

Grid and cutout dropout - Resolved copilot review comments#566
r-abishek merged 1 commit intor-abishek:ar/dropout_grid_cutoutfrom
RooseweltMcW:apr/grid_cutout_dropout

Conversation

@RooseweltMcW
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses previous Copilot review comments for the grid and cutout dropout functionality. The changes primarily fix boundary calculation issues, prevent zero-value dimensions, correct buffer allocations, and add documentation images for the dropout augmentations.

Changes:

  • Fixed bounding box calculations to use inclusive right-bottom coordinates (subtract 1.0f) and changed minimum x_start/y_start from 1.0f to 0.0f
  • Added protection against zero-value dimensions in grid dropout by using std::max(1u, ...) for cell and hole dimensions
  • Corrected colorBuffer allocation to account for all color channels (multiplied by srcDescPtr->c)
  • Replaced implicit totalBoxes variable with explicit calculation (srcDescPtr->n * boxesInEachImage) for clarity
  • Improved API documentation for cutout_dropout parameter descriptions
  • Added sample output images for grid_dropout, cutout_dropout, and channel_dropout augmentations

Reviewed changes

Copilot reviewed 4 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
utilities/test_suite/rpp_test_suite_image.h Fixed bounding box calculations in init_dropout_erase (0.0f min, -1.0f for inclusive bounds) and added std::max(1u, ...) protections in init_grid_dropout
utilities/test_suite/HIP/Tensor_image_hip.cpp Corrected colorBuffer allocation to multiply by srcDescPtr->c for per-channel color values
src/modules/tensor/hip/kernel/grid_dropout.cpp Replaced implicit totalBoxes with explicit srcDescPtr->n * boxesInEachImage for clarity
api/rppt_tensor_effects_augmentations.h Enhanced documentation clarity for anchorBoxInfoTensor, colorsTensor, and numBoxesTensor parameters
docs/data/doxygenOutputs/effects_augmentations_gird_dropout_img150x150.png Added sample output image (contains filename spelling error: "gird" should be "grid")
docs/data/doxygenOutputs/effects_augmentations_cutout_dropout_img150x150.png Added sample output image for cutout_dropout
docs/data/doxygenOutputs/effects_augmentations_channel_dropout_img150x150.png Added sample output image for channel_dropout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread api/rppt_tensor_effects_augmentations.h
@r-abishek r-abishek merged commit e2463e3 into r-abishek:ar/dropout_grid_cutout Feb 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor fix Minor implementation fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants