Hi HandsomeGiraffe70
There is a way, this is the API. You can use it this way :
retrieve the task the model belongs to retrieve the model you want (from a lit of input and output models) create the metadata inject them to the model
Here is an example :
` from clearml import Task
from clearml.backend_api import Session
from clearml.backend_api.services import models
from clearml.backend_api.services.v2_13.models import MetadataItem
task = Task.get_task(project_name=project_name, task_name=task_name)
model = task.models['output'][0]
my_metadata = [MetadataItem(
key='this is my unique key 0000',
type='any_type',
value='My brand new Metadata')
]
session = Session()
res = session.send(models.AddOrUpdateMetadataRequest(
model=model.id,
metadata=my_metadata
))
print(res.response_data) `
Thanks SweetBadger76 for solution!
AnxiousSeal95 I look forward to hear it's ready 😀
Hi HandsomeGiraffe70 , David's suggestion is great and the way to go now. We are working on adding this functionality to the SDK (without using the APIclient) and document it better 🙂 Stay tuned 😄