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 Assume It Is Very Basic But How Can I Add The Model That Is Created In The Training To The Artifacts And To See It In The Models Tab?

Hi, I assume it is very basic but how can I add the model that is created in the training to the artifacts and to see it in the models tab?

  
  
Posted 3 years ago
Votes Newest

Answers 26


PlainSquid19 I will also look into it as well.
maybe for some reason model.keras_model.save_weights is not caught ...

  
  
Posted 3 years ago

Interesting... the code looks similar... i really don't know why it didn't showed the models in my trainings... I will try to add it manually for now

  
  
Posted 3 years ago

*this

  
  
Posted 3 years ago

yes, I can see the model for his training in the web

  
  
Posted 3 years ago

It is running, 3/6

  
  
Posted 3 years ago

(This code sample should work on your setup with your installed packages without a problem)

  
  
Posted 3 years ago

so I didn't have much time to upgrade all the packs because I have some issues with that but it is on my todo list

No worries 🙂

Quick question, if you run https://github.com/allegroai/trains/blob/master/examples/frameworks/keras/legacy/keras_tensorboard.py
Do you see models in the artifacts tab?

  
  
Posted 3 years ago

from keras import

  
  
Posted 3 years ago

so I didn't have much time to upgrade all the packs because I have some issues with that but it is on my todo list

  
  
Posted 3 years ago

TF 1.15 (yes I know... i work on an old model of maskrcnn)

  
  
Posted 3 years ago

Are you doing from keras import ... or from tensorflow.keras import ?

  
  
Posted 3 years ago

Keras 2.1.6

  
  
Posted 3 years ago

but I belive it should have work with 0.14.1 as well

Correct

  
  
Posted 3 years ago

but I belive it should have work with 0.14.1 as well

  
  
Posted 3 years ago

BTW: What's the TF / Keras version?

  
  
Posted 3 years ago

I will update

  
  
Posted 3 years ago

*I see there is 0.16.1

  
  
Posted 3 years ago

i see

  
  
Posted 3 years ago

0.14.1

  
  
Posted 3 years ago

one sec

  
  
Posted 3 years ago

python package

  
  
Posted 3 years ago

Hmmm, what's your trains version ?

  
  
Posted 3 years ago

AgitatedDove14 In my train I see under this section " NO ARTIFACTS RECORDED"

  
  
Posted 3 years ago

Your code should have worked, i.e. you should see the 'model.h5' in the artifacts tab. What do you have there?
It should look something like this one:
https://demoapp.trains.allegro.ai/projects/531785e122644ca5b85b2e19b0321def/experiments/e185cf31b2634e95abc7f9fbdef60e0f/artifacts/output-model

BTW:
To manually register any model:

from trains import Task, OutputModel task = Task.init('examples', 'my model') OutputModel().update_weights('my_best_model.h5')

  
  
Posted 3 years ago

i use Keras, "model.keras_model.save_weights(os.path.join(output_directory, 'model.h5'))" i want to see the results in trains... how do I do it? (I can see it saves the model in my dir but I can't see it on trains)

  
  
Posted 3 years ago

Hi PlainSquid19
Any model stored by TF/Keras/PyTorch/Joblib will automatically appear in the artifact/models tab.
Are you asking on how to add one manually ?

  
  
Posted 3 years ago