mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 05:44:38 +00:00
How to run the demo on pytorch 1.4.0 or 1.1.0? #19
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 @willyzw1221 on GitHub (Jul 6, 2021).
@xinntao commented on GitHub (Jul 7, 2021):
I have not tested it on pytorch1.4 or 1.1.
You may adapt to that version.
@remixer-dec commented on GitHub (Jul 20, 2021):
I managed to run it with Pytorch 1.3 since it's the latest build that supports my GPU. Windows 8.1, Python 3.7, CUDA 10.2
You need to:
pip install -e /path/to/basicsrIf you have version error with basicsr, just remove the line with version from
basicsr/__init__.pypip install ninjapip install facexlibpip install -r requirements.txtdecode()todecode('encoding-for-your-spoken-language')_prepare_ldflagsaddextra_ldflags.append('c10_cuda.lib')near the other similar linesset BASICSR_JIT=True