hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.59k stars 4.88k forks source link

AttributeError: module 'tensorflow' has no attribute 'config' #239

Open diffussy69 opened 4 weeks ago

diffussy69 commented 4 weeks ago

PS C:\Deep-Live-Cam\Deep-Live-Cam> python run.py --execution-provider cuda Traceback (most recent call last): File "C:\Deep-Live-Cam\Deep-Live-Cam\run.py", line 6, in core.run() File "C:\Deep-Live-Cam\Deep-Live-Cam\modules\core.py", line 242, in run limit_resources() File "C:\Deep-Live-Cam\Deep-Live-Cam\modules\core.py", line 131, in limit_resources gpus = tensorflow.config.experimental.list_physical_devices('GPU') AttributeError: module 'tensorflow' has no attribute 'config' PS C:\Deep-Live-Cam\Deep-Live-Cam>

diffussy69 commented 4 weeks ago

Same error trying to run without CUDA

PS C:\Deep-Live-Cam\Deep-Live-Cam> python run.py Traceback (most recent call last): File "C:\Deep-Live-Cam\Deep-Live-Cam\run.py", line 6, in core.run() File "C:\Deep-Live-Cam\Deep-Live-Cam\modules\core.py", line 242, in run limit_resources() File "C:\Deep-Live-Cam\Deep-Live-Cam\modules\core.py", line 131, in limit_resources gpus = tensorflow.config.experimental.list_physical_devices('GPU') AttributeError: module 'tensorflow' has no attribute 'config'

tekinarslan commented 4 weeks ago

You can replace your tensorflow with latest one 2.17.0 and update requirements file for new tensorflow version. I skip this error but My program still is not working. It can't start download faces.

diffussy69 commented 4 weeks ago

SOLVED

cd into your venv and run: pip install tensorflow --upgrade