Update app.py
Browse files
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 |
-
|
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 |
|