Skip to content

Dataset support plot_image_gallery breaks OD tutorial #2015

Closed
@jbischof

Description

@jbischof

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions