amirgame197 commited on
Commit
6db6005
·
verified ·
1 Parent(s): 1fc6bf2

Update app.py

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