mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2025-05-15 14:50:11 -07:00
update setup.py, V0.2.3
This commit is contained in:
parent
4f0562df64
commit
0ff1cf7215
6
setup.py
6
setup.py
@ -43,12 +43,6 @@ def get_git_hash():
|
||||
def get_hash():
|
||||
if os.path.exists('.git'):
|
||||
sha = get_git_hash()[:7]
|
||||
elif os.path.exists(version_file):
|
||||
try:
|
||||
from gfpgan.version import __version__
|
||||
sha = __version__.split('+')[-1]
|
||||
except ImportError:
|
||||
raise ImportError('Unable to get git version')
|
||||
else:
|
||||
sha = 'unknown'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user