From c78d876712ccb3f78cdd0bb7b24a5c0967022794 Mon Sep 17 00:00:00 2001 From: Peter Lin Date: Wed, 8 Dec 2021 09:20:03 -0800 Subject: [PATCH] Update README --- README.md | 4 +++- README_zh_Hans.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24a581c..03e2c71 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,9 @@ convert_video( model, # The model, can be on any device (cpu or cuda). input_source='input.mp4', # A video file or an image sequence directory. 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. downsample_ratio=None, # A hyperparameter to adjust or use None for auto. seq_chunk=12, # Process n frames at once for better parallelism. diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 3011dde..08e0f4a 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -156,7 +156,9 @@ convert_video( model, # 模型,可以加载到任何设备(cpu 或 cuda) input_source='input.mp4', # 视频文件,或图片序列文件夹 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, # 若导出视频,提供视频码率 downsample_ratio=None, # 下采样比,可根据具体视频调节,或 None 选择自动 seq_chunk=12, # 设置多帧并行计算