      logger.trace("Scanned Folder Contents: %s", dir_scanned)
  
      for chkfile in dir_scanned:
          if any(chkfile.name.lower().endswith(ext) for ext in image_extensions):
              logger.trace("Adding '%s' to image list", chkfile.path)
              dir_contents.append(chkfile.path)
  
      logger.debug("Returning %s images", len(dir_contents))
      return dir_contents
  
 
</s> remove     logger.trace("Scanned Folder Contents: %s", dir_scanned)
 </s> add     logger.trace("Scanned Folder Contents: %s", dir_scanned)  # type:ignore </s> remove def convert_to_secs(*args):
 </s> add def get_dpi() -> float:
    """ Obtain the DPI of the running screen.

    Returns
    -------
    int
        The obtain dots per inch of the running monitor
    """
    root = tk.Tk()
    dpi = root.winfo_fpixels('1i')
    return float(dpi)


def convert_to_secs(*args: int) -> int: </s> remove     def _download_model(self):
 </s> add     def _download_model(self) -> None: </s> remove         self.logger.trace(retval)
 </s> add         self.logger.trace(retval)  # type: ignore </s> remove             fs_backend = os.environ["FACESWAP_BACKEND"].lower()
 </s> add             fs_backend = cast(ValidBackends, os.environ["FACESWAP_BACKEND"].lower())
            assert fs_backend in get_args(ValidBackends), (
                f"Faceswap backend must be one of {get_args(ValidBackends)}")
            logger.trace("Adding '%s' to image list", chkfile.path)  # type:ignore
      logger.trace("Scanned Folder Contents: %s", dir_scanned)
  
      for chkfile in dir_scanned:
          if any(chkfile.name.lower().endswith(ext) for ext in image_extensions):
            logger.trace("Adding '%s' to image list", chkfile.path)  # type:ignore
              dir_contents.append(chkfile.path)
  
      logger.debug("Returning %s images", len(dir_contents))
      return dir_contents
  
keep keep keep keep replace keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py