          self.read_alignments()
          for filename in tqdm(self.read_directory()):
              image = cv2.imread(filename)
  
              if self.have_face(filename):
                  faces = self.get_faces_alignments(filename, image)
              else:
                  faces = self.get_faces(image)
              yield filename, image, faces
 
</s>
            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
          self.read_alignments()
          for filename in tqdm(self.read_directory()):
              image = cv2.imread(filename)
  
            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
            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
              else:
                  faces = self.get_faces(image)
              yield filename, image, faces
keep keep keep keep replace replace keep keep keep
 Skip images that arent in the alignments.json
scripts/convert.py