fix: bug in infer script (#290)

The fix proposed by @Gaozhongpai. Thank you @Gaozhongpai.
This commit is contained in:
Zhizhou Zhong
2025-04-03 11:09:09 +08:00
committed by GitHub
parent 39ccf69f36
commit 23d88dcfb9

View File

@@ -59,14 +59,14 @@ cmd_args="--inference_config $config_path \
--result_dir $result_dir \
--unet_model_path $unet_model_path \
--unet_config $unet_config \
--version $version_arg \
--version $version_ar"
# Add realtime-specific arguments if in realtime mode
if [ "$mode" = "realtime" ]; then
cmd_args="$cmd_args \
--fps 25 \
--version $version_arg \
--version $version_arg"
fi
# Run inference
python3 -m $script_name $cmd_args
python3 -m $script_name $cmd_args