Skip to content

Commit

Permalink
Fixed preprocessing rotation bug. Fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
sampepose committed Apr 15, 2018
1 parent 0fc1785 commit 18f8708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/preprocessing/kernels/augmentation_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void AugmentationLayerBase::generate_valid_spatial_coeffs(

// rotate
x2 = cos(coeff.angle()) * x1 - sin(coeff.angle()) * y1;
y2 = sin(coeff.angle()) * x1 + sin(coeff.angle()) * y1;
y2 = sin(coeff.angle()) * x1 + cos(coeff.angle()) * y1;

// translate
x2 = x2 + coeff.dx() * out_width;
Expand Down

0 comments on commit 18f8708

Please sign in to comment.