Update mast3r.py
Browse files
mast3r.py
CHANGED
@@ -8,7 +8,7 @@ from mini_dust3r.utils.misc import (
|
|
8 |
from mini_dust3r.model import load_model
|
9 |
from pathlib import Path
|
10 |
import uuid
|
11 |
-
from utils import create_image_grid
|
12 |
import rerun as rr
|
13 |
import rerun.blueprint as rrb
|
14 |
import os
|
@@ -40,7 +40,7 @@ class AsymmetricMASt3R(AsymmetricCroCo3DStereo):
|
|
40 |
# allocate heads
|
41 |
from mini_dust3r.heads.linear_head import LinearPts3d
|
42 |
from mini_dust3r.heads.dpt_head import create_dpt_head
|
43 |
-
from catmlp_dpt_head import Cat_MLP_LocalFeatures_DPT_Pts3d, postprocess
|
44 |
|
45 |
def head_factory(head_type, output_mode, net, has_conf=False):
|
46 |
"""" build a prediction head for the decoder
|
@@ -113,6 +113,7 @@ class MASt3R:
|
|
113 |
)
|
114 |
return blueprint
|
115 |
|
|
|
116 |
def generate_point_cloud(self, image_name_list):
|
117 |
if not isinstance(image_name_list, list) and not isinstance(image_name_list, str):
|
118 |
raise Exception(
|
|
|
8 |
from mini_dust3r.model import load_model
|
9 |
from pathlib import Path
|
10 |
import uuid
|
11 |
+
from utils import create_image_grid
|
12 |
import rerun as rr
|
13 |
import rerun.blueprint as rrb
|
14 |
import os
|
|
|
40 |
# allocate heads
|
41 |
from mini_dust3r.heads.linear_head import LinearPts3d
|
42 |
from mini_dust3r.heads.dpt_head import create_dpt_head
|
43 |
+
from catmlp_dpt_head import Cat_MLP_LocalFeatures_DPT_Pts3d, postprocess # Corrected import
|
44 |
|
45 |
def head_factory(head_type, output_mode, net, has_conf=False):
|
46 |
"""" build a prediction head for the decoder
|
|
|
113 |
)
|
114 |
return blueprint
|
115 |
|
116 |
+
|
117 |
def generate_point_cloud(self, image_name_list):
|
118 |
if not isinstance(image_name_list, list) and not isinstance(image_name_list, str):
|
119 |
raise Exception(
|