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

[test] added test units

parent 16f7a8be
No related branches found
No related tags found
No related merge requests found
import pkg_resources
import numpy
numpy.random.seed(10)
import os
def test_cnn8():
from . import CNN8Extractor
extractor = CNN8Extractor()
# this architecture expects 3x128x128 images
data = numpy.random.rand(3, 128, 128).astype("float32")
output = extractor(data)
assert output.shape[0] == 512
def test_casianet():
from . import CasiaNetExtractor
extractor = CasiaNetExtractor()
# this architecture expects 3x128x128 images
data = numpy.random.rand(3, 128, 128).astype("float32")
output = extractor(data)
assert output.shape[0] == 320
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment