Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Local `gfpgan/` folder problem

Open Lemonduti opened this issue 7 months ago • 0 comments

Description: On the first run of run.py, the program downloads two model files into a local gfpgan/weights/ folder. The face-enhance feature works correctly at this point.

However, on subsequent runs of run.py, the application fails with the following error:

AttributeError: module 'gfpgan' has no attribute 'GFPGANer'

Steps to reproduce: 1.Delete the gfpgan/ folder in the project root (to simulate a fresh start) 2.Run run.py → models are downloaded and face-enhance runs successfully 3.Exit Python and run run.py again 4.Observe the AttributeError

Cause: The downloaded gfpgan/ folder is being interpreted as a Python module on the next run, which masks the actual gfpgan package installed via pip.

System Info: OS: Windows 10 Python: 3.10 GPU: NVIDIA RTX 3070 CUDA-enabled environment

Lemonduti avatar Apr 30 '25 08:04 Lemonduti