RonaldSun / VI-Stereo-DSO

Direct sparse odometry combined with stereo cameras and IMU
387 stars 124 forks source link

Can't run with different output resolution #31

Open muskie82 opened 4 years ago

muskie82 commented 4 years ago

Hi,

Thanks for sharing the code.

I have the issue when I try the both mono and stereo mode on EuRoC dataset. I changed the output image resolution by modifying the 4th line of cam0.txt and cam1.txt, but segmentation fault happens.

Does anyone have an idea to fix this?

Screenshot from 2020-08-22 03-21-26

yushijie94 commented 3 years ago

In file CoarseTracker.cpp, line 974, imu_track_w[0] = imu_weight_tracker; keep this line and deleter following fourlines. They are not useful. This cause this problem. //imu_track_w[1] = imu_track_w[0]/1.2; //imu_track_w[2] = imu_track_w[1]/1.5; //imu_track_w[3] = imu_track_w[2]/2; //imu_track_w[4] = imu_track_w[3]/3;

LanTingxin commented 3 years ago

In file CoarseTracker.cpp, line 974, imu_track_w[0] = imu_weight_tracker; keep this line and deleter following fourlines. They are not useful. This cause this problem. //imu_track_w[1] = imu_track_w[0]/1.2; //imu_track_w[2] = imu_track_w[1]/1.5; //imu_track_w[3] = imu_track_w[2]/2; //imu_track_w[4] = imu_track_w[3]/3;

I try to run the code on Visual-Inertial Dataset,it works!