Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
d17ebcf
1
Parent(s):
bab98df
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def inference(video):
|
|
| 28 |
output_alpha="pha.mp4", # [Optional] Output the raw alpha prediction.
|
| 29 |
output_foreground="fgr.mp4", # [Optional] Output the raw foreground prediction.
|
| 30 |
output_video_mbps=4, # Output video mbps. Not needed for png sequence.
|
| 31 |
-
seq_chunk=
|
| 32 |
num_workers=1, # Only for image sequence input. Reader threads.
|
| 33 |
progress=True # Print conversion progress.
|
| 34 |
)
|
|
|
|
| 28 |
output_alpha="pha.mp4", # [Optional] Output the raw alpha prediction.
|
| 29 |
output_foreground="fgr.mp4", # [Optional] Output the raw foreground prediction.
|
| 30 |
output_video_mbps=4, # Output video mbps. Not needed for png sequence.
|
| 31 |
+
seq_chunk=12, # Process n frames at once for better parallelism.
|
| 32 |
num_workers=1, # Only for image sequence input. Reader threads.
|
| 33 |
progress=True # Print conversion progress.
|
| 34 |
)
|