Commit b2044c7f authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Attempt to make the __call__/serialization work

parent 3fecd074
Pipeline #39970 failed with stage
in 13 minutes and 57 seconds
......@@ -153,7 +153,6 @@ class FaceNet(object):
self.loaded = True
def __call__(self, img):
# with _semaphore:
images = self._check_feature(img)
if not self.loaded:
......@@ -194,8 +193,6 @@ class FaceNet(object):
def __getstate__(self):
# Handling unpicklable objects
# with _semaphore:
# self._clean_unpicklables()
self.loaded = False
d = self.__dict__
d.pop("session") if "session" in d else None
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