-
Notifications
You must be signed in to change notification settings - Fork 139
Ubuntu 20 & 22 with GPU
-
Since Ubuntu 20 and 22 ship with NVIDIA's proprietary binary display drivers, the installation is a bit simpler than earlier versions. Ensure you tick the box allowing for Third-Party Software during the OS installation.
-
Install anaconda.
-
Create a new environment for pixplot:
conda create --name pixplot python=3.7
conda activate pixplot
- We'll install an environment-specific version of cudatoolkit, and an accompanying version of CUDNN via Anaconda This won't harm your main Ubuntu operating system.
conda install cudatoolkit=11
conda install -c anaconda cudnn
- Install
pixplot
and supporting packages:
pip install https://github.com/yaledhlab/pix-plot/archive/master.zip
pip install image_datasets
(a helper utility to easily grab pixplot-ready datasets)
- Get a sample dataset:
python
import image_datasets
image_datasets.oslomini.download()
(now exit python via quit()
or CTRL+D)
- Test the installation:
time pixplot --images="datasets/oslomini/images/*.jpg" --metadata="datasets/oslomini/metadata/metadata.csv" --shuffle
In another terminal window, you can run watch -n 0.1 nvidia-smi
to monitor how TensorFlow uses your GPU.
sudo apt install build-essential
pip install hdbscan
pip install numpy==1.20
(pip may complain this is incompatible with Tensorflow, but it seems to work fine, at least with Tensorflow 2.5)