Update photoprism-install.sh

This commit is contained in:
tteckster 2022-05-03 19:06:41 -04:00 committed by GitHub
parent c62cf4aea6
commit 34ea1a170c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,22 +86,9 @@ ln -s /usr/local/go/bin/go /usr/local/bin/go &>/dev/null
msg_ok "Installed Golang" msg_ok "Installed Golang"
msg_info "Installing Tensorflow" msg_info "Installing Tensorflow"
AVX=$(grep -o -m1 'avx[^ ]*' /proc/cpuinfo)
if [[ "$AVX" == "avx2" ]]; then
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-avx2-1.15.2.tar.gz &>/dev/null
tar -C /usr/local -xzf libtensorflow-linux-avx2-1.15.2.tar.gz &>/dev/null
ldconfig &>/dev/null
fi
if [[ "$AVX" == "avx" ]]; then
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-avx-1.15.2.tar.gz &>/dev/null
tar -C /usr/local -xzf libtensorflow-linux-avx-1.15.2.tar.gz &>/dev/null
ldconfig &>/dev/null
fi
if [[ "$AVX" == "" ]]; then
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null
tar -C /usr/local -xzf libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null tar -C /usr/local -xzf libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null
ldconfig &>/dev/null ldconfig &>/dev/null
fi
msg_ok "Installed Tensorflow" msg_ok "Installed Tensorflow"
msg_info "Cloning PhotoPrism" msg_info "Cloning PhotoPrism"