1
0
mirror of https://github.com/TencentARC/GFPGAN.git synced 2025-05-15 23:00:12 -07:00

fix setup bug

This commit is contained in:
Xintao 2021-10-22 16:11:17 +08:00
parent eadf03cac8
commit 4f0562df64

View File

@ -45,7 +45,7 @@ def get_hash():
sha = get_git_hash()[:7] sha = get_git_hash()[:7]
elif os.path.exists(version_file): elif os.path.exists(version_file):
try: try:
from facexlib.version import __version__ from gfpgan.version import __version__
sha = __version__.split('+')[-1] sha = __version__.split('+')[-1]
except ImportError: except ImportError:
raise ImportError('Unable to get git version') raise ImportError('Unable to get git version')