[nodes] Remove invalidate=True from descriptions

This commit is contained in:
Candice Bentéjac 2024-09-06 17:30:22 +02:00
parent 07b65499ce
commit 41a1b47c43
81 changed files with 8 additions and 1076 deletions

View file

@ -18,28 +18,24 @@ class CameraLocalization(desc.AVCommandLineNode):
label="SfMData",
description="The SfMData file generated by AliceVision.",
value="",
invalidate=True,
),
desc.File(
name="mediafile",
label="Media File",
description="The folder path or the filename for the media to track.",
value="",
invalidate=True,
),
desc.File(
name="visualDebug",
label="Visual Debug Folder",
description="If a folder is provided, this enables visual debug and all the debugging information will be saved in that folder.",
value="",
invalidate=True,
),
desc.File(
name="descriptorPath",
label="Descriptor Path",
description="Folder containing the descriptors for all the images (ie. the *.desc.).",
value="",
invalidate=True,
),
desc.ChoiceParam(
name="matchDescTypes",
@ -48,7 +44,6 @@ class CameraLocalization(desc.AVCommandLineNode):
values=DESCRIBER_TYPES,
value=["dspsift"],
exclusive=False,
invalidate=True,
joinChar=",",
),
desc.ChoiceParam(
@ -58,7 +53,6 @@ class CameraLocalization(desc.AVCommandLineNode):
value="normal",
values=["low", "medium", "normal", "high", "ultra"],
exclusive=True,
invalidate=True,
),
desc.ChoiceParam(
name="resectionEstimator",
@ -67,7 +61,6 @@ class CameraLocalization(desc.AVCommandLineNode):
value="acransac",
values=["acransac", "loransac"],
exclusive=True,
invalidate=True,
),
desc.ChoiceParam(
name="matchingEstimator",
@ -76,21 +69,18 @@ class CameraLocalization(desc.AVCommandLineNode):
value="acransac",
values=["acransac", "loransac"],
exclusive=True,
invalidate=True,
),
desc.File(
name="calibration",
label="Calibration",
description="Calibration file.",
value="",
invalidate=True,
),
desc.BoolParam(
name="refineIntrinsics",
label="Refine Intrinsics",
description="Enable/Disable camera intrinsics refinement for each localized image.",
value=False,
invalidate=True,
),
desc.FloatParam(
name="reprojectionError",
@ -98,7 +88,6 @@ class CameraLocalization(desc.AVCommandLineNode):
description="Maximum reprojection error (in pixels) allowed for resectioning. If set to 0, it lets the ACRansac select an optimal value.",
value=4.0,
range=(0.1, 50.0, 0.1),
invalidate=True,
),
desc.IntParam(
name="nbImageMatch",
@ -106,7 +95,6 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[voctree] Number of images to retrieve in database.",
value=4,
range=(1, 1000, 1),
invalidate=True,
),
desc.IntParam(
name="maxResults",
@ -114,7 +102,6 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[voctree] For algorithm AllResults, it stops the image matching when this number of matched images is reached. If 0 it is ignored.",
value=10,
range=(1, 100, 1),
invalidate=True,
),
desc.IntParam(
name="commonviews",
@ -122,21 +109,18 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[voctree] Number of minimum images in which a point must be seen to be used in cluster tracking.",
value=3,
range=(2, 50, 1),
invalidate=True,
),
desc.File(
name="voctree",
label="Voctree",
description="[voctree] Filename for the vocabulary tree.",
value="${ALICEVISION_VOCTREE}",
invalidate=True,
),
desc.File(
name="voctreeWeights",
label="Voctree Weights",
description="[voctree] Filename for the vocabulary tree weights.",
value="",
invalidate=True,
),
desc.ChoiceParam(
name="algorithm",
@ -145,7 +129,6 @@ class CameraLocalization(desc.AVCommandLineNode):
value="AllResults",
values=["FirstBest", "AllResults"],
exclusive=True,
invalidate=True,
),
desc.FloatParam(
name="matchingError",
@ -153,7 +136,6 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[voctree] Maximum matching error (in pixels) allowed for image matching with geometric verification. If set to 0, it lets the ACRansac select an optimal value.",
value=4.0,
range=(0.0, 50.0, 1.0),
invalidate=True,
),
desc.IntParam(
name="nbFrameBufferMatching",
@ -161,14 +143,12 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[voctree] Number of previous frames of the sequence to use for matching (0 = Disable).",
value=10,
range=(0, 100, 1),
invalidate=True,
),
desc.BoolParam(
name="robustMatching",
label="Robust Matching",
description="[voctree] Enable/Disable the robust matching between query and database images, all putative matches will be considered.",
value=True,
invalidate=True,
),
desc.IntParam(
name="nNearestKeyFrames",
@ -176,28 +156,24 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[cctag] Number of images to retrieve in the database. Parameters specific for final (optional) bundle adjustment optimization of the sequence.",
value=5,
range=(1, 100, 1),
invalidate=True,
),
desc.StringParam(
name="globalBundle",
label="Global Bundle",
description="[bundle adjustment] If --refineIntrinsics is not set, this option allows to run a final global bundle adjustment to refine the scene.",
value="",
invalidate=True,
),
desc.BoolParam(
name="noDistortion",
label="No Distortion",
description="[bundle adjustment] It does not take into account distortion during the BA, it considers the distortion coefficients to all be equal to 0.",
value=False,
invalidate=True,
),
desc.BoolParam(
name="noBArefineIntrinsics",
label="No BA Refine Intrinsics",
description="[bundle adjustment] If set to true, does not refine intrinsics during BA.",
value=False,
invalidate=True,
),
desc.IntParam(
name="minPointVisibility",
@ -205,7 +181,6 @@ class CameraLocalization(desc.AVCommandLineNode):
description="[bundle adjustment] Minimum number of observations that a point must have in order to be considered for bundle adjustment.",
value=2,
range=(2, 50, 1),
invalidate=True,
),
desc.ChoiceParam(
name="verboseLevel",
@ -214,7 +189,6 @@ class CameraLocalization(desc.AVCommandLineNode):
values=VERBOSE_LEVEL,
value="info",
exclusive=True,
invalidate=False,
),
]
@ -224,13 +198,11 @@ class CameraLocalization(desc.AVCommandLineNode):
label="Alembic",
description="Filename for the SfMData export file (where camera poses will be stored).",
value=desc.Node.internalFolder + "trackedCameras.abc",
invalidate=False,
),
desc.File(
name="outputJSON",
label="JSON File",
description="Filename for the localization results as .json.",
value=desc.Node.internalFolder + "trackedCameras.json",
invalidate=False,
),
]