Skip to content

Commit

Permalink
Merge pull request #66 from glucauze/v1.2.3
Browse files Browse the repository at this point in the history
fix install
  • Loading branch information
glucauze committed Aug 24, 2023
2 parents a6ccd6f + 54adcc0 commit c4badb7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
import os
import sys
import pkg_resources
from modules import shared
from packaging.version import parse


def check_install() -> None:
use_gpu = not getattr(shared.cmd_opts, "use-cpu", False)
use_gpu = True
try:
from modules import shared

use_gpu = not getattr(shared.cmd_opts, "use-cpu", False)
except:
# On some platform previous lines may failed (modules.shared not initialized), just ignore and use GPU requirements
pass

if use_gpu and sys.platform != "darwin":
print("Faceswaplab : Use GPU requirements")
Expand Down

0 comments on commit c4badb7

Please sign in to comment.