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

[test] added docstring in tests

parent abee8d3b
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -5,17 +5,23 @@ import os ...@@ -5,17 +5,23 @@ import os
def test_cnn8(): def test_cnn8():
""" test for the CNN8 architecture
this architecture takes 3x128x128 images as input
output an embedding of dimension 512
"""
from . import CNN8Extractor from . import CNN8Extractor
extractor = CNN8Extractor() extractor = CNN8Extractor()
# this architecture expects 3x128x128 images
data = numpy.random.rand(3, 128, 128).astype("float32") data = numpy.random.rand(3, 128, 128).astype("float32")
output = extractor(data) output = extractor(data)
assert output.shape[0] == 512 assert output.shape[0] == 512
def test_casianet(): def test_casianet():
""" test for the CasiaNet architecture
this architecture takes 3x128x128 images as input
output an embedding of dimension 320
"""
from . import CasiaNetExtractor from . import CasiaNetExtractor
extractor = CasiaNetExtractor() extractor = CasiaNetExtractor()
# this architecture expects 3x128x128 images # this architecture expects 3x128x128 images
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment