-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I am trying to run the inference code.
The first problem I meet is conflict with numpy 2.0 when I trying to install the pangolin following the readme.
I then comment viewer in the inference code and then run the inference sorely, this error appear:
python3 inference.py --config configs/config_train_7scenes_sfd2.yaml --rec_weight_path weights/7scenes_nc113_birch_segnetvit.199.pth --landmark_path /media/eleboss/data/vpr-dataset/landmarks/ --online
Load SFD2 weight from weights/sfd2_20230511_210205_resnet4x.79.pth
Load recognition weight from weights/7scenes_nc113_birch_segnetvit.199.pth
Load 1 cameras 191 images 5852 3D points
Load 16 segments and 71603 3d points
Traceback (most recent call last):
File "/home/eleboss/Documents/pram/inference.py", line 60, in
loc_by_rec_online(rec_model=rec_model.cuda().eval(),
File "/home/eleboss/Documents/pram/localization/loc_by_rec_online.py", line 31, in loc_by_rec_online
locMap = MultiMap3D(config=config, save_dir=None)
File "/home/eleboss/Documents/pram/localization/multimap3d.py", line 46, in init
self.initialize_map(config=config)
File "/home/eleboss/Documents/pram/localization/multimap3d.py", line 81, in initialize_map
sub_map = SingleMap3D(config=new_config,
File "/home/eleboss/Documents/pram/localization/singlemap3d.py", line 102, in init
self.read_gt_pose(path=gt_pose_path)
File "/home/eleboss/Documents/pram/localization/singlemap3d.py", line 105, in read_gt_pose
self.gt_poses = read_gt_pose(path=path)
File "/home/eleboss/Documents/pram/localization/utils.py", line 74, in read_gt_pose
with open(path, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/scratches/flyer_3/fx221/dataset/7Scenes/chess/queries_poses.txt'