happyneishon commited on
Commit
0f91dc5
1 Parent(s): de00938

Upload fix.bat

Browse files
Files changed (1) hide show
  1. fix.bat +32 -0
fix.bat ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal
3
+ cd /d %~dp0
4
+ set target_dir=%~dp0
5
+ chcp 65001 > nul
6
+ set target_dir=%~dp0
7
+ set py=%target_dir%python\
8
+ call :ColorText "=================================================================================" "White"
9
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
10
+ call :ColorText ".bat file by TetaZina for reinstall numpy, insightface, facexlib, onnxruntime-gpu" "blue"
11
+ call :ColorText "=================================================================================" "darkred"
12
+
13
+ %py%python -m pip uninstall numpy -y
14
+ %py%python -m pip uninstall insightface -y
15
+ %py%python -m pip uninstall facexlib -y
16
+ %py%python -m pip uninstall onnxruntime-gpu -y
17
+ 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
18
+ %py%python -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl onnxruntime-gpu
19
+ %py%python -m pip install facexlib
20
+ %py%python -m pip install numpy==1.26.4
21
+
22
+ del /f /q %target_dir%insightface-0.7.3-cp311-cp311-win_amd64.whl
23
+ del "%~f0"
24
+ exit /b
25
+
26
+ :ColorText
27
+ setlocal
28
+ set text=%~1
29
+ set color=%~2
30
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
31
+ exit /b
32
+ pause