              file_info["original_filename"] = orig_filename
  
              face = DetectedFace()
              face.from_alignment(self._alignments.get_faces_in_frame(frame)[new_index])
              meta = dict(alignments=face.to_png_meta(),
                          source=dict(alignments_version=file_info["alignments_version"],
                                      original_filename=orig_filename,
                                      face_index=new_index,
                                      source_filename=frame,
                                      source_is_video=file_info["source_is_video"],
                                      source_frame_dims=file_info.get("source_frame_dims")))
              update_existing_metadata(fullpath, meta)
  
          logger.info("%s Extracted face(s) had their header information updated", len(to_update))
  
  
 
</s> remove         meta = dict(alignments=face.to_png_meta(), source=source_info)
 </s> add         meta = {"alignments": face.to_png_meta(), "source": source_info} </s> remove                          all_alignments: Dict[str, Dict[str, "AlignmentDict"]],
                         versions: Dict[str, float]) -> None:
 </s> add                          all_alignments: dict[str, dict[str, AlignmentDict]],
                         versions: dict[str, float]) -> None: </s> remove         raw_lines: List[List[str]] = []
        sorted_lines: List[List[str]] = []
 </s> add         raw_lines: list[list[str]] = []
        sorted_lines: list[list[str]] = [] </s> remove     def _handle_legacy(self, fullpath: str, log: bool = False) -> "PNGHeaderDict":
 </s> add     def _handle_legacy(self, fullpath: str, log: bool = False) -> PNGHeaderDict: </s> remove         filelist = cast(List[Tuple[str, "PNGHeaderDict"]], self._faces.file_list_sorted)
 </s> add         filelist = T.cast(list[tuple[str, "PNGHeaderDict"]], self._faces.file_list_sorted)
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
              file_info["original_filename"] = orig_filename
  
              face = DetectedFace()
              face.from_alignment(self._alignments.get_faces_in_frame(frame)[new_index])
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
            meta = {"alignments": face.to_png_meta(),
                    "source": {"alignments_version": file_info["alignments_version"],
                               "original_filename": orig_filename,
                               "face_index": new_index,
                               "source_filename": frame,
                               "source_is_video": file_info["source_is_video"],
                               "source_frame_dims": file_info.get("source_frame_dims")}}
              update_existing_metadata(fullpath, meta)
  
          logger.info("%s Extracted face(s) had their header information updated", len(to_update))
  
  
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
tools/alignments/jobs_faces.py