本文整理汇总了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)