question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to display GIF in Aim ?

See original GitHub issue

❓Question

I’m recording an experiment of Reinforcement Learning.

I saved a rendered trajectory (a numpy array) as a GIF image through PIL and saved it locally which can be played normally.

I want to save the GIF to Aim Run. Then I convert the GIF to aim.Image and track it through the following codes.

gif_path = './trajectory.gif'
aim_image = aim.Image(image=gif_path, format='gif')
aim_run.track(value=aim_image, name=name, step=step_, context=context)

However, in the Aim UI, I found that GIF cannot be played normally, that is, it becomes a static picture (but it is still in GIF format)

By viewing the source code, I found that Aim saved the GIF (type: PIL.GifImagePlugin.GifImageFile) to BytesIO and converted it to a BLOB object.

Is this because BLOB object may not store GIF properly? Is there any way to save GIF to Aim Run and play it normally in Aim UI?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mantle2048commented, Apr 28, 2022

Hi @devfox-se

Sorry for the late reply. The demo looks very cool ! For me, this demo suits my needs.

In an experiment, I have to record dozens of GIFs to compare the performance during training, so it would be better if Aim could put all GIFs with the same tag together and switch through a slider. Just like the video below.

https://user-images.githubusercontent.com/37854077/165662295-940c6f55-0865-4f95-bf95-00f7acafc61d.mp4

0reactions
devfox-secommented, Apr 28, 2022

Hi @mantle2048

Thanks for your comment! As for now we do not have the exact sliding capability shown in the video, but it is sure a nice feature to have. Since it will take us some time and effort to implement this feature I would ask you to open a new issue/feature-request for that 😃

As for now I am closing this question and will open a new feature-request to cover the GIF feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aim GIFs - Tenor
With Tenor, maker of GIF Keyboard, add popular Aim animated GIFs to your conversations. Share the best GIFs now >>>
Read more >
Aim GIFs - Get the best GIF on GIPHY
Explore and share the best Aim GIFs and most popular animated GIFs here on GIPHY. Find Funny GIFs, Cute GIFs, Reaction GIFs and...
Read more >
GIF Marketing: How to Put GIFs Into Emails - Sendinblue
Select the GIF from your computer and drag the uploaded GIF into the image box. The GIF you uploaded will play on a...
Read more >
GIF files: How to create, edit and open them - Adobe
GIF image files are commonly used on the web to display graphics and logos. They also support basic animation, which means they're a...
Read more >
How to Make an Animated GIF in Photoshop [Tutorial]
To open Timeline, go to the top navigation, choose Window > Timeline. The Timeline will let you turn different layers on and off...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found