Skip to content

Commit

Permalink
[nodes] KeyframeSelection: Add minBlockSize param for multi-threading
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Aug 18, 2023
1 parent 9db9337 commit 13ae7d9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion meshroom/nodes/aliceVision/KeyframeSelection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "4.1"
__version__ = "4.2"

import os
from meshroom.core import desc
Expand Down Expand Up @@ -250,6 +250,18 @@ class KeyframeSelection(desc.AVCommandLineNode):
enabled=lambda node: node.smartSelection.enabled,
advanced=True
),
desc.IntParam(
name="minBlockSize",
label="Multi-Threading Minimum Block Size",
description="The minimum number of frames to process for a thread to be spawned.\n"
"If using all the available threads implies processing less than this value in every thread, then less threads should be spawned,\n"
"and each will process at least 'minBlockSize' (except maybe for the very last thread, that might process less).",
value=10,
range=(1, 1000, 1),
uid=[0],
enabled=lambda node: node.smartSelection.enabled,
advanced=True
)
]
)
]
Expand Down

0 comments on commit 13ae7d9

Please sign in to comment.