This issue arises at the last line of the sfm pipeline
visualization.visualize_sfm_2d(model, images, color_by="depth", n=5)
Traceback (most recent call last):
File "D:\path2\Hierarchical-Localization\test_pipeline.py", line 47, in <module>
visualization.visualize_sfm_2d(model, images, color_by="depth", n=5)
File "D:\path2\Hierarchical-Localization\hloc\visualization.py", line 49, in visualize_sfm_2d
[
File "D:\path2\Hierarchical-Localization\hloc\visualization.py", line 50, in <listcomp>
image.transform_to_image(reconstruction.points3D[j].xyz)[-1]
AttributeError: 'pycolmap.Image' object has no attribute 'transform_to_image'
This issue arises at the last line of the sfm pipeline
visualization.visualize_sfm_2d(model, images, color_by="depth", n=5)
https://github.com/cvg/Hierarchical-Localization/blob/936040e8d67244cc6c8c9d1667701f3ce87bf075/hloc/visualization.py#L48 I couldn't find this function anywhere.
And referenced another issue #357 but I'm not sure if my implementation is correct: