cvg / limap

A toolbox for mapping and localization with line features.
BSD 3-Clause "New" or "Revised" License
691 stars 68 forks source link

RuntimeError: PytorchStreamReader #49

Closed WHU-Dewran closed 1 year ago

WHU-Dewran commented 1 year ago

When I run Line Mapping in Quickstart python runners/hypersim/triangulation.py --output_dir outputs/quickstart_triangulation, occurs the error: Computing visual neighbors... (n_neighbors = 20) [LOG] Start 2D line detection and description (detector = deeplsd, extractor = wireframe, n_images = 98)... 100%|███████████████████████████████████████████| 98/98 [00:21<00:00, 4.46it/s] Loaded SuperPoint model 100%|███████████████████████████████████████████| 98/98 [00:02<00:00, 43.43it/s] [LOG] Start matching 2D lines... (extractor = wireframe, matcher = gluestick, n_images = 98, n_neighbors = 20) Loaded SuperPoint model Traceback (most recent call last): File "/home/rylynn/limap/runners/hypersim/triangulation.py", line 42, in <module> main() File "/home/rylynn/limap/runners/hypersim/triangulation.py", line 39, in main run_scene_hypersim(cfg, dataset, cfg["scene_id"], cam_id=cfg["cam_id"]) File "/home/rylynn/limap/runners/hypersim/triangulation.py", line 14, in run_scene_hypersim linetracks = limap.runners.line_triangulation(cfg, imagecols) File "/home/rylynn/limap/limap/runners/line_triangulation.py", line 66, in line_triangulation matches_dir = _runners.compute_matches(cfg, descinfo_folder, imagecols.get_img_ids(), neighbors) File "/home/rylynn/limap/limap/runners/functions.py", line 207, in compute_matches matcher = limap.line2d.get_matcher(cfg["line2d"]["matcher"], extractor, n_neighbors=cfg["n_neighbors"], weight_path=weight_path) File "/home/rylynn/limap/limap/line2d/register_matcher.py", line 38, in get_matcher return GlueStickMatcher(extractor, options) File "/home/rylynn/limap/limap/line2d/GlueStick/matcher.py", line 20, in __init__ ckpt = torch.load(ckpt, map_location='cpu')['model'] File "/home/rylynn/anaconda3/lib/python3.9/site-packages/torch/serialization.py", line 705, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "/home/rylynn/anaconda3/lib/python3.9/site-packages/torch/serialization.py", line 242, in __init__ super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory Have no idea what is going on here. The previous installation steps all have done successfully, so I don't think some files are misssing. When I run Line Mapping on my own dataset, there occurs the same error. Please, seeking for help...