Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more information (metrics, images) to an experiment (AimCallback is used there) #3128

Open
andife opened this issue Mar 27, 2024 · 1 comment
Labels
type / question Issue type: question

Comments

@andife
Copy link

andife commented Mar 27, 2024

❓Question

Hi,

I'm using the AimCallback (aim.keras import) for my training within tensorflow.

Now I wanta directly integrate some result so the same run. For example some metrics and images?
How can I combine an existing callback with additional infos?

Thank you

@andife andife added the type / question Issue type: question label Mar 27, 2024
@mihran113
Copy link
Contributor

Hey @andife! The instance of AimCallback class has a property named experiment, which is the underlying aim.Run object. So to track additional metrics and images, you'll need to do something like this:

from aim.keras import AimCallback
from aim import Image as AimImage

aim_callback = AimCallback()
...
aim_callback.experiment.track(0, 'test_metric')
aim_callback.experiment.track(AimImage(some_input), 'test_image_sequence')

You can find additional details about how to track images in the documentation, if there'll be any questions.
https://aimstack.readthedocs.io/en/latest/quick_start/supported_types.html#image-tracking-with-aim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type / question Issue type: question
Projects
None yet
Development

No branches or pull requests

2 participants