-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
29 lines (23 loc) · 927 Bytes
/
install.sh
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
#!/bin/bash
# Development mode setup script ::::::::::::::::::::::::::::::::::::::::::::::
#
# Cartoonizer
#
# This script is called from the Cartoonizer directory using:
#
# bash ../../CodeProject.AI-Server/src/setup.sh
#
# The setup.sh script will find this install.sh file and execute it.
#
# For help with install scripts, notes on variables and methods available, tips,
# and explanations, see /src/modules/install_script_help.md
if [ "$1" != "install" ]; then
read -t 3 -p "This script is only called from: bash ../../CodeProject.AI-Server/src/setup.sh"
echo
exit 1
fi
# Download the models and store in /models
getFromServer "models/" "cartooniser-models.zip" "weights" "Downloading Cartoonizer models..."
# TODO: Check weights created and has files
# moduleInstallErrors=...
# see https://pyimagesearch.com/2018/01/22/install-dlib-easy-complete-guide/ for notes on RPi