  
  from importlib import import_module
  
  from lib.logger import crash_log, log_setup
  from lib.utils import FaceswapError, safe_shutdown
  from lib.model.masks import get_available_masks, get_default_mask
  from plugins.plugin_loader import PluginLoader
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
 
</s> remove                               "help": "[Nvidia only] Enable ping pong training. Trains one side "
                                      "at a time, switching sides at each save iteration. "
                                      "Training will take 2 to 4 times longer, with about a "
                                      "30%%-50%% reduction in VRAM useage. NB: Preview won't show "
                                      "until both sides have been trained once."})
 </s> add                               "backend": "nvidia",
                              "help": "Enable ping pong training. Trains one side at a time, "
                                      "switching sides at each save iteration. Training will "
                                      "take 2 to 4 times longer, with about a 30%%-50%% reduction "
                                      "in VRAM useage. NB: Preview won't show until both sides "
                                      "have been trained once."})
from lib.utils import FaceswapError, get_backend, safe_shutdown
  
  from importlib import import_module
  
  from lib.logger import crash_log, log_setup
from lib.utils import FaceswapError, get_backend, safe_shutdown
  from lib.model.masks import get_available_masks, get_default_mask
  from plugins.plugin_loader import PluginLoader
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
keep keep keep keep replace keep keep keep keep keep
 More seamless AMD Integration

- utils.py: Set FS backend if .faceswap config file doesn't exist
- setup.py: set .faceswap config on setup
- Dynamically load options for AMD/CPU/NVIDIA backends 
lib/cli.py