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

修复#8528 bug #8534

Open
wants to merge 1 commit into
base: release/2.6
Choose a base branch
from

Conversation

holy-chicken
Copy link

pattern = re.compile(r'c(\d)_t(\d)')
f_w = open(output_dir_filename, 'w')
for key, res in cid_tid_dict.items():
cid, tid = pattern.search(key).groups()
这个写法错误,如c0_t110 表示视频1,跟踪标签110,但是提取到的cid为0,tid为1,而不是完整的跟踪id,导致输出文件错误。
下文在匹配其他视角视频做reid时结果错误。
建议修改表达式为:
pattern = re.compile(r'c(\d+)_t(\d+)')

pattern = re.compile(r'c(\d)_t(\d+)')
f_w = open(output_dir_filename, 'w')
for key, res in cid_tid_dict.items():
cid, tid = pattern.search(key).groups()
这个写法错误,如c0_t110 表示视频1,跟踪标签110,但是提取到的cid为0,tid为1,而不是完整的跟踪id,导致输出文件错误
@paddle-bot
Copy link

paddle-bot bot commented Aug 14, 2023

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Aug 14, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants