  #!/usr/bin python3
  """ Utilities available across all scripts """
  
  import logging
  import os
  import subprocess
  import sys
  import urllib
 
</s> remove from lib.utils import FaceswapError, safe_shutdown
 </s> add from lib.utils import FaceswapError, get_backend, safe_shutdown </s> remove         """ Return a list of available models """
 </s> add         """ Return a list of available aligners/detectors """

import json
  #!/usr/bin python3
  """ Utilities available across all scripts """
  
import json
  import logging
  import os
  import subprocess
  import sys
  import urllib
keep keep add 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/utils.py