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, Is There Any Way To Get Experiment Debug Images Programmatically?

Hi,
Is there any way to get experiment debug images programmatically?

  
  
Posted 4 years ago
Votes Newest

Answers 14


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')

  
  
Posted 4 years ago

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

  
  
Posted 4 years ago

also - should the value passed to task be the task id?

  
  
Posted 4 years ago

Maybe different API version...
What's the trains-server version?

  
  
Posted 4 years ago

and trains version

  
  
Posted 4 years ago

Basically try with the latest RC 🙂
pip install trains 0.15.2rc0

  
  
Posted 4 years ago

0.15.1-366

  
  
Posted 4 years ago

client version 0.15.1

  
  
Posted 4 years ago

HandsomeCrow5 check the latest RC, I just run the same code and it worked 🙂

  
  
Posted 4 years ago

That said, it might be different backend, I'll test with the demoserver

  
  
Posted 4 years ago

Okay verified, it won't work with the demo server. give me a minute 🙂

  
  
Posted 4 years ago

HandsomeCrow5
client.events.debug_images(metrics=[dict(task='6adb929f66d14731bc76e3493ab89d80', metric='image')])

  
  
Posted 4 years ago

metric=image is the name in the dropdown of the denugimages

  
  
Posted 4 years ago

to get all the image metrics:
client.events.get_task_metrics(tasks=['6adb929f66d14731bc76e3493ab89d80'], event_type='training_debug_image')

  
  
Posted 4 years ago