Skip to content

Commit

Permalink
Merge pull request #2536 from alicevision/fix/importMeshroomBatch
Browse files Browse the repository at this point in the history
[bin] Import correct `Graph` objects for `meshroom_batch`
  • Loading branch information
cbentejac authored Sep 16, 2024
2 parents cdc88e8 + 2b590c3 commit 03bd518
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/meshroom_batch
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import distutils.util
import json
import re

import meshroom
meshroom.setupEnvironment()
from meshroom import setupEnvironment

setupEnvironment()

import meshroom.core.graph
from meshroom import multiview
from meshroom.core.desc import InitNode
import logging

meshroom.core.initPipelines()
Expand Down Expand Up @@ -149,9 +148,9 @@ if not args.input and not args.inputRecursive:

meshroom.core.initNodes()

graph = multiview.Graph(name=args.pipeline)
graph = meshroom.core.graph.Graph(name=args.pipeline)

with multiview.GraphModification(graph):
with meshroom.core.graph.GraphModification(graph):
# initialize template pipeline
loweredPipelineTemplates = dict((k.lower(), v) for k, v in meshroom.core.pipelineTemplates.items())
if args.pipeline.lower() in loweredPipelineTemplates:
Expand Down

0 comments on commit 03bd518

Please sign in to comment.