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

Dataset support plot_image_gallery breaks OD tutorial #2015

Open
jbischof opened this issue Aug 7, 2023 · 1 comment · May be fixed by #2019
Open

Dataset support plot_image_gallery breaks OD tutorial #2015

jbischof opened this issue Aug 7, 2023 · 1 comment · May be fixed by #2019
Labels
type:Bug Something isn't working

Comments

@jbischof
Copy link
Contributor

jbischof commented Aug 7, 2023

PR #1837 expects a batch dimension or no batching at all when parsing input data. However, our OD tutorial passes a single image as [image] at the beginning, which throws plot_image_gallery.

We should remove the list wrapper and immediately pass around

image_batch = np.expand_dims(image, 0)

since there's a lot of downstream logic about image batches anyway.

See gist.

Update: I get the same issue in 0.6.1 and 0.5.1 (gist).

@Zekrom-7780
Copy link
Contributor

@jbischof I would like to take this issue up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Bug Something isn't working
Projects
None yet
2 participants