Skip to content

Commit

Permalink
Bugfix: Manual Tool - Strip mask from adjusted faces
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Oct 28, 2019
1 parent ef49d12 commit fb77f03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/lib_alignments/jobs_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,10 +781,10 @@ def __init__(self, interface, loglevel):
def init_extractor(self):
""" Initialize Aligner """
logger.debug("Initialize Extractor")
extractor = Extractor("manual", "fan", "none", multiprocess=True, normalize_method="hist")
extractor = Extractor("manual", "fan", None, multiprocess=True, normalize_method="hist")
self.queues["in"] = extractor.input_queue
# Set the batchsizes to 1
for plugin_type in ("detect", "align", "mask"):
for plugin_type in ("detect", "align"):
extractor.set_batchsize(plugin_type, 1)
extractor.launch()
logger.debug("Initialized Extractor")
Expand Down Expand Up @@ -923,6 +923,8 @@ def update_landmarks(self):
"manual_face": self.media["bounding_box"]})
detected_face = next(self.extractor.detected_faces())["detected_faces"][0]
alignment = detected_face.to_alignment()
# Mask will now be incorrect for updated landmarks so delete
alignment["mask"] = dict()

frame = self.media["frame_id"]

Expand Down

0 comments on commit fb77f03

Please sign in to comment.