You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Follow-up on #2082 where the YOLOv3 and YOLOv5 estimators supported in PyTorch require images to be shaped accordingly in an appropriate size (e.g., 416x416). Prior to resizing the images and bounding boxes, they also need to be padded to a square shape in order to preserve the aspect ratio. Therefore, in addition to the resizing preprocessor, a square padding preprocessor will also be created. This will work for both classification and object detection classes where the bounding boxes are adjusted accordingly.
Describe the solution you'd like
In the new module art.preprocessor.image will, this square padding preprocessor will be implemented. This preprocessor object will be instantiated to pad all images to a square shape based on the current height and width and shift the bounding boxes by the padding. This preprocessor will be compatible with both classification and object detection with the only difference being that it will adjust bounding boxes if they are provided.
Describe alternatives you've considered
Similar to the in-progress resizing preprocessor, this square padding preprocessor can be implemented directly under art.preprocessing, but creating the image submodule will help future-proof for any additional non-EOT preproccesord that will be implemented.
Additional context
This issue will also be worked on in conjunction with #2082
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Follow-up on #2082 where the YOLOv3 and YOLOv5 estimators supported in PyTorch require images to be shaped accordingly in an appropriate size (e.g., 416x416). Prior to resizing the images and bounding boxes, they also need to be padded to a square shape in order to preserve the aspect ratio. Therefore, in addition to the resizing preprocessor, a square padding preprocessor will also be created. This will work for both classification and object detection classes where the bounding boxes are adjusted accordingly.
Describe the solution you'd like
In the new module
art.preprocessor.image
will, this square padding preprocessor will be implemented. This preprocessor object will be instantiated to pad all images to a square shape based on the current height and width and shift the bounding boxes by the padding. This preprocessor will be compatible with both classification and object detection with the only difference being that it will adjust bounding boxes if they are provided.Describe alternatives you've considered
Similar to the in-progress resizing preprocessor, this square padding preprocessor can be implemented directly under
art.preprocessing
, but creating theimage
submodule will help future-proof for any additional non-EOT preproccesord that will be implemented.Additional context
This issue will also be worked on in conjunction with #2082
The text was updated successfully, but these errors were encountered: