本文整理匯總了Python中pipeline.Pipeline方法的典型用法代碼示例。如果您正苦於以下問題:Python pipeline.Pipeline方法的具體用法?Python pipeline.Pipeline怎麽用?Python pipeline.Pipeline使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pipeline
的用法示例。
在下文中一共展示了pipeline.Pipeline方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: import pipeline [as 別名]
# 或者: from pipeline import Pipeline [as 別名]
def __init__(self, *args):
if len(args) == 0:
raise TypeError('max expected at least 1 argument, got 0')
pipeline.Pipeline.__init__(self, *args)
示例2: detect
# 需要導入模塊: import pipeline [as 別名]
# 或者: from pipeline import Pipeline [as 別名]
def detect(input_path, output_directory, pipeline_file):
# if input_path is just a single file, we don't need all the multicore
# setup.
if os.path.isfile(input_path):
pipeline = Pipeline(pipeline_file, os.path.dirname(input_path), output_directory)
pipeline.execute(input_path)
elif os.path.isdir(input_path):
multiexecutor = MultiPipelineExecutor()
multiexecutor.execute(pipeline_file, input_path, output_directory)
else:
print("Input is not an image file or directory:", input_path)
示例3: pipeline_wrapper
# 需要導入模塊: import pipeline [as 別名]
# 或者: from pipeline import Pipeline [as 別名]
def pipeline_wrapper(dic_exp_conf, dic_agent_conf, dic_traffic_env_conf, dic_path):
ppl = Pipeline(dic_exp_conf=dic_exp_conf,
dic_agent_conf=dic_agent_conf,
dic_traffic_env_conf=dic_traffic_env_conf,
dic_path=dic_path
)
global multi_process
ppl.run(multi_process=multi_process)
print("pipeline_wrapper end")
return
示例4: start
# 需要導入模塊: import pipeline [as 別名]
# 或者: from pipeline import Pipeline [as 別名]
def start(self, **kwargs):
if "base_path" not in kwargs:
kwargs["base_path"] = parameters._DEFAULT_PIPELINE_BASE_PATH
return pipeline.Pipeline.start(self, **kwargs)