Skip to content

GPU memory not freed when using OpenCV DNN #841

@petebankhead

Description

@petebankhead

Bug report

Describe the bug
GPU memory isn't released when using a DnnModel repeatedly. This can be seen when using StarDist.

To Reproduce
See qupath/qupath-extension-stardist#11
Copied here because the fix may need to be implemented within the core, rather than the StarDist extension.

Expected behavior
GPU memory released after processing is complete.

Desktop (please complete the following information):

  • OS: Likely any with CUDA (Windows, Linux)
  • QuPath v0.3.0

Additional context
I guess a blob may need to be reset... or something. Although that may be tricky to achieve if allowing multithreading and trying not to unduly harm performance (or perhaps it won't be).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions