Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix basicsr losses import #210

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

amckenna41
Copy link
Contributor

With the most recent 1.4.0 release of BasicSR (https://github.com/XPixelGroup/BasicSR/releases), some basicSR module imports in GFPGAN may have to be reconfigured as some of the changes include updates to some directories such as the basicsr.losses directory.
The only error I came across was in the gfpgan_model.py module, where I had to change "from basicsr.losses.losses import r1_penalty" to "from basicsr.losses.gan_loss import r1_penalty". This was the only import error that occurred during execution of my script but there may be several other module imports that may have to be double checked.

@xinntao xinntao merged commit 7d657f2 into TencentARC:master Jul 13, 2022
@xinntao xinntao mentioned this pull request Jul 13, 2022
AdamBear added a commit to AdamBear/GFPGAN that referenced this pull request Aug 17, 2022
…t compatible with basicsr 1.3.5, so need also to modify requirements.txt.
@AdamBear AdamBear mentioned this pull request Aug 17, 2022
AdamBear added a commit to AdamBear/GFPGAN that referenced this pull request Aug 17, 2022
humayun pushed a commit to PhotoDay/GFPGAN that referenced this pull request Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants