Skip to content

Commit

Permalink
fix video_vis args and web service args (#7931)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiboniu authored Mar 13, 2023
1 parent 5dc90ee commit 08a0d75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deploy/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,9 @@ def predict_video(self, video_file, thread_idx=0):
self.pipe_timer.total_time.end()
if self.cfg['visual']:
_, _, fps = self.pipe_timer.get_total_time()
im = self.visualize_video(frame_rgb, mot_res, frame_id,
fps, entrance, records,
center_traj) # visualize
im = self.visualize_video(
frame_rgb, mot_res, self.collector, frame_id, fps,
entrance, records, center_traj) # visualize
if len(self.pushurl) > 0:
pushstream.pipe.stdin.write(im.tobytes())
else:
Expand Down
2 changes: 1 addition & 1 deletion deploy/serving/python/web_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def parse_args(self, argv=None):
assert args.config is not None, \
"Please specify --config=configure_file_path."
args.service_config = self._parse_opt(args.opt, args.config)
print("args config:", args.service_config)
args.model_config = PredictConfig(args.model_dir)
return args

Expand Down Expand Up @@ -254,6 +253,7 @@ def get_model_vars(model_dir, service_config):
GLOBAL_VAR['fetch_vars'] = fetch_vars
GLOBAL_VAR['preprocess_ops'] = FLAGS.model_config.preprocess_infos
GLOBAL_VAR['model_config'] = FLAGS.model_config
print(FLAGS)
# define the service
uci_service = DetectorService(name="ppdet")
uci_service.prepare_pipeline_config(yml_dict=FLAGS.service_config)
Expand Down

0 comments on commit 08a0d75

Please sign in to comment.