mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-29 17:20:52 +00:00
[PR #625] Add model_rootpath parameter to GFPGAN __init__ for customizable paths for model weights #629
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?
📋 Pull Request Information
Original PR: https://github.com/TencentARC/GFPGAN/pull/625
Author: @urlan
Created: 8/16/2025
Status: 🔄 Open
Base:
master← Head:master📝 Commits (1)
e768df9Add model_rootpath parameter to GFPGAN init for customizable weights path📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
gfpgan/utils.py(+2 -2)📄 Description
Added the
model_rootpathparameter to the__init__method of GFPGAN to allow customizable paths for model weights. UpdatedFaceRestoreHelperin__init__to use this parameter for flexibility in specifying the weights directory.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.