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

Is AFLink not possible to apply on MOT test sequences ? #61

Closed
ssbilakeri opened this issue Jan 2, 2023 · 1 comment
Closed

Is AFLink not possible to apply on MOT test sequences ? #61

ssbilakeri opened this issue Jan 2, 2023 · 1 comment

Comments

@ssbilakeri
Copy link

im getting bellow error when the code is run on test sequences, kindly suggest how to run AFLink and GSI on MOT test sequences.

gts = gts[(gts[:, 6] == 1) * (gts[:, 7] == 1)] # 仅考虑“considered" & "pedestrian"
IndexError: index 7 is out of bounds for axis 1 with size 7

@dyhBUPT
Copy link
Owner

dyhBUPT commented Jan 2, 2023

The code line gts = gts[(gts[:, 6] == 1) * (gts[:, 7] == 1)] is in the class LinkData, which is only used for training:

gts = gts[(gts[:, 6] == 1) * (gts[:, 7] == 1)] # 仅考虑“considered" & "pedestrian"

When you want to inference with AFLink, please refer to the following lines to set root='' of LinkData:

if opt.AFLink:
model = PostLinker()
model.load_state_dict(torch.load(opt.path_AFLink))
dataset = LinkData('', '')

@dyhBUPT dyhBUPT closed this as completed Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants