Install extensions

Install extensions#

QuPath extensions can add extra features. We may not have time to explore them in the workshop, but these instructions show how to install one that we’ll mention - and that you may find useful later.

What to do

  1. Start QuPath.

  2. Navigate to Extensions ‣ Manage extensions. This will open a dialog window showing a list of extensions maintained by the QuPath team.

../_images/1-extension-manager.png

Fig. 2 QuPath’s extension manager.#

  1. Click the green plus (+) icon on the row reading QuPath InstanSeg extension to open an install dialog for the InstanSeg extension.

  2. In the dialog that appears, click “Install” for the latest version.

../_images/2-instanseg-install.png

Fig. 3 Install dialog for the InstanSeg extension#

You can find more instructions for installing extensions in the QuPath docs.

Deep Java Library and PyTorch#

In order to use InstanSeg and other deep learning models in QuPath, we usually use Deep Java Library.

QuPath v0.7.0 includes the Deep Java Library extension by default. However, you’ll still need to download “engines” to run deep learning models.

Specifially, the InstanSeg extension you just installed needs the “PyTorch engine”.

What to do

  1. Navigate to Extensions ‣ Deep Java Library ‣ Manage DJL engines. This will open a dialog as follows:

../_images/3-djl.png

Fig. 4 A dialog to manage Deep Java Library engines for QuPath.#

  1. Click Check/Download under PyTorch, and DJL should attempt to download and install the appropriate version for your system.

../_images/4-djl-installed.png

Fig. 5 Deep Java Library engine management window, showing PyTorch available#

  1. If your computer contains an NVIDIA GPU, you may also want to attempt to install GPU support, as explained in the QuPath docs. This can hugely speed up models for large images… although configuration can be a bit of a pain, so let us know if you get stuck.