pycolmap
Hello, When I run demo_colmap.py with a 3090, the code is normal. However, if I run it with two 3090, an error will be reported: AttributeError: module 'pycolmap' has no attribute 'Reconstruction'
The output of one 3090 is different from that of two 3090
one 3090 Loaded pycolmap from: /opt/conda/envs/vggt/lib/python3.10/site-packages/pycolmap.cpython-310-x86_64-linux-gnu.so Attributes: ['AbsolutePoseEstimationOptions', 'AbsolutePoseRefinementOptions', 'BundleAdjuster', 'BundleAdjustmentConfig', 'BundleAdjustmentCovarianceEstimator', 'BundleAdjustmentCovarianceEstimatorBase', 'BundleAdjustmentCovarianceEstimatorCeresBackend', 'BundleAdjustmentOptions', 'COLMAP_build', 'COLMAP_version', 'Camera', 'CameraMode', 'CameraModelId', 'CopyType', 'Correspondence', 'CorrespondenceGraph', 'Database', 'DatabaseCache', 'DatabaseTransaction', 'DelaunayMeshingOptions', 'Device', 'EstimateTriangulationOptions', 'ExhaustiveMatchingOptions', 'ExhaustivePairGenerator', 'Image', 'ImageAlignmentError', 'ImagePairStat', 'ImageReaderOptions', 'ImageSelectionMethod', 'ImportedPairGenerator', 'IncrementalMapper', 'IncrementalMapperCallback', 'IncrementalMapperController', 'IncrementalMapperOptions', 'IncrementalMapperStatus', 'IncrementalPipelineOptions', 'IncrementalTriangulator', 'IncrementalTriangulatorOptions', 'ItemsView', 'KeysView', 'ListPoint2D', 'LocalBundleAdjustmentReport', 'LossFunctionType', 'MapCameraIdToCamera', 'MapImageIdToImage', 'MapPoint3DIdToPoint3D', 'Normalization', 'ObservationManager', 'PairGenerator', 'Point2D', 'Point3D', 'PoissonMeshingOptions', 'PosePrior', 'PosePriorCoordinateSystem', 'RANSACOptions', 'Reconstruction', 'ReconstructionManager', 'Rigid3d', 'Rotation3d', 'SequentialMatchingOptions', 'SequentialPairGenerator', 'Sift', 'SiftExtractionOptions', 'SiftMatchingOptions', 'Sim3d', 'SpatialMatchingOptions', 'SpatialPairGenerator', 'StereoFusionOptions', 'Timer', 'Track', 'TrackElement', 'TriangulationResidualType', 'TwoViewGeometry', 'TwoViewGeometryConfiguration', 'TwoViewGeometryOptions', 'UndistortCameraOptions', 'ValuesView', 'VocabTreeMatchingOptions', 'VocabTreePairGenerator', 'ceres_version', 'doc', 'file', 'loader', 'name', 'package', 'spec', 'version', 'absolute_pose_estimation', 'align_reconstructions_via_points', 'align_reconstructions_via_proj_centers', 'align_reconstructions_via_reprojections', 'align_reconstrution_to_locations', 'bundle_adjustment', 'compare_reconstructions', 'cost_functions', 'essential_matrix_estimation', 'estimate_calibrated_two_view_geometry', 'estimate_pose_covariance_from_ba', 'estimate_pose_covariance_from_ba_ceres_backend', 'estimate_triangulation', 'estimate_two_view_geometry', 'estimate_two_view_geometry_pose', 'extract_features', 'fundamental_matrix_estimation', 'has_cuda', 'homography_decomposition', 'homography_matrix_estimation', 'import_images', 'incremental_mapping', 'infer_camera_from_image', 'logging', 'match_exhaustive', 'match_sequential', 'match_spatial', 'match_vocabtree', 'ostream', 'poisson_meshing', 'pose_refinement', 'rig_absolute_pose_estimation', 'set_random_seed', 'squared_sampson_error', 'stereo_fusion', 'triangulate_points', 'undistort_images', 'verify_matches']
two 3090 The Loaded pycolmap from: / opt/conda/envs/VGGT/lib/python3.10 / site - packages/pycolmap/int.py Attributes: ['COLMAPDatabase', 'Camera', 'DualQuaternion', 'Image', 'Quaternion', 'SceneManager', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'camera', 'database', 'image', 'rotation', 'scene_manager']
Do you know what's going on? Looking forward to your reply
Hi this is usually because the colmap is not installed correctly. You can notice that, in two logs, the colmap is loaded from different paths. Can you try re-install it?
colmap 是从不同的路径加
Thank you for your reply. I tried to uninstall and reinstall, but still reported this error pip install pycolmap==3.10.0
In the 2-gpu setting, can you still try to import from
/opt/conda/envs/vggt/lib/python3.10/site-packages/pycolmap.cpython-310-x86_64-linux-gnu.so
?