Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
8b6c5e74
Unverified
Commit
8b6c5e74
authored
May 20, 2024
by
Jack Newsom
Committed by
GitHub
May 20, 2024
Browse files
Fix typo at `permutate_channels` (#8429)
parent
947ae1dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/transforms/v2/functional/_color.py
torchvision/transforms/v2/functional/_color.py
+1
-1
No files found.
torchvision/transforms/v2/functional/_color.py
View file @
8b6c5e74
...
...
@@ -687,7 +687,7 @@ def permute_channels(inpt: torch.Tensor, permutation: List[int]) -> torch.Tensor
Example:
>>> rgb_image = torch.rand(3, 256, 256)
>>> bgr_image = F.permut
at
e_channels(rgb_image, permutation=[2, 1, 0])
>>> bgr_image = F.permute_channels(rgb_image, permutation=[2, 1, 0])
Args:
permutation (List[int]): Valid permutation of the input channel indices. The index of the element determines the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment