      """ Return the backend from config/.faceswap of from the `FACESWAP_BACKEND` Environment
      Variable.
  
      If file doesn't exist and a variable hasn't been set, create the config file. """
      def __init__(self):
          self._backends = {"1": "amd", "2": "cpu", "3": "nvidia", "4": "apple_silicon"}
          self._config_file = self._get_config_file()
          self.backend = self._get_backend()
  
      @classmethod
 
</s> remove     def _get_config_file(cls):
 </s> add     def _get_config_file(cls) -> str: </s> remove     def _get_backend(self):
 </s> add     def _get_backend(self) -> ValidBackends: </s> remove def get_folder(path, make_folder=True):
 </s> add def get_folder(path: str, make_folder: bool = True) -> str:
    def __init__(self) -> None:
      """ Return the backend from config/.faceswap of from the `FACESWAP_BACKEND` Environment
      Variable.
  
      If file doesn't exist and a variable hasn't been set, create the config file. """
    def __init__(self) -> None:
          self._backends = {"1": "amd", "2": "cpu", "3": "nvidia", "4": "apple_silicon"}
          self._config_file = self._get_config_file()
          self.backend = self._get_backend()
  
      @classmethod
keep keep keep keep replace keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py