mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 01:46:31 +02:00
* node size is an estimation of the number of element to process on a given node, that may be used for parallelization. * replace the explicit reference to an attribute on a node (Parallelization.inputListParamName) * size can be: * dynamic: depends on the size of the node connected to a specific Attribute * static
55 lines
1.5 KiB
Python
55 lines
1.5 KiB
Python
import sys
|
|
from meshroom.core import desc
|
|
|
|
|
|
class PrepareDenseScene(desc.CommandLineNode):
|
|
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
|
commandLine = 'aliceVision_prepareDenseScene {allParams}'
|
|
size = desc.DynamicNodeSize('input')
|
|
|
|
inputs = [
|
|
desc.File(
|
|
name='input',
|
|
label='Input',
|
|
description='''SfMData file.''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
desc.ChoiceParam(
|
|
name='scale',
|
|
label='Scale',
|
|
description='''Image downscale factor.''',
|
|
value=2,
|
|
values=[1, 2, 4, 8, 16],
|
|
exclusive=True,
|
|
uid=[0],
|
|
),
|
|
desc.ChoiceParam(
|
|
name='verboseLevel',
|
|
label='Verbose Level',
|
|
description='''verbosity level (fatal, error, warning, info, debug, trace).''',
|
|
value='info',
|
|
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
|
|
exclusive=True,
|
|
uid=[],
|
|
),
|
|
]
|
|
|
|
outputs = [
|
|
desc.File(
|
|
name='ini',
|
|
label='MVS Configuration file',
|
|
description='',
|
|
value='{cache}/{nodeType}/{uid0}/_tmp_scale{scaleValue}/mvs.ini',
|
|
uid=[],
|
|
group='', # not a command line arg
|
|
),
|
|
|
|
desc.File(
|
|
name='output',
|
|
label='Output',
|
|
description='''Output folder.''',
|
|
value='{cache}/{nodeType}/{uid0}/',
|
|
uid=[],
|
|
)
|
|
]
|