franktpmvu / NeighborTrack

[CVPR 2023 workshop] NeighborTrack: Single Object Tracking by Bipartite Matching With Neighbor Tracklets and Its Applications to Sports
47 stars 1 forks source link

setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 1. #12

Open zzzz1das opened 1 week ago

zzzz1das commented 1 week ago

Thank you for your work.When I was running the test set, this bug appeared, and the key is that some video sequences did not have this problem, and some did。

File "/home/disk1/track/tracking/../lib/test/evaluation/tracker.py", line 350, in _track_sequence state = ntracker._neighbor_track(image) File "/home/disk1/track/tracking/../NeighborTrack/neighbortrack.py", line 597, in _neighbor_track costmatrix[0,]=all_rev_iou ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 1.

Looking forward to your reply, thank you

franktpmvu commented 1 week ago

hi, could you print the shape of costmatrix and all_rev_iou? I guess this error is because of rev iou > cost matrix size. what is your running command? maybe is a bug from the max tracking time "tau" mismatch.

or you can set the delay_start as true, maybe it can help you to finish this problem.

https://github.com/franktpmvu/NeighborTrack/blob/29c6267c36a0407bbe7bf3bf3fd98763b7eb1103/neighbortrack.py#L39C1-L40C1

zzzz1das commented 1 week ago

hi, could you print the shape of costmatrix and all_rev_iou? I guess this error is because of rev iou > cost matrix size. what is your running command? maybe is a bug from the max tracking time "tau" mismatch.

or you can set the delay_start as true, maybe it can help you to finish this problem.

https://github.com/franktpmvu/NeighborTrack/blob/29c6267c36a0407bbe7bf3bf3fd98763b7eb1103/neighbortrack.py#L39C1-L40C1

Of course,I printed the values for all_rev_iou and costmatrix all_rev_iou:[array([0.]), array([0.85699043])] costmatrix:[[0. 0.] [0. 0.]]

The command to run is python tracking/test.py --dataset got10k_test --threads 0 --num_gpus 1

zzzz1das commented 1 week ago

hi, could you print the shape of costmatrix and all_rev_iou? I guess this error is because of rev iou > cost matrix size. what is your running command? maybe is a bug from the max tracking time "tau" mismatch. or you can set the delay_start as true, maybe it can help you to finish this problem. https://github.com/franktpmvu/NeighborTrack/blob/29c6267c36a0407bbe7bf3bf3fd98763b7eb1103/neighbortrack.py#L39C1-L40C1

Of course,I printed the values for all_rev_iou and costmatrix all_rev_iou:[array([0.]), array([0.85699043])] costmatrix:[[0. 0.] [0. 0.]]

The command to run is python tracking/test.py --dataset got10k_test --threads 0 --num_gpus 1

the shape of costmatrix is (2,2)

franktpmvu commented 1 week ago

Did you try setting the delay_start below as True?

https://github.com/franktpmvu/NeighborTrack/blob/29c6267c36a0407bbe7bf3bf3fd98763b7eb1103/neighbortrack.py#L39C1-L40C1