# How do I upload images and videos using WandbLoggerCallback

**URL:** <https://discuss.ray.io/t/how-do-i-upload-images-and-videos-using-wandbloggercallback/1277>\
**Category:** RLlib\
**Created:** [March 16, 2021, 12:21pm UTC](https://discuss.ray.io/t/how-do-i-upload-images-and-videos-using-wandbloggercallback/1277 "2021-03-16T12:21:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bam4d](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/bam4d/32/373_2.png) [@Bam4d](https://discuss.ray.io/u/Bam4d)\
**Post date:** [March 16, 2021, 12:21pm UTC](https://discuss.ray.io/t/how-do-i-upload-images-and-videos-using-wandbloggercallback/1277/1 "2021-03-16T12:21:17Z")

</div>

I thought it would be possible to add either Images or Videos to the `episode` as a custom\_metric or similar during a `on_episode_end` call. however the `custom_metric` dict only accepts float values.

The images/videos are created by the environment wrapper and placed in the ‘info’ dict periodically

How do i get this data into the `results` that are passed to the WandbLogger?

(I think I can do it in the next version due to this: [ray/custom\_metrics\_and\_callbacks.py at master · ray-project/ray · GitHub](https://github.com/ray-project/ray/blob/master/rllib/examples/custom_metrics_and_callbacks.py#L62)) Is there a way to do this on 1.2.0?

Thanks

---

<div class="post-metadata">

**Author:** ![Bam4d](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/bam4d/32/373_2.png) [@Bam4d](https://discuss.ray.io/u/Bam4d)\
**Post date:** [March 18, 2021, 11:38am UTC](https://discuss.ray.io/t/how-do-i-upload-images-and-videos-using-wandbloggercallback/1277/2 "2021-03-18T11:38:08Z")

</div>

Created this PR to try to solve this issue:

> <https://github.com/ray-project/ray/pull/14767>
