Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
2189a33
1
Parent(s):
7da106d
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ def inference(video):
|
|
21 |
convert_video(
|
22 |
model, # The loaded model, can be on any device (cpu or cuda).
|
23 |
input_source='output.mp4', # A video file or an image sequence directory.
|
24 |
-
input_resize=(
|
25 |
-
downsample_ratio=
|
26 |
output_type='video', # Choose "video" or "png_sequence"
|
27 |
output_composition='com.mp4', # File path if video; directory path if png sequence.
|
28 |
output_alpha="pha.mp4", # [Optional] Output the raw alpha prediction.
|
|
|
21 |
convert_video(
|
22 |
model, # The loaded model, can be on any device (cpu or cuda).
|
23 |
input_source='output.mp4', # A video file or an image sequence directory.
|
24 |
+
input_resize=(512, 512), # [Optional] Resize the input (also the output).
|
25 |
+
downsample_ratio=None, # [Optional] If None, make downsampled max size be 512px.
|
26 |
output_type='video', # Choose "video" or "png_sequence"
|
27 |
output_composition='com.mp4', # File path if video; directory path if png sequence.
|
28 |
output_alpha="pha.mp4", # [Optional] Output the raw alpha prediction.
|