Skip to content

Commit 0943de0

Browse files
authored
Minor corrections
1 parent 71e4c56 commit 0943de0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/prototype/transforms/_augment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _get_params(self, sample: Any) -> Dict[str, Any]:
5555

5656
if value is not None and not (len(value) in (1, img_c)):
5757
raise ValueError(
58-
"If value is a sequence, it should have either a single value or " f"{img_c} (number of input channels)"
58+
f"If value is a sequence, it should have either a single value or {img_c} (number of input channels)"
5959
)
6060

6161
area = img_h * img_w

torchvision/prototype/transforms/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(
3434
interpolation: InterpolationMode = InterpolationMode.BILINEAR,
3535
) -> None:
3636
super().__init__()
37-
self.size = [size, size] if isinstance(size, int) else list(size)
37+
self.size = [size] if isinstance(size, int) else list(size)
3838
self.interpolation = interpolation
3939

4040
def _transform(self, input: Any, params: Dict[str, Any]) -> Any:

0 commit comments

Comments
 (0)