Okay verified, it won't work with the demo server. give me a minute 🙂
to get all the image metrics:client.events.get_task_metrics(tasks=['6adb929f66d14731bc76e3493ab89d80'], event_type='training_debug_image')
HandsomeCrow5client.events.debug_images(metrics=[dict(task='6adb929f66d14731bc76e3493ab89d80', metric='image')])
HandsomeCrow5 check the latest RC, I just run the same code and it worked 🙂
Maybe different API version...
What's the trains-server version?
metric=image is the name in the dropdown of the denugimages
Hi HandsomeCrow5 .
Remember the debug images are events with links to the actual images, so you first have to get the events and then you can download the images with https://allegro.ai/docs/examples/examples_storagehelper/#storagemanager (which by definition has the credentials, because it was able to upload them 🙂
To get the events:from trains.backend_api.session.client import APIClient client = APIClient() client.events.debug_images(task='aabbcc')
Basically try with the latest RC 🙂
pip install trains 0.15.2rc0
Thanks AgitatedDove14
Using your snippet caused the following error:TypeError: __init__() missing 1 required positional argument: 'metrics'
when I used client.events.debug_images(task='aabbcc', metrics=None)
I got the following: ValueError: Unsupported keyword arguments: task
That said, it might be different backend, I'll test with the demoserver
also - should the value passed to task
be the task id?