-
Notifications
You must be signed in to change notification settings - Fork 29
Description
i try to run xrloc on a platform without cuda, but it does not work!
below is the error:
[03/13/2023 17:42:56 INFO] ==================================================
[03/13/2023 17:42:56 INFO] ****************** Init Success ******************
[03/13/2023 17:42:56 INFO] ==================================================
[03/13/2023 17:42:56 INFO] ======================[1 / 3]======================
[03/13/2023 17:42:56 INFO] Image path: query/000001.jpg
[03/13/2023 17:43:03 INFO] Local feature number: 2443
[03/13/2023 17:43:04 INFO] Coarse location number: 1
[03/13/2023 17:43:06 INFO] 3d points size: 7540
Traceback (most recent call last):
File "run_benchmark.py", line 52, in
main(args.query_path, args.map_path, args.json)
File "run_benchmark.py", line 34, in main
ret = loc.refine_localize(image, camera, ref_image_ids)
File "/home/gavin/Develop/xrlocalization/xrloc/localizer.py", line 212, in refine_localize
feat, image_ids)
File "/home/gavin/Develop/xrlocalization/xrloc/localizer.py", line 168, in establish_correspondences_2d3d
feat['shape'][0])
File "/home/gavin/Develop/xrlocalization/xrloc/localizer.py", line 113, in feature_match_2d3d
pred = self.matcher.match(query_feat, train_feat)
File "/home/gavin/Develop/xrlocalization/xrloc/matchers/matcher.py", line 57, in match
output = self.matcher(data)
File "/home/gavin/Develop/xrlocalization/xrloc/matchers/gam.py", line 34, in call
self.config['dis_thres'])
File "/home/gavin/Develop/xrlocalization/xrloc/matchers/gam.py", line 104, in knn_ratio_match
mask = torch.ones((dists.shape[0], k), dtype=torch.bool).cuda()
File "/home/gavin/miniconda3/envs/xrloc/lib/python3.7/site-packages/torch/cuda/init.py", line 221, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled