Skip to content

Commit

Permalink
fix lint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Parskatt committed Feb 5, 2024
1 parent 159d577 commit ce63420
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torchvision/transforms/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,9 @@ def _get_perspective_coeffs(startpoints: List[List[int]], endpoints: List[List[i
octuple (a, b, c, d, e, f, g, h) for transforming each pixel.
"""
if len(startpoints) != 4 or len(endpoints) != 4:
raise ValueError(f"Please provide exactly four corners, got {len(startpoints)} startpoints and {len(endpoints)} endpoints.")
raise ValueError(
f"Please provide exactly four corners, got {len(startpoints)} startpoints and {len(endpoints)} endpoints."
)
a_matrix = torch.zeros(2 * len(startpoints), 8, dtype=torch.float64)

for i, (p1, p2) in enumerate(zip(endpoints, startpoints)):
Expand Down

0 comments on commit ce63420

Please sign in to comment.