Skip to content

Commit

Permalink
Update docs for BaseGenerator (#48)
Browse files Browse the repository at this point in the history
* BaseGenerator.py: Fix documentation of function get_images().

Fix dimensions of __doc__ attribute from (1, height, width, n_channels) to (n_indexes, height, width, n_channels).

* BaseGenerator.py: Fix documentation of function get_keypoints().

Fix dimensions of __doc__ attribute from (1, n_keypoints, 2) to (n_indexes, n_keypoints, 2).

* BaseGenerator.py: Fix documentation of function get_images().

Fix dimensions of __doc__ attribute from (n_indexes, height, width, n_channels) to (n_samples, height, width, n_channels).

* BaseGenerator.py: Fix documentation of function get_keypoints().

Fix dimensions of __doc__ attribute from (n_indexes, n_keypoints, 2) to (n_samples, n_keypoints, 2).
  • Loading branch information
urs-waldmann committed Apr 17, 2020
1 parent 7bfc3dd commit 94b8390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepposekit/io/BaseGenerator.py
Expand Up @@ -74,7 +74,7 @@ def get_images(self, indexes):
Takes a list or array of indexes corresponding
to image-keypoint pairs in the dataset.
Returns a numpy array of images with the shape:
(1, height, width, n_channels)
(n_samples, height, width, n_channels)
"""
raise NotImplementedError()

Expand All @@ -83,7 +83,7 @@ def get_keypoints(self, indexes):
Takes a list or array of indexes corresponding to
image-keypoint pairs in the dataset.
Returns a numpy array of keypoints with the shape:
(1, n_keypoints, 2), where 2 is the x,y coordinates
(n_samples, n_keypoints, 2), where 2 is the x,y coordinates
"""
raise NotImplementedError()

Expand Down

0 comments on commit 94b8390

Please sign in to comment.