amirgame197 commited on
Commit
4d8ee0b
·
verified ·
1 Parent(s): 3c4c507

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -38,6 +38,8 @@ def doo(video):
38
  if processed_frames % 100 == 0:
39
  processed_frames = 0
40
  del out # Delete the variable holding the processed frame
 
 
41
  gc.collect() # Perform manual garbage collection to release GPU memory
42
  print("Memory reset")
43
 
 
38
  if processed_frames % 100 == 0:
39
  processed_frames = 0
40
  del out # Delete the variable holding the processed frame
41
+ del writer
42
+ del cap
43
  gc.collect() # Perform manual garbage collection to release GPU memory
44
  print("Memory reset")
45