You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test on a large video with chunks and cache enabled.
Run the code snippet with python manage.py shell
Hit ctrl+C at some point
check top output
There should not be any extra memory allocated, but after few runs over a video task with 3k frames I have 5-7 gb of allocated memory. Gc tells it knows nothing about these allocations.
importgcimporttracemalloctracemalloc.start(10)
try:
fromcvat.apps.engine.modelsimportTaskfromcvat.apps.engine.frame_providerimportFrameProviderfp=FrameProvider(Task.objects.get(pk=39).data) # a large video taskwhileTrue:
fori, finenumerate(fp.get_frames(out_type=fp.Type.NUMPY_ARRAY)):
passexcept:
delfpdelfsnapshot=tracemalloc.take_snapshot()
gc.collect()
My actions before raising this issue
Expected Behaviour
Current Behaviour
Test on a large video with chunks and cache enabled.
python manage.py shell
top
outputThere should not be any extra memory allocated, but after few runs over a video task with 3k frames I have 5-7 gb of allocated memory. Gc tells it knows nothing about these allocations.
Env:
Python 3.6.5
Your Environment
git log -1
):f2c84a2653fc601c90bcb84154f0fe7a6be937df
Next steps
You may join our Gitter channel for community support.
The text was updated successfully, but these errors were encountered: