Skip to content

Commit

Permalink
colmap2nerf: fix detectron category path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Sep 18, 2023
1 parent 7d5e858 commit b99cb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/colmap2nerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b99cb33

Please sign in to comment.