Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
check scipy available in rotate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Sep 18, 2018
1 parent 0904ec7 commit 8916b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chainercv/transforms/image/rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ def rotate(img, angle, expand=True):
"""

_check_available()

assert 180 >= angle >= -180
return scipy.ndimage.rotate(img, angle, axes=(2, 1), reshape=expand)

0 comments on commit 8916b04

Please sign in to comment.