Commit a30d0f6e authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[py] Feature is a numpy array instead of a list

Bypassed the assert of feature needing to be a list of gabor-jet.
(Allowed numpy.ndarray)
parent 96ce339b
Pipeline #37985 failed with stage
in 15 minutes and 34 seconds
...@@ -112,7 +112,8 @@ class GaborJet (Algorithm): ...@@ -112,7 +112,8 @@ class GaborJet (Algorithm):
def _check_feature(self, feature): def _check_feature(self, feature):
assert isinstance(feature, list) # import ipdb; ipdb.set_trace()
assert isinstance(feature, list) or isinstance(feature, numpy.ndarray)
assert len(feature) assert len(feature)
assert all(isinstance(f, bob.ip.gabor.Jet) for f in feature) assert all(isinstance(f, bob.ip.gabor.Jet) for f in feature)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment