Spaces:
Build error
Build error
Update app.py
Browse files
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 |
|