git / fix.bat
happyneishon's picture
Upload fix.bat
0f91dc5 verified
raw
history blame
No virus
1.31 kB
@echo off
setlocal
cd /d %~dp0
set target_dir=%~dp0
chcp 65001 > nul
set target_dir=%~dp0
set py=%target_dir%python\
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