Skip to content
Snippets Groups Projects
Commit 77e54248 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH
Browse files

[LightCNN9] improved docstrings

parent d3e1afb7
Branches
No related tags found
No related merge requests found
......@@ -65,19 +65,18 @@ class LightCNN9Extractor(Extractor):
Parameters
----------
image : 3D :py:class:`numpy.ndarray` (floats)
The image to extract the features from. Its size must be 3x128x128
image : 2D :py:class:`numpy.ndarray` (floats)
The grayscale image to extract the features from. Its size must be 128x128
Returns
-------
feature : 2D :py:class:`numpy.ndarray` (floats)
feature : :py:class:`numpy.ndarray` (floats)
The extracted features as a 1d array of size 320
"""
# torchvision.transforms expect a numpy array of size HxWxC
input_image = numpy.expand_dims(image, axis=2)
input_image = self.to_tensor(input_image)
input_image = self.norm(input_image)
input_image = input_image.unsqueeze(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment