Returns the depth fuser required. Our fuser doesn't allow for
(opts, scan)
| 715 | |
| 716 | |
| 717 | def get_fuser(opts, scan): |
| 718 | """Returns the depth fuser required. Our fuser doesn't allow for """ |
| 719 | |
| 720 | if opts.dataset == "scannet": |
| 721 | gt_path = ScannetDataset.get_gt_mesh_path(opts.dataset_path, |
| 722 | opts.split, scan) |
| 723 | else: |
| 724 | gt_path = None |
| 725 | |
| 726 | if opts.depth_fuser == "ours": |
| 727 | if opts.fuse_color: |
| 728 | print("WARNING: fusing color using 'ours' fuser is not supported, " |
| 729 | "Color will not be fused.") |
| 730 | |
| 731 | return OurFuser( |
| 732 | gt_path=gt_path, |
| 733 | fusion_resolution=opts.fusion_resolution, |
| 734 | max_fusion_depth=opts.fusion_max_depth, |
| 735 | fuse_color=False, |
| 736 | ) |
| 737 | if opts.depth_fuser == "open3d": |
| 738 | return Open3DFuser( |
| 739 | gt_path=gt_path, |
| 740 | fusion_resolution=opts.fusion_resolution, |
| 741 | max_fusion_depth=opts.fusion_max_depth, |
| 742 | fuse_color=opts.fuse_color, |
| 743 | ) |
| 744 | else: |
| 745 | raise ValueError("Unrecognized fuser!") |
nothing calls this directly
no test coverage detected