open-mmlab / FoleyCrafter

FoleyCrafter: Bring Silent Videos to Life with Lifelike and Synchronized Sounds. AI拟音大师,给你的无声视频添加生动而且同步的音效 😝
https://foleycrafter.github.io/
Apache License 2.0
472 stars 41 forks source link

No temporal_align flag in inference.py #18

Closed avishkarsaha closed 2 weeks ago

avishkarsaha commented 2 months ago

I tried to run the inference command from the README (with my own input/outpout directories), but there is no --temporal_align flag in inference.py.This is the command I ran:

python inference.py \
--temporal_align \
--input=input/avsync \
--save_dir=output/avsync/

This is the error:

usage: inference.py [-h] [--prompt PROMPT] [--nprompt NPROMPT] [--seed SEED] [--semantic_scale SEMANTIC_SCALE]
                    [--temporal_scale TEMPORAL_SCALE] [--input INPUT] [--ckpt CKPT] [--save_dir SAVE_DIR]
                    [--pretrain PRETRAIN] [--device DEVICE]
inference.py: error: unrecognized arguments: --temporal_align

I'm assuming the inference script provided is an older version? Is there a version which matches the README?

ymzhang0319 commented 2 weeks ago

Hi @avishkarsaha, thanks for your feedback!

I think you are right, please use temporal_scale instead.