BallonsTranslator
BallonsTranslator copied to clipboard
RAM Usage
Can we do something about RAM usage ? It's more than Chrome (with 15 tabs open)

I think not, because Python brings a bunch of its libraries into RAM to work with.
it's mainly pytorch
I don't mind when it's running (doing ocr, translation, inpainting etc.) but this much RAM usage is when it's idle.
I don't mind when it's running (doing ocr, translation, inpainting etc.) but this much RAM usage is when it's idle.
As far as I remember, this can be fixed using pytorch methods, but for this you will have to rewrite all current DL algorithms.
I don't mind when it's running (doing ocr, translation, inpainting etc.) but this much RAM usage is when it's idle.
large portion of allocated memory are reserved and managed by pytorch, you can see memory consumption on startup up vs after running inpainting:
As far as I know, pytorch doesn't provide an easy way to deallocate these: https://github.com/pytorch/pytorch/issues/68114 https://discuss.pytorch.org/t/how-to-clear-cpu-memory-after-training-no-cuda/107990