  
      def have_face(self, filename):
          return filename in self.faces_detected
  
      def get_faces_alignments(self, filename, image):
          faces_count = 0
          faces = self.faces_detected[os.path.basename(filename)]
          for rawface in faces:
 
</s> remove             if self.have_face(filename):
                faces = self.get_faces_alignments(filename, image)
 </s> add             if is_have_alignments:
                if self.have_face(filename):
                    faces = self.get_faces_alignments(filename, image)
                else:
                    print ('no alignment found for {}, skipping'.format(os.path.basename(filename)))
                    continue
    def have_alignments(self):
        fn = os.path.join(str(self.arguments.input_dir), "alignments.{}".format(self.serializer.ext))
        return os.path.exists(fn)

  
      def have_face(self, filename):
          return filename in self.faces_detected
  
    def have_alignments(self):
        fn = os.path.join(str(self.arguments.input_dir), "alignments.{}".format(self.serializer.ext))
        return os.path.exists(fn)

      def get_faces_alignments(self, filename, image):
          faces_count = 0
          faces = self.faces_detected[os.path.basename(filename)]
          for rawface in faces:
keep keep keep add keep keep keep keep
 Skip images that arent in the alignments.json 
lib/cli.py