Skip to content

Commit 05080b2

Browse files
authored
Merge pull request #2011 from alicevision/dev/sfmBootstraping
sfm bootstraping
2 parents 00133f1 + 48b2685 commit 05080b2

File tree

2 files changed

+149
-0
lines changed

2 files changed

+149
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
__version__ = "1.0"
2+
3+
from meshroom.core import desc
4+
5+
class RelativePoseEstimating(desc.AVCommandLineNode):
6+
commandLine = 'aliceVision_relativePoseEstimating {allParams}'
7+
size = desc.DynamicNodeSize('input')
8+
9+
parallelization = desc.Parallelization(blockSize=25)
10+
commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeBlockSize}'
11+
12+
category = 'Sparse Reconstruction'
13+
documentation = '''
14+
'''
15+
16+
inputs = [
17+
desc.File(
18+
name="input",
19+
label="SfMData",
20+
description="SfMData file.",
21+
value="",
22+
uid=[0],
23+
),
24+
desc.ListAttribute(
25+
elementDesc=desc.File(
26+
name="featuresFolder",
27+
label="Features Folder",
28+
description="",
29+
value="",
30+
uid=[0],
31+
),
32+
name="featuresFolders",
33+
label="Features Folders",
34+
description="Folder(s) containing the extracted features and descriptors."
35+
),
36+
desc.File(
37+
name="tracksFilename",
38+
label="Tracks File",
39+
description="Tracks file.",
40+
value="",
41+
uid=[0],
42+
),
43+
desc.ChoiceParam(
44+
name="describerTypes",
45+
label="Describer Types",
46+
description="Describer types used to describe an image.",
47+
value=["dspsift"],
48+
values=["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop", "akaze_mldb", "cctag3", "cctag4", "sift_ocv", "akaze_ocv", "tag16h5"],
49+
exclusive=False,
50+
uid=[0],
51+
joinChar=",",
52+
),
53+
desc.ChoiceParam(
54+
name="verboseLevel",
55+
label="Verbose Level",
56+
description="Verbosity level (fatal, error, warning, info, debug, trace).",
57+
value="info",
58+
values=["fatal", "error", "warning", "info", "debug", "trace"],
59+
exclusive=True,
60+
uid=[],
61+
)
62+
]
63+
64+
outputs = [
65+
desc.File(
66+
name="output",
67+
label="Pairs Info",
68+
description="Path to the output Pairs info files directory.",
69+
value=desc.Node.internalFolder,
70+
uid=[],
71+
)
72+
]
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
__version__ = "1.0"
2+
3+
from meshroom.core import desc
4+
5+
6+
class SfMBootStraping(desc.AVCommandLineNode):
7+
commandLine = 'aliceVision_sfmBootstraping {allParams}'
8+
size = desc.DynamicNodeSize('input')
9+
10+
category = 'Sparse Reconstruction'
11+
documentation = '''
12+
'''
13+
14+
inputs = [
15+
desc.File(
16+
name="input",
17+
label="SfMData",
18+
description="SfMData file.",
19+
value="",
20+
uid=[0],
21+
),
22+
desc.ListAttribute(
23+
elementDesc=desc.File(
24+
name="featuresFolder",
25+
label="Features Folder",
26+
description="",
27+
value="",
28+
uid=[0],
29+
),
30+
name="featuresFolders",
31+
label="Features Folders",
32+
description="Folder(s) containing the extracted features and descriptors."
33+
),
34+
desc.File(
35+
name="tracksFilename",
36+
label="Tracks File",
37+
description="Tracks file.",
38+
value="",
39+
uid=[0],
40+
),
41+
desc.File(
42+
name="pairs",
43+
label="Pairs File",
44+
description="Information on pairs.",
45+
value="",
46+
uid=[0],
47+
),
48+
desc.ChoiceParam(
49+
name="describerTypes",
50+
label="Describer Types",
51+
description="Describer types used to describe an image.",
52+
value=["dspsift"],
53+
values=["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop", "akaze_mldb", "cctag3", "cctag4", "sift_ocv", "akaze_ocv", "tag16h5"],
54+
exclusive=False,
55+
uid=[0],
56+
joinChar=",",
57+
),
58+
desc.ChoiceParam(
59+
name="verboseLevel",
60+
label="Verbose Level",
61+
description="Verbosity level (fatal, error, warning, info, debug, trace).",
62+
value="info",
63+
values=["fatal", "error", "warning", "info", "debug", "trace"],
64+
exclusive=True,
65+
uid=[],
66+
)
67+
]
68+
69+
outputs = [
70+
desc.File(
71+
name="output",
72+
label="SfMData",
73+
description="Path to the output SfMData file.",
74+
value=desc.Node.internalFolder + "sfm.json",
75+
uid=[],
76+
)
77+
]

0 commit comments

Comments
 (0)