  
      def prepare_images(self):
          self.read_alignments()
          for filename in tqdm(self.read_directory()):
              image = cv2.imread(filename)
  
              if is_have_alignments:
                  if self.have_face(filename):
 
</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
        is_have_alignments = self.have_alignments()
  
      def prepare_images(self):
          self.read_alignments()
        is_have_alignments = self.have_alignments()
          for filename in tqdm(self.read_directory()):
              image = cv2.imread(filename)
  
              if is_have_alignments:
                  if self.have_face(filename):
keep keep add keep keep keep keep keep
 Skip images that arent in the alignments.json 
scripts/convert.py