rpg_public_dronet icon indicating copy to clipboard operation
rpg_public_dronet copied to clipboard

How does match_idx = match_idx[:,0] not work

Open dayhee opened this issue 6 years ago • 5 comments

Hi, I am using "time-stamp-matching" to generate “sync_steering .txt” but the error occurs when the program executes to "match_idx = match_idx[:,0]". The error is:

File "F:/rpg_public_dronet-master/data_preprocessing/time_stamp_matching.py", line 69, in match_idx = match_idx[:,0] IndexError: too many indices for array

and if I do not execute this sentence ,the program can be executed ,but the number of image is The number of images is much smaller than the number of lines in the “sync_steering .txt” . How does it happens?

dayhee avatar Oct 06 '18 10:10 dayhee

Hi,

I just run "time_stamp_matching.py" to generate the "sync_steering.txt" file for the testing sequence HMB_3. Can you print the result of match_idx on line 67 (https://github.com/uzh-rpg/rpg_public_dronet/blob/master/data_preprocessing/time_stamp_matching.py#L65)?

You should get:

match_idx = 
[array([0], dtype=int64), array([3], dtype=int64), array([6], dtype=int64), array([9], dtype=int64), array([12], dtype=int64), array([15], dtype=int64), array([18], dtype=int64), array([21], dtype=int64), array([24], dtype=int64), array([27], dtype=int64), array([30], ..., array([15828], dtype=int64), array([15831], dtype=int64), array([15834], dtype=int64)]]

len(match_idx) = 5279

anamaqueda avatar Oct 19 '18 16:10 anamaqueda

I have the same problem too. len(match_idx) gives me 0

zharifinho avatar Nov 13 '19 16:11 zharifinho

Hi,

Can you find the solution of this problem ?

kcaisfather avatar Jan 17 '20 19:01 kcaisfather

I faced the same problem but the problem was with the path of the images. Please confirm the variables 'folder' and 'ext' are correctly configured. Also checking the image file extension can help.

darshanz avatar Feb 26 '20 03:02 darshanz

I faced the same index error and it was solved by using the png flag in the bagdump step, i.e. ./run-bagdump.sh -i /home/user/input/ -o /home/user/output/ -- -f png

annahambi avatar Jul 30 '22 04:07 annahambi