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
Is This The Write Way To Add A Tag To An Output Model Artifact Of A Task? Torch.Save(Model, '

Is this the write way to add a tag to an output model artifact of a task?

torch.save(model, ' http://best.pt ')
output_model = task.models['output'][-1]
output_model.tags=['deployed']

  
  
Posted one year ago
Votes Newest

Answers 19


Looks decent, give it a try and update us it's working 🙂

  
  
Posted one year ago

Exact same usage?

  
  
Posted one year ago

adding tags this way to a Dataset object works fine. This issue only occured when doing this to a model.

  
  
Posted one year ago

Interesting. I'll try to reproduce and see if it occurs to me as well 🙂

  
  
Posted one year ago

I'm on windows rn, and I work with clearml on ubuntu. I think it's 1.1.5rc4

  
  
Posted one year ago

Which version of clearml are you using?

  
  
Posted one year ago

I wasn't able to reproduce it on my side. Can you try the following?
In clearml/examples/reporting/mode_config.py
Under line 45:
OutputModel().update_weights('my_best_model.bin')
Add the following:
output_model = task.models['output'][-1]
output_model.tags=['deployed']

And check in the UI if you get a tag on the model

  
  
Posted one year ago

I'm using clearml installed via pip in a conda env. Do I find this file inside the environment directory?

  
  
Posted one year ago

CostlyOstrich36

  
  
Posted one year ago

So I had an issue that it didn't add the tags for some reason. There was no error, just that there were no tags on the model.

  
  
Posted one year ago

I basically had to set the tag manually in the UI

  
  
Posted one year ago

were you able to reproduce it CostlyOstrich36 ?

  
  
Posted one year ago

Please try like this model.tags=['Test'] and not with append

  
  
Posted one year ago

Let me give it a try.

  
  
Posted one year ago

Doesn't matter how many times I run this code, it'll always give this same output. The tag gets appended to the list but isn't saved. Unless there's something else I'm supposed to do as well.

  
  
Posted one year ago

It works this way. Thank you.

  
  
Posted one year ago

Yeah exact same usage.

  
  
Posted one year ago

VexedCat68 , just making sure, when talking about tags for models, you mean the tags viewable in the 'models' tab in UI, correct?

  
  
Posted one year ago

yeah.

  
  
Posted one year ago
283 Views
19 Answers
one year ago
8 months ago
Tags