當前位置: 首頁>>代碼示例>>Python>>正文


Python pipeline.Pipeline方法代碼示例

本文整理匯總了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) 
開發者ID:elsigh,項目名稱:browserscope,代碼行數:6,代碼來源:common.py

示例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) 
開發者ID:pathbreak,項目名稱:deepvisualminer,代碼行數:14,代碼來源:visualminer.py

示例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 
開發者ID:multi-commander,項目名稱:Multi-Commander,代碼行數:13,代碼來源:runexp.py

示例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) 
開發者ID:GoogleCloudPlatform,項目名稱:appengine-mapreduce,代碼行數:6,代碼來源:pipeline_base.py


注:本文中的pipeline.Pipeline方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。