Merge branch 'main' into nsfw

This commit is contained in:
Struchkov Mark 2023-06-01 15:24:53 +03:00
commit 466c8312a8
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

3
run.py
View File

@ -70,7 +70,8 @@ def pre_check():
if not os.path.isfile(model_path):
quit('File "inswapper_128.onnx" does not exist!')
if '--gpu' in sys.argv:
if 'ROCMExecutionProvider' not in core.globals.providers:
NVIDIA_PROVIDERS = ['CUDAExecutionProvider', 'TensorrtExecutionProvider']
if len(list(set(core.globals.providers) - set(NVIDIA_PROVIDERS))) == 1:
CUDA_VERSION = torch.version.cuda
CUDNN_VERSION = torch.backends.cudnn.version()
if not torch.cuda.is_available() or not CUDA_VERSION: