From b99cb332f2ebefa5865a392f23fb70d785844187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Mu=CC=88ller-Ho=CC=88hne?= Date: Mon, 18 Sep 2023 11:31:43 +0800 Subject: [PATCH] colmap2nerf: fix detectron category path resolution --- scripts/colmap2nerf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/colmap2nerf.py b/scripts/colmap2nerf.py index 613ac9f0d..5bf2a1eba 100755 --- a/scripts/colmap2nerf.py +++ b/scripts/colmap2nerf.py @@ -431,7 +431,7 @@ def closest_point_2_lines(oa, da, ob, db): # returns point closest to both rays from detectron2 import model_zoo from detectron2.engine import DefaultPredictor - category2id = json.load(open(SCRIPTS_FOLDER / "category2id.json", "r")) + category2id = json.load(open(os.path.join(SCRIPTS_FOLDER, "category2id.json"), "r")) mask_ids = [category2id[c] for c in args.mask_categories] cfg = get_cfg()