question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Huge testing time, over than 30s per one image and memory leak

See original GitHub issue

@YoungminBaek @ClovaAIAdmin Hello, I have a severe problem here. I’ve installed the requirements as exactly in the requirements file (list below using pip freeze), but I’m getting huge testing time, and there’s a memory leak. Below is the elapsed time for each image and the number of rams used after each image (Note: I didn’t do any activity on pc will runing)

elapsed time : 30.43714690208435s 5185044480 elapsed time : 53.374886989593506s 5257895936 elapsed time : 44.19151782989502s 5336133632 elapsed time : 56.6980299949646s 5491773440 elapsed time : 56.4984085559845s 5494587392 elapsed time : 59.90393805503845s 5528453120 elapsed time : 18.817126750946045s 5569077248 elapsed time : 45.16413617134094s 5565411328 elapsed time : 43.74738597869873s 5625319424 elapsed time : 30.947966814041138s 5646692352

Process finished with exit code 0 req.txt file generated after pip freeze

certifi==2019.11.28
cloudpickle==1.2.2
cycler==0.10.0
dask==2.10.0
decorator==4.4.1
kiwisolver==1.1.0
matplotlib==3.1.2
networkx==2.4
numpy==1.18.1
opencv-python==3.4.2.17
Pillow==6.1.0
psutil==5.6.7
pyparsing==2.4.6
python-dateutil==2.8.1
PyWavelets==1.1.1
scikit-image==0.14.2
scipy==1.1.0
six==1.14.0
toolz==0.10.0
torch==0.4.1.post2
torchvision==0.2.1

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

1reaction
AnoopSaju123commented, Feb 12, 2020

I did have the same issue and I used `

LRU_CACHE_CAPACITY=1 python testDetection.py

This removed the memory leak problem for me and reduced the time almost by half.This is in reference to this issue.

https://github.com/pytorch/pytorch/issues/27971

0reactions
SabraHashemicommented, Nov 20, 2020

@rgommers thanks. let’s wait for the next pytorch version then!

did ypu splve the problem by installing pytorch1.6?

i have pytorch1.6 and problem is still in time elapsed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hunting Java Memory Leaks - Toptal
In this post, I'll explain how and why memory leaks occur in Java and outline an approach for detecting such leaks with the...
Read more >
Fixing memory leaks in web applications | Read the Tea Leaves
One of these problems is memory leaks. A poorly-coded SPA can easily eat up megabytes or even gigabytes of memory, continuing to gobble...
Read more >
WBPP latest build possible memory Leak ? | PixInsight Forum
Took my Ryzen 3900XT 3 days and 5 hours to complete, but I now have an image ready for processing (woohoo)! If any...
Read more >
swift-frontend memory usage | Apple Developer Forums
I don't think this is an issue related to the purely to the .aspectRatio modifier, but rather GeometryReader in general. This image was...
Read more >
Memory leak detection - How to find, eliminate, and avoid
A memory leak is any portion of an application which uses memory without eventually freeing it. By memory, we're talking about RAM, not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found