Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vedacls/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def apply(self, img, offset=(0, 0, 0, 0), **params):
x_max = params['cols'] - offset[2]
y_max = params['rows'] - offset[3]

return F.crop(img, x_min=x_min, y_min=y_min, x_max=x_max, y_max=y_max)
return img[y_min:y_max, x_min=x_max, :]

def get_transform_init_args_names(self):
return ('shift_factor',)
Expand Down