QuPath is not closing the loaded StarDist model when running on a GPU (QuPath built with CUDA). Each time a StarDist script is run, the model will be repeatedly loaded but never closed, leading to an out-of-memory exception when requesting memory greater than the available memory remaining in the VRAM.
Steps to reproduce outlined in: https://forum.image.sc/t/qupath-with-cuda-doesnt-release-gpu-memory-after-stardist-segmentation/57462