google / google/mediapy

mediapy `display_images()` downsamples images seemingly arbitrarily....

Open
#42 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
450
Forks
28
Avg merge
11d 2h
Merged PRs (30d)
1

Description

Issue tested with version: https://github.com/google/mediapy/pull/41

a) If I call `media.show_images()` once passing it a dict of 32 images, each with shape (512, 512, 3), it stubbornly displays a row matrix of images that are (256, 256, 3) each.

b) If I call `media.show_images()` 32 times passing it a dict with a single image each time, each with shape (512, 512, 3), it displays the images at the correct resolution (however the images are displayed one below each other which is not what I want).

c) In case a), if I pass the argument `height=512` then the images are displayed pixelated 2x: it looks like mediapy makes a 256x256 internal image buffer and displays it pixelated at 512x512.

d) Passing `downsample=False` doesn't fix the issue either (too easy-no points).

e) I also have a repro case where it dowsamples from 480 to 240 so this seems like a 2x downsample bug.

f) Aha!!! It looks like displaying a smaller number of images (6 vs. 32) works as intended.

Looks like it is some kind of cap on total memory it can consume?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.