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:
parent
eadf03cac8
commit
4f0562df64
2
setup.py
2
setup.py
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user