forked from intel/openvino-ai-plugins-gimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bat
39 lines (30 loc) · 1.39 KB
/
install.bat
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
33
34
35
36
37
:<<BATCH
@echo off
echo **** openvino-ai-plugins-gimp Setup started ****
python -m pip install virtualenv | find /V "already satisfied"
python -m virtualenv gimpenv3
echo -----activating python venv------------------------------------------------------------------
call "gimpenv3\Scripts\activate"
pip install -r openvino-ai-plugins-gimp\plugin-requirements.txt | find /V "already satisfied"
pip install openvino-ai-plugins-gimp\.
echo *** openvino-ai-plugins-gimp Installed ***
python -c "import gimpopenvino; gimpopenvino.setup_python_weights()"
echo **** openvino-ai-plugins-gimp Setup Ended ****
echo -----deactivating python venv------------------------------------------------------------------
call deactivate
echo -----------------------------------------------------------------------------------------------
set /p model_setup= "Do you want to continue setting up the models for all the plugin now? Enter Y/N: "
echo your choice %model_setup%
if %model_setup%==Y (
set "continue=y"
) else if %model_setup%==y (
set "continue=y"
) else ( set "continue=n"
)
if %continue%==y (
echo **** OpenVINO MODEL SETUP STARTED ****
gimpenv3\Scripts\python.exe openvino-ai-plugins-gimp\model_setup.py
) else ( echo Model setup skipped. Please make sure you have all the required models setup.
)
exit /b
BATCH