File size: 1,313 Bytes
0f91dc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@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