Zhizhou Zhong
commited on
fix: bug in infer script (#290)
Browse filesThe fix proposed by
@Gaozhongpai
. Thank you
@Gaozhongpai
.
- inference.sh +3 -3
inference.sh
CHANGED
|
@@ -59,14 +59,14 @@ cmd_args="--inference_config $config_path \
|
|
| 59 |
--result_dir $result_dir \
|
| 60 |
--unet_model_path $unet_model_path \
|
| 61 |
--unet_config $unet_config \
|
| 62 |
-
--version $
|
| 63 |
|
| 64 |
# Add realtime-specific arguments if in realtime mode
|
| 65 |
if [ "$mode" = "realtime" ]; then
|
| 66 |
cmd_args="$cmd_args \
|
| 67 |
--fps 25 \
|
| 68 |
-
--version $version_arg
|
| 69 |
fi
|
| 70 |
|
| 71 |
# Run inference
|
| 72 |
-
python3 -m $script_name $cmd_args
|
|
|
|
| 59 |
--result_dir $result_dir \
|
| 60 |
--unet_model_path $unet_model_path \
|
| 61 |
--unet_config $unet_config \
|
| 62 |
+
--version $version_ar"
|
| 63 |
|
| 64 |
# Add realtime-specific arguments if in realtime mode
|
| 65 |
if [ "$mode" = "realtime" ]; then
|
| 66 |
cmd_args="$cmd_args \
|
| 67 |
--fps 25 \
|
| 68 |
+
--version $version_arg"
|
| 69 |
fi
|
| 70 |
|
| 71 |
# Run inference
|
| 72 |
+
python3 -m $script_name $cmd_args
|