Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Am Trying To Upload A Model Using Pipelinecontroller But I Get The Following Error. Clearml==1.8.3 Can Anyone Help Here?

Hi, I am trying to upload a model using PipelineController but I get the following error.
clearml==1.8.3
Can anyone help here?
` from clearml import PipelineController

pipe = PipelineController(
name="Yolo Pipeline Controller",
project="yolo_pipelines",
version="1.0.0"
)
pipe.upload_model(f'{main_args.output_uri}/model.onnx', f'{main_args.output_onnx_file}') `

  
  
Posted one year ago
Votes Newest

Answers 5


Don't call PipelineController functions after start has finished. Use a post_execute_callback instead
` from clearml import PipelineController

def some_step():
return

def upload_model_to_controller(controller, node):
print("Start uploading the model")

if name == "main":
pipe = PipelineController(name="Yolo Pipeline Controller", project="yolo_pipelines", version="1.0.0")

pipe.add_function_step(
    name="some_step",
    function=some_step,
    cache_executed_step=False,
    post_execute_callback=upload_model_to_controller
)

pipe.start() `
  
  
Posted one year ago

That is very odd. Is the script above all you're running?

  
  
Posted one year ago

gives the same error

  
  
Posted one year ago

Traceback (most recent call last): File "/home/mano/Desktop/askui-stuff/ml-models/pipelines/yolo/pipeline_yolo.py", line 163, in <module> print(pipe._get_pipeline_task()) File "/home/mano/anaconda3/envs/askuienv/lib/python3.9/site-packages/clearml/automation/controller.py", line 2649, in _get_pipeline_task if str(task.task_type) == str(Task.TaskTypes.controller) and cls._tag in task.get_system_tags(): AttributeError: 'NoneType' object has no attribute 'task_type'

  
  
Posted one year ago

is it just this script that you are running that breaks? What happens if instead of pipe.upload_model you call
print(pipe._get_pipeline_task())?

  
  
Posted one year ago