3DOM-FBK / COLMAP_SLAM

Visual-SLAM based on COLMAP API
MIT License
245 stars 23 forks source link

Processing stuck #4

Closed YaroslavShchekaturov closed 8 months ago

YaroslavShchekaturov commented 9 months ago

Hi Luca!

Thank you for your great work! While running python main.py. processing always gets stuck at some point and after that, I get only image

Have you ever seen something like that ?

lcmrl commented 9 months ago

Hi, so it works fine but after several minutes you have this error right?

YaroslavShchekaturov commented 9 months ago

Hi Luca,

I found that the process gets stuck usually when it reaches the last image.

YaroslavShchekaturov commented 9 months ago

image

lcmrl commented 9 months ago

The problem is that for now when the simulator finishes to replay the sequence it stops the application. The default behaviour is guided by FORCE_PROCESS_ALL_FRAMES = True, but if keyframe selection and keyframes orientation are too slow you can have a delay, and the application stops before finishing to process all the frames. To really go "real-time" you have to set FORCE_PROCESS_ALL_FRAMES to False.

So, could you check if changing in the config.ini file FORCE_PROCESS_ALL_FRAMES = False it works? If you have still problem, please try to skip some images like this:

STEP = 4
SIMULATOR_SLEEP_TIME = 0.2
lcmrl commented 8 months ago

I hope the issue is solved, please feel free to send any suggestions or open other issues. Any collaboration in improving and optimizing is very helpful, in the case you can fork and push your changes

YaroslavShchekaturov commented 8 months ago

Dear Luca, Thank you very much for your response. Everything works perfectly right now.