[PR #625] Add model_rootpath parameter to GFPGAN __init__ for customizable paths for model weights #629

Open
opened 2026-01-29 21:49:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TencentARC/GFPGAN/pull/625
Author: @urlan
Created: 8/16/2025
Status: 🔄 Open

Base: masterHead: master


📝 Commits (1)

  • e768df9 Add 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_rootpath parameter to the __init__ method of GFPGAN to allow customizable paths for model weights. Updated FaceRestoreHelper in __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.

## 📋 Pull Request Information **Original PR:** https://github.com/TencentARC/GFPGAN/pull/625 **Author:** [@urlan](https://github.com/urlan) **Created:** 8/16/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`e768df9`](https://github.com/TencentARC/GFPGAN/commit/e768df9429f5d949958407cb9c4b294ee324910e) Add model_rootpath parameter to GFPGAN __init__ for customizable weights path ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `gfpgan/utils.py` (+2 -2) </details> ### 📄 Description Added the `model_rootpath` parameter to the `__init__` method of GFPGAN to allow customizable paths for model weights. Updated `FaceRestoreHelper` in `__init__` to use this parameter for flexibility in specifying the weights directory. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 21:49:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#629