princeton-vl / DROID-SLAM

BSD 3-Clause "New" or "Revised" License
1.75k stars 295 forks source link

update tstamp (frame index) when removing keyframe #53

Open GCChen97 opened 2 years ago

GCChen97 commented 2 years ago

I found the frame indexes in the final tstamp do not correspond to the correct images. So, it needs to update the frame index so that downstream applications can correctly query the original image.

tiglieto commented 1 year ago

self.video.tstamps[ix] = self.video.tstamp[ix+1]

self.video.tstamp[ix] = self.video.tstamp[ix+1]