Skip to content

Commit

Permalink
test affine operations
Browse files Browse the repository at this point in the history
  • Loading branch information
barucden committed Aug 7, 2021
1 parent 8bcc42b commit f24c5ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/tst_augment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,13 @@ end
@test aug_mask1 == aug_mask2
end
end

@testset "affine operations do not fail" begin
ops = [FlipX(), NoOp(), Rotate(15), Rotate180(), Scale(1.2), ShearX(5)]
img = camera
sws = [Augmentor.Mask(img .> 0.5)]
for op in ops, sw in sws
@test_nowarn augment((img, sw), op)
end
end
end

0 comments on commit f24c5ae

Please sign in to comment.