is https://clear.ml/docs/latest/docs/faq/#clearml-api the only place to see how to use the backend_api?
Iād like to programmatically (e.g. jupyter notebook) retrieve files/info related to a task from the server
RattyLouse61 , from what I can find - Yes. I've seen some examples shared on the community as well. Is there something specific you're looking for?
hi RattyLouse61
here is a code example, i hope it will help you to understand better the backend_api.
` from clearml import Task, Logger
from clearml.backend_api import Session
from clearml.backend_api.services import events
task = Task.get_task('xxxxx', 'xxxx')
session = Session()
res = session.send(events.GetDebugImageSampleRequest(
task=task.id,
metric=title,
variant=series)
)
print(res.response_data) `
RattyLouse61 , the API will retrieve the URLs for the debug samples. You can then download them manually. If you want these debug samples accessible by other tasks via SDK you might need to save them as artifacts, however you won't have visibility via the UI for those (like playing audio in debug samples section)
however, Iām not able to get the audio excerpts uploaded as debug samples. Your suggestion above requires to use REST api via clearml.backend_api
but Iām not very much familiar with it
some actions can be done using clearml.Task
, for instance get a local copy of a model, pull down the scalars etc.
I think this is the API you're looking for š
https://clear.ml/docs/latest/docs/references/api/events#post-eventsdebug_images
This should return what you're looking for. You can see a usage example in the developer tools when viewing debug samples in the UI