@echo off setlocal cd /d %~dp0 set target_dir=%~dp0 chcp 65001 > nul set target_dir=%~dp0 set py=%target_dir%python\ set PATH="%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python"\Scripts call :ColorText "=================================================================================" "White" call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue" call :ColorText ".bat file by TetaZina for reinstall numpy, insightface, facexlib, onnxruntime-gpu" "blue" call :ColorText "=================================================================================" "darkred" "%py%python" -m pip uninstall numpy -y "%py%python" -m pip uninstall insightface -y "%py%python" -m pip uninstall facexlib -y "%py%python" -m pip uninstall onnxruntime-gpu -y curl --ssl-no-revoke -L -o "insightface-0.7.3-cp311-cp311-win_amd64.whl" https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl "%py%python" -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl onnxruntime-gpu "%py%python" -m pip install facexlib "%py%python" -m pip install numpy==1.26.4 del /f /q "%target_dir%insightface-0.7.3-cp311-cp311-win_amd64.whl" del "%~f0" exit /b :ColorText setlocal set text=%~1 set color=%~2 powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%" exit /b pause