Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs for using camera #8971

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions deploy/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,14 @@ def __init__(self, args, cfg, is_video=True, multi_camera=False):
args, video_action_cfg)

def set_file_name(self, path):
if type(path) == int:
self.file_name = path
elif path is not None:
self.file_name = os.path.split(path)[-1]
if "." in self.file_name:
self.file_name = self.file_name.split(".")[-2]
if path is not None:
if isinstance(path, int):
self.file_name = None
else:
self.file_name = os.path.split(path)[-1]
if "." in self.file_name:
self.file_name = self.file_name.split(".")[-2]
else:
# use camera id
self.file_name = None

def get_result(self):
Expand Down