class_docstr: Build triton models from towhee pipeline.
class_docstr_tok: ["Build","triton","models","from","towhee","pipeline","."]
code: def build(self) -> bool:
      progress_bar = tqdm(
          total=len(self.dag_repr.nodes) + 1,
          desc="Building model and pipeline",
      )
      for node_id, node in self.dag_repr.nodes.items():
          if (
              node_id in ["_input", "_output"]
              or node.op_info.type != "hub"
          ):
              progress_bar.update(1)
              continue
          if not self._model_convert(node):
              return False
          progress_bar.update(1)
      status = PipeToTriton(
          self.dag_repr,
          self._model_root,
          constant.PIPELINE_NAME,
          self._server_conf,
      ).process()
      progress_bar.update(1)
      return status
  
file_path: towhee/towhee/serve/triton/pipeline_builder.py
imports: from typing import Dict
  from tqdm import tqdm
  from towhee.utils.log import engine_log
  from towhee.runtime import ops, AcceleratorConf
  from towhee.operator import NNOperator
  from towhee.serve.triton import constant
  from towhee.serve.triton.model_to_triton import ModelToTriton
  from towhee.serve.triton.pipe_to_triton import PipeToTriton
label_desc: Use image node_id 4 for calling the Builder obj's underlying member method code with example usage: obj.build() and returns: status, False