My goals with this process were:
Reported Video Card is the NVIDA GeForce GTX 1650
Process Summary:
Detailed Instructions:
I initially started out by trying to follow some of the processes reported previously. Some instructions even suggested using "pip" for parts of the install which was an alternate approach but was entirely unnecessary with the procedures I am using. If you see instructions that suggest using pip or python3, you are venturing down your own path.
Ultimately, I tried a few approaches until I found something that worked. This means I may have missed a prerequisite or two in my detailed instructions, but hopefully these work for you.
One thing to keep in mind: If you do something that results in BXT or StarNet going away, you will need to re-install those process modules before they work again. (PROCESS->Modules->Install Modules, Search, Install). Just fixing the missing libraries will not make them come back again.
Install prerequisites (Hope I didn't miss any that were already on my computer, I already had kernel-headers for example so you may need to check that).
$ sudo apt install build-essential
$ sudo apt install nvidia-driver-550
[If using ubuntu 24.04, see the comment after this by @taurici about adding the prior version of libtinfo. Perform those steps here]
Install the latest version of nvidia-cuda (cuda-repo-ubuntu2204-12-4-local_12.4.1-550.54.15-1_amd64.deb) by following the instructions at the nvidia site:
developer.nvidia.com
Download the local repository version, then follow these steps:
Install the prior version of nvidia-cudnn from the archive (cudnn-local-repo-ubuntu2204-8.9.7.29_1.0-1_amd64.deb) for cuda 12.x
Downloaded from the archive listed here: https://developer.nvidia.com/cudnn-downloads
I had to use the older version, because the nightly builds of tensorflow do not yet support cudnn 9.x
Steps:
I picked one that supports the versions of cuda and cudnn I chose to install. In my case, it was: libtensorflow-gpu-linux-x86_64-2.15.0.tar.gz
Steps:
NOTE: If you ensure that the new tensorflow is at the start of the LD_LIBRARY_PATH, you do not need to move the PixInsight provided libtensorflow files out of its lib folder.
For me, it looks like this:
#!/bin/bash
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
if [ "${dirname:0:1}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$HOME/tensorflow/lib:$dirname/lib:$dirname
- Obviously, enable GPU acceleration for tensorflow
- Simplify the process by installing the nvidia libraries, using nvidia documented processes.
- Reduce modification of PixInsight install to just editing the LD_LIBRARY_PATH (no need to move/delete libraries in PixInsight/bin/lib)
- Use the native package manager where possible and avoid overriding package manager installed drivers with manually installed ones.
- Explore whether or not newer versions of tensorflow, cuda and cudnn will work. It turns out, yes!
Reported Video Card is the NVIDA GeForce GTX 1650
Process Summary:
- Ensure prerequisites are in place (build essentials, kernel headers, etc)
- Download and install the latest version of cuda from nvidia, following nvidia instructions to install. (Use Ubuntu 22.0.4 local install deb version)
- Download and install 8.7.9 version of cudnn from nvdiia website, following nvidia instructions to install. (Use Ubuntu 22.0.4 local install deb version)
- Download and extract the latest pre-built version of tensorflow from the nightly builds site.
- Add the new tensorflow to the start of the PixInsight.sh LD_LIBRARY_PATH
- Start up PixInsight.
- BXT process runs much faster, while spiking GPU utilization to 100%
- StarNet2 runs noticeably faster, but only spikes GPU utilization to about 50% (up from around 12% at the time)
Detailed Instructions:
I initially started out by trying to follow some of the processes reported previously. Some instructions even suggested using "pip" for parts of the install which was an alternate approach but was entirely unnecessary with the procedures I am using. If you see instructions that suggest using pip or python3, you are venturing down your own path.
Ultimately, I tried a few approaches until I found something that worked. This means I may have missed a prerequisite or two in my detailed instructions, but hopefully these work for you.
One thing to keep in mind: If you do something that results in BXT or StarNet going away, you will need to re-install those process modules before they work again. (PROCESS->Modules->Install Modules, Search, Install). Just fixing the missing libraries will not make them come back again.
Install prerequisites (Hope I didn't miss any that were already on my computer, I already had kernel-headers for example so you may need to check that).
$ sudo apt install build-essential
$ sudo apt install nvidia-driver-550
[If using ubuntu 24.04, see the comment after this by @taurici about adding the prior version of libtinfo. Perform those steps here]
Install the latest version of nvidia-cuda (cuda-repo-ubuntu2204-12-4-local_12.4.1-550.54.15-1_amd64.deb) by following the instructions at the nvidia site:

CUDA Toolkit 12.1 Downloads
Get the latest feature updates to NVIDIA's proprietary compute stack.
- $ sudo dpkg -i cuda-repo-ubuntu2204-12-4-local_12.4.1-550.54.15-1_amd64.deb
- $ sudo cp /var/cuda-repo-ubuntu2204-12-4-local/cuda-*-keyring.gpg /usr/share/keyrings/
- $ sudo apt-get update
- $ sudo apt-get -y install cuda-toolkit-12-4
Install the prior version of nvidia-cudnn from the archive (cudnn-local-repo-ubuntu2204-8.9.7.29_1.0-1_amd64.deb) for cuda 12.x
Downloaded from the archive listed here: https://developer.nvidia.com/cudnn-downloads
I had to use the older version, because the nightly builds of tensorflow do not yet support cudnn 9.x
Steps:
- $ sudo dpkg -i cudnn-local-repo-ubuntu2204-8.9.7.29_1.0-1_amd64.deb
- $ sudo cp /var/cudnn-local-repo-ubuntu2204-8.9.7.29/cudnn-*-keyring.gpg /usr/share/keyrings/
- $ sudo apt-get update
- $ sudo apt-get -y install libcudnn8
I picked one that supports the versions of cuda and cudnn I chose to install. In my case, it was: libtensorflow-gpu-linux-x86_64-2.15.0.tar.gz
Steps:
- Downloaded the archive to my Linux home directory
- $ mkdir tensorflow
- $ cd tensorflow
- $ tar -xvf ../libtensorflow-gpu-linux-x86_64-2.15.0.tar.gz
NOTE: If you ensure that the new tensorflow is at the start of the LD_LIBRARY_PATH, you do not need to move the PixInsight provided libtensorflow files out of its lib folder.
For me, it looks like this:
#!/bin/bash
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
if [ "${dirname:0:1}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$HOME/tensorflow/lib:$dirname/lib:$dirname
Last edited: