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 Everybody. I Have Problem When Logging Model In A Specific Case. If Model Has Parameter That Is A Dict Than It Is Not Saved To Clearml Even Tho It Is Saved In A Model Folder Normally. I Have Also Attached Example When This Is Happening As A Snippet. D

Hi everybody. I have problem when logging model in a specific case. If model has parameter that is a dict than it is not saved to clearml even tho it is saved in a model folder normally. I have also attached example when this is happening as a snippet.

Does anybody knows why this is happening and is there any workaround, e.g. how to manually report model?

Thank you in advance and best regards 😄

  
  
Posted 2 years ago
Votes Newest

Answers 8


I will not be able to do it untill at least tomorrow but rest of the code is quite simple.. It is essentially this;

` task = Task.init(...)
task.output_uri = gs://<artifact_location>

model = build_model_test(None)
tf.keras.models.save_model(model, "/tmp/model")
`
I use both latest stable versions of clearml and tensorflow

  
  
Posted 2 years ago

Thanks! I think I was able to locate the issue, but I wanted to verify 🙂

  
  
Posted 2 years ago

Hi OutrageousGiraffe8

Does anybody knows why this is happening and is there any workaround, e.g. how to manually report model?

What exactly is the error you are getting? and with which clearml version are you using?
Regrading manual Model reporting:
https://clear.ml/docs/latest/docs/fundamentals/artifacts#manual-model-logging

  
  
Posted 2 years ago

Thanks OutrageousGiraffe8
Any chance you can expand the example code to be a fully a reproducible toy code? (I would really like to make sure we fix it)

  
  
Posted 2 years ago

i just run it and it saved it, I did nothing more then what was provided in the code. Only difference is in those two lines with comments, one works one does not.

# outputs = TestLayer(a=1, b=2)(inputs) # model uploads properly outputs = TestLayer(a=1, b={"b": 2})(inputs) # model does not uploadI just uncommented first line and commented second line

  
  
Posted 2 years ago

Thanks for pinging OutrageousGiraffe8
I think I was able to reproduce.

model is saved to the clearml as an output model when

b

is not a dictionary.

How did you make the example work with the automagic ?

  
  
Posted 2 years ago

There is no explicit error. When I call tf.keras.models.save_model(model, model_path) model is saved to the clearml as an output model when b is not a dictionary. But if b is dict than model is not saved, and is not in artifacts under output models

I will try to log model manually, thank you for the info. But still saving keras model should result in clearml artifact according to documentation, so I believe this might be a bug.

  
  
Posted 2 years ago

AgitatedDove14 Hi, were you able to reproduce issue? Can I be of any assistance? Do you still need toy code?

  
  
Posted 2 years ago
1K Views
8 Answers
2 years ago
one year ago
Tags
Similar posts