Skip to content

Commit

Permalink
linux.sh insightface model installer added
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmetYukselSekeroglu committed May 26, 2024
1 parent 457463b commit d81caa5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ print_help_exit(){
printf "$0 --start-container\t:Start the container\n"
printf "$0 --stop-container\t:Stop the running container\n"
printf "$0 --remove-container\t:Remove container and database !DANGER!\n"
printf "$0 --start-service\t:Start crawler and start web-api for service mode\n"
printf "$0 --install-pip-packagets\t:Install Required pip packagets"
printf "$0 --install-model\t:Install insightface model"
printf "$0 --sql-shell\t\t:Connect PostgreSQL cli on \"$db_name\" database\n"
printf "$0 --help/-h\t\t:Open this menu\n"
printf "\n"
Expand Down Expand Up @@ -276,6 +277,21 @@ elif [[ "$1" == "--start-hive" ]]; then

python3 main.py

elif [[ "$1" == "--install-model" ]]; then
printf "\n"
printf "$blue<-[ Installing Insightface Model ]->\n$reset"
printf "\n"
sleep 1

python3 hivelibrary/install_insightface_model.py
if [[ "$?" != "0" ]]; then
p_error "Failed to install insightface model..."
exit 1

else
p_info "OK..."

fi

# romove/delete container
# for uninstall or reinstall
Expand Down

0 comments on commit d81caa5

Please sign in to comment.