Zhizhou Zhong commited on
Commit
f50f534
·
unverified ·
1 Parent(s): 96d3878

fix: bug in infer script (#290)

Browse files

The fix proposed by

@Gaozhongpai
. Thank you

@Gaozhongpai
.

Files changed (1) hide show
  1. 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 $version_arg \
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