forked from codeproject/CodeProject.AI-BackgroundRemover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bat
26 lines (22 loc) · 1.09 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
:: Installation script :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Background Remover
::
:: This script is only called from ..\..\CodeProject.AI-Server\src\setup.bat
::
:: For help with install scripts, notes on variables and methods available, tips,
:: and explanations, see /src/modules/install_script_help.md
@if "%1" NEQ "install" (
echo This script is only called from ..\..\CodeProject.AI-Server\src\setup.bat
@pause
@goto:eof
)
:: Location of models as per original repo
:: u2netp: https://drive.google.com/uc?id=1tNuFmLv0TSNDjYIkjEdeH1IWKQdUA4HR
:: u2net: https://drive.google.com/uc?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab
:: u2net_human_seg: https://drive.google.com/uc?id=1ZfqwVxu-1XWC1xU1GHIP-FM_Knd_AX5j
:: u2net_cloth_seg: https://drive.google.com/uc?id=15rKbQSXQzrKCQurUjZFg8HqzZad8bcyz
:: Download the models and store in /models
call "%utilsScript%" GetFromServer "models/" "rembg-models.zip" "models" "Downloading Background Remover models..."
REM TODO: Check models created and has files
REM set moduleInstallErrors=...