mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[bin] replace the executeGraph method by a task manager
This commit is contained in:
parent
6eeea3bb44
commit
201ab0b5fb
2 changed files with 7 additions and 2 deletions
|
@ -6,6 +6,7 @@ import meshroom
|
|||
meshroom.setupEnvironment()
|
||||
|
||||
import meshroom.core.graph
|
||||
import meshroom.core.taskManager
|
||||
from meshroom.core.node import Status
|
||||
|
||||
|
||||
|
@ -61,5 +62,7 @@ else:
|
|||
toNodes = None
|
||||
if args.toNode:
|
||||
toNodes = graph.findNodes([args.toNode])
|
||||
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
|
||||
|
||||
taskManager = meshroom.core.taskManager.TaskManager()
|
||||
taskManager.compute(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import meshroom
|
|||
meshroom.setupEnvironment()
|
||||
|
||||
import meshroom.core.graph
|
||||
import meshroom.core.taskManager
|
||||
from meshroom import multiview
|
||||
|
||||
parser = argparse.ArgumentParser(description='Launch the full photogrammetry or HDRI pipeline.')
|
||||
|
@ -200,4 +201,5 @@ if args.submit:
|
|||
meshroom.core.graph.submit(args.save, args.submitter, toNode=toNodes)
|
||||
elif args.compute:
|
||||
# start computation
|
||||
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
|
||||
taskManager = meshroom.core.taskManager.TaskManager()
|
||||
taskManager.compute(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
|
||||
|
|
Loading…
Add table
Reference in a new issue