mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +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()
|
meshroom.setupEnvironment()
|
||||||
|
|
||||||
import meshroom.core.graph
|
import meshroom.core.graph
|
||||||
|
import meshroom.core.taskManager
|
||||||
from meshroom.core.node import Status
|
from meshroom.core.node import Status
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,5 +62,7 @@ else:
|
||||||
toNodes = None
|
toNodes = None
|
||||||
if args.toNode:
|
if args.toNode:
|
||||||
toNodes = graph.findNodes([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()
|
meshroom.setupEnvironment()
|
||||||
|
|
||||||
import meshroom.core.graph
|
import meshroom.core.graph
|
||||||
|
import meshroom.core.taskManager
|
||||||
from meshroom import multiview
|
from meshroom import multiview
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Launch the full photogrammetry or HDRI pipeline.')
|
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)
|
meshroom.core.graph.submit(args.save, args.submitter, toNode=toNodes)
|
||||||
elif args.compute:
|
elif args.compute:
|
||||||
# start computation
|
# 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