Feat: item transform random resize crop - #386
Conversation
|
|
cregouby
left a comment
There was a problem hiding this comment.
praise Thanks for this contribution!
| item_transform_random_resize_crop <- function(x, size, scale = c(0.08, 1.0), | ||
| ratio = c(3. / 4., 4. / 3.), |
There was a problem hiding this comment.
todo "1.0" and "3. / 4." have no sense in R. Please use "1" and "3/4"
| item_transform_random_resize_crop.dataset <- function(x, size, scale = c(0.08, 1.0), | ||
| ratio = c(3. / 4., 4. / 3.), |
| item_transform_random_resize_crop.image_with_rotated_box <- function(x, size, scale = c(0.08, 1.0), | ||
| ratio = c(3. / 4., 4. / 3.), | ||
| interpolation = 2) { | ||
| item_transform_random_resize_crop.image_with_bounding_box( | ||
| x, size = size, scale = scale, ratio = ratio, interpolation = interpolation | ||
| ) | ||
| } |
There was a problem hiding this comment.
todo could be simplified into
| item_transform_random_resize_crop.image_with_rotated_box <- function(x, size, scale = c(0.08, 1.0), | |
| ratio = c(3. / 4., 4. / 3.), | |
| interpolation = 2) { | |
| item_transform_random_resize_crop.image_with_bounding_box( | |
| x, size = size, scale = scale, ratio = ratio, interpolation = interpolation | |
| ) | |
| } | |
| item_transform_random_resize_crop.image_with_rotated_box <-item_transform_random_resize_crop.image_with_bounding_box |
Closes #361
Adds
item_transform_random_resize_crop(), covering object detection item, object detection dataset, semantic segmentation item and semantic segmentation dataset.