          keyframes: list
              A list of frame indices corresponding to the key frames in the input video
          """
          logger.info("Saving video meta information to Alignments file")
          for idx, key in enumerate(sorted(self.data)):
              meta = dict(pts_time=pts_time[idx],
                          keyframe=idx in keyframes)
              self.data[key]["video_meta"] = meta
          self.save()
  
      # << VALIDATION >> #
  
      def frame_exists(self, frame_name):
 
</s>
        for idx, pts in enumerate(pts_time):
            meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = "{}_{:06d}.png".format(basename, idx + 1)
            if key not in self.data:
                self.data[key] = dict(video_meta=meta, faces=[])
            else:
                self.data[key]["video_meta"] = meta
          keyframes: list
              A list of frame indices corresponding to the key frames in the input video
          """
          logger.info("Saving video meta information to Alignments file")
        for idx, pts in enumerate(pts_time):
            meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = "{}_{:06d}.png".format(basename, idx + 1)
            if key not in self.data:
                self.data[key] = dict(video_meta=meta, faces=[])
            else:
                self.data[key]["video_meta"] = meta
        for idx, pts in enumerate(pts_time):
            meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = "{}_{:06d}.png".format(basename, idx + 1)
            if key not in self.data:
                self.data[key] = dict(video_meta=meta, faces=[])
            else:
                self.data[key]["video_meta"] = meta
        for idx, pts in enumerate(pts_time):
            meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = "{}_{:06d}.png".format(basename, idx + 1)
            if key not in self.data:
                self.data[key] = dict(video_meta=meta, faces=[])
            else:
                self.data[key]["video_meta"] = meta
        for idx, pts in enumerate(pts_time):
            meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = "{}_{:06d}.png".format(basename, idx + 1)
            if key not in self.data:
                self.data[key] = dict(video_meta=meta, faces=[])
            else:
                self.data[key]["video_meta"] = meta
          self.save()
  
      # << VALIDATION >> #
  
      def frame_exists(self, frame_name):
keep keep keep keep replace replace replace replace keep keep keep keep keep
 lib.alignments - Update video meta data to handle training alignments files/frame ranges
lib/alignments.py