              backend = "amd"
          elif self.enable_cuda:
              backend = "nvidia"
          elif self.enable_apple:
              backend = "apple"
          else:
              backend = "cpu"
          config = {"backend": backend}
          pypath = os.path.dirname(os.path.realpath(__file__))
          config_file = os.path.join(pypath, "config", ".faceswap")
 
</s> remove             selection = input("1: AMD, 2: CPU, 3: NVIDIA, 4: Apple: ")
 </s> add             selection = input("1: AMD, 2: CPU, 3: NVIDIA, 4: Apple Silicon: ") </s> remove     backend: ["amd", "cpu", "nvidia", "apple"]
 </s> add     backend: ["amd", "cpu", "nvidia", "apple_silicon"] </s> remove         self._backends = {"1": "amd", "2": "cpu", "3": "nvidia", "4": "apple"}
 </s> add         self._backends = {"1": "amd", "2": "cpu", "3": "nvidia", "4": "apple_silicon"} </s> remove elif backend == "apple":
 </s> add elif backend == "apple_silicon":
            backend = "apple_silicon"
              backend = "amd"
          elif self.enable_cuda:
              backend = "nvidia"
          elif self.enable_apple:
            backend = "apple_silicon"
          else:
              backend = "cpu"
          config = {"backend": backend}
          pypath = os.path.dirname(os.path.realpath(__file__))
          config_file = os.path.join(pypath, "config", ".faceswap")
keep keep keep keep replace keep keep keep keep keep
 Rename Apple Silicon backend to apple_silicon 
setup.py