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
c94ea5ff
Commit
c94ea5ff
authored
Sep 08, 2017
by
Alykhan Tejani
Committed by
Francisco Massa
Sep 08, 2017
Browse files
update docs for nrows param in make_grid (#250)
parent
dd53c974
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/utils.py
torchvision/utils.py
+2
-2
No files found.
torchvision/utils.py
View file @
c94ea5ff
...
@@ -10,8 +10,8 @@ def make_grid(tensor, nrow=8, padding=2,
...
@@ -10,8 +10,8 @@ def make_grid(tensor, nrow=8, padding=2,
Args:
Args:
tensor (Tensor or list): 4D mini-batch Tensor of shape (B x C x H x W)
tensor (Tensor or list): 4D mini-batch Tensor of shape (B x C x H x W)
or a list of images all of the same size.
or a list of images all of the same size.
nrow (int, optional): Number of
rows in grid. Final grid size is
nrow (int, optional): Number of
images displayed in each row of the grid.
(B / nrow, nrow). Default is 8.
The Final grid size is
(B / nrow, nrow). Default is 8.
padding (int, optional): amount of padding. Default is 2.
padding (int, optional): amount of padding. Default is 2.
normalize (bool, optional): If True, shift the image to the range (0, 1),
normalize (bool, optional): If True, shift the image to the range (0, 1),
by subtracting the minimum and dividing by the maximum pixel value.
by subtracting the minimum and dividing by the maximum pixel value.
...
...
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