Update README

pull/84/merge
Peter Lin 3 years ago
parent 918a97f347
commit c78d876712

@ -157,7 +157,9 @@ convert_video(
model, # The model, can be on any device (cpu or cuda). model, # The model, can be on any device (cpu or cuda).
input_source='input.mp4', # A video file or an image sequence directory. input_source='input.mp4', # A video file or an image sequence directory.
output_type='video', # Choose "video" or "png_sequence" output_type='video', # Choose "video" or "png_sequence"
output_composition='output.mp4', # File path if video; directory path if png sequence. output_composition='com.mp4', # File path if video; directory path if png sequence.
output_alpha="pha.mp4", # [Optional] Output the raw alpha prediction.
output_foreground="fgr.mp4", # [Optional] Output the raw foreground prediction.
output_video_mbps=4, # Output video mbps. Not needed for png sequence. output_video_mbps=4, # Output video mbps. Not needed for png sequence.
downsample_ratio=None, # A hyperparameter to adjust or use None for auto. downsample_ratio=None, # A hyperparameter to adjust or use None for auto.
seq_chunk=12, # Process n frames at once for better parallelism. seq_chunk=12, # Process n frames at once for better parallelism.

@ -156,7 +156,9 @@ convert_video(
model, # 模型可以加载到任何设备cpu 或 cuda model, # 模型可以加载到任何设备cpu 或 cuda
input_source='input.mp4', # 视频文件,或图片序列文件夹 input_source='input.mp4', # 视频文件,或图片序列文件夹
output_type='video', # 可选 "video"(视频)或 "png_sequence"PNG 序列) output_type='video', # 可选 "video"(视频)或 "png_sequence"PNG 序列)
output_composition='output.mp4', # 若导出视频,提供文件路径。若导出 PNG 序列,提供文件夹路径 output_composition='com.mp4', # 若导出视频,提供文件路径。若导出 PNG 序列,提供文件夹路径
output_alpha="pha.mp4", # [可选项] 输出透明度预测
output_foreground="fgr.mp4", # [可选项] 输出前景预测
output_video_mbps=4, # 若导出视频,提供视频码率 output_video_mbps=4, # 若导出视频,提供视频码率
downsample_ratio=None, # 下采样比,可根据具体视频调节,或 None 选择自动 downsample_ratio=None, # 下采样比,可根据具体视频调节,或 None 选择自动
seq_chunk=12, # 设置多帧并行计算 seq_chunk=12, # 设置多帧并行计算

Loading…
Cancel
Save