happyneishon commited on
Commit
ef638a8
·
verified ·
1 Parent(s): 7facfc3

Upload fix.bat

Browse files
Files changed (1) hide show
  1. fix.bat +33 -0
fix.bat ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ pause
14
+ %py%python -m pip uninstall numpy -y
15
+ %py%python -m pip uninstall insightface -y
16
+ %py%python -m pip uninstall facexlib -y
17
+ %py%python -m pip uninstall onnxruntime-gpu -y
18
+ 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
19
+ %py%python -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl onnxruntime-gpu
20
+ %py%python -m pip install facexlib
21
+ %py%python -m pip install numpy==1.26.4
22
+
23
+ del /f /q %target_dir%insightface-0.7.3-cp311-cp311-win_amd64.whl
24
+ del "%~f0"
25
+ exit /b
26
+
27
+ :ColorText
28
+ setlocal
29
+ set text=%~1
30
+ set color=%~2
31
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
32
+ exit /b
33
+ pause