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
cb8c4417
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "a210ec74d29ee718bca9b3c192e0a93cf86cbf21"
Unverified
Commit
cb8c4417
authored
Feb 02, 2023
by
Philip Meier
Committed by
GitHub
Feb 02, 2023
Browse files
fix docstring of CelebA regarding arrays (#7161)
parent
97ce7735
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
torchvision/datasets/celeba.py
torchvision/datasets/celeba.py
+3
-3
No files found.
torchvision/datasets/celeba.py
View file @
cb8c4417
...
@@ -23,10 +23,10 @@ class CelebA(VisionDataset):
...
@@ -23,10 +23,10 @@ class CelebA(VisionDataset):
or ``landmarks``. Can also be a list to output a tuple with all specified target types.
or ``landmarks``. Can also be a list to output a tuple with all specified target types.
The targets represent:
The targets represent:
- ``attr`` (
np.array
shape=(40,) dtype=int): binary (0, 1) labels for attributes
- ``attr`` (
Tensor
shape=(40,) dtype=int): binary (0, 1) labels for attributes
- ``identity`` (int): label for each person (data points with the same identity are the same person)
- ``identity`` (int): label for each person (data points with the same identity are the same person)
- ``bbox`` (
np.array
shape=(4,) dtype=int): bounding box (x, y, width, height)
- ``bbox`` (
Tensor
shape=(4,) dtype=int): bounding box (x, y, width, height)
- ``landmarks`` (
np.array
shape=(10,) dtype=int): landmark points (lefteye_x, lefteye_y, righteye_x,
- ``landmarks`` (
Tensor
shape=(10,) dtype=int): landmark points (lefteye_x, lefteye_y, righteye_x,
righteye_y, nose_x, nose_y, leftmouth_x, leftmouth_y, rightmouth_x, rightmouth_y)
righteye_y, nose_x, nose_y, leftmouth_x, leftmouth_y, rightmouth_x, rightmouth_y)
Defaults to ``attr``. If empty, ``None`` will be returned as target.
Defaults to ``attr``. If empty, ``None`` will be returned as target.
...
...
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