mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-24 14:50:43 +00:00
Fix Required: Weight Loading Path in gfpgan/utils.py for facexlib #399
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dvapan on GitHub (Sep 13, 2023).
facexlib loads weights into a relative directory instead of the directory containing the .py file. To fix this easily, in the
gfpgan/utils.pyfile during the constructor call:Replace model_rootpath='gfpgan/weights' with os.path.join(ROOT_DIR, 'gfpgan/weights').