IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

[BUG]Memory keeps rising and not released

Open AnJoiner opened this issue 1 year ago • 2 comments

Model Lama

Describe the bug

lama-cleaner --model=lama --device=cuda --port=9003

During use, the memory will continue to increase without any release. Is there any way to automatically free the memory?

Screenshots

System Info Software version used

  • lama-cleaner: 1.1.2
  • pytorch: 2.0.1
  • CUDA: 12.0.0

AnJoiner avatar May 18 '23 02:05 AnJoiner

Hi, I didn't encounter this issue on PyTorch 1.13 + CUDA 11.4. Could you try using a different version of PyTorch and see if the problem persists? I will test the version you mentioned when I have free time.

Sanster avatar May 20 '23 05:05 Sanster

Hi, I didn't encounter this issue on PyTorch 1.13 + CUDA 11.4. Could you try using a different version of PyTorch and see if the problem persists? I will test the version you mentioned when I have free time.

Thank you for your reply in your busy schedule. I also test other versions of PyTorch. I almost forgot to tell you that my system uses ubuntu server 22.04

AnJoiner avatar May 20 '23 05:05 AnJoiner