-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
38 lines (32 loc) · 1.57 KB
/
install.sh
File metadata and controls
38 lines (32 loc) · 1.57 KB
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
38
#!/bin/bash
# Development mode setup script ::::::::::::::::::::::::::::::::::::::::::::::
#
# ObjectDetection (Fast Deploy RKNN)
#
# This script is called from the ObjectDetectionFastDeployRKNN 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
set oneStepPIP=true
# FastDeploy requires a version of GCLIB higher than what's in the RPi Ubuntu OS.
# We need to work around this - except this lib is tied hard to the OS. Most likely
# solution is we use the standard FastDeploy libs for non-RockNPU hardware
if [ "${edgeDevice}" != "Orange Pi" ] && [ "${edgeDevice}" != "Radxa ROCK" ]; then
# writeLine "ObjectDetection (Fast Deploy RKNN) can only be installed on Orange Pi devices" "$color_error"
moduleInstallErrors="Unable to install on non-Orange Pi/Radxa ROCK hardware."
else
# Download the models and store in /assets and /custom-models
getFromServer "models/" "objectdetect-rknn-models.zip" "assets" "Downloading Standard YOLOv5 RKNN models..."
getFromServer "models/" "objectdetect-rknn-custom-models.zip" "custom-models" "Downloading Custom YOLOv5 RKNN models..."
# TODO: Check assets created and has files
# moduleInstallErrors=...
fi