AdaSfM: From Coarse Global to Fine Incremental Adaptive Structure from Motion