Skip to content

detect_edges() BoundsError: attempt to access 16-element Vector{Matrix{Float64}} at index [17] #29

@BooBSD

Description

@BooBSD

Hello,

I encountered an error while attempting to use the detect_edges() function on FashionMNIST images.

Here's a test case:

using MLDatasets: FashionMNIST
using ImageEdgeDetection: Canny, detect_edges


x_train = [xy.features for xy in FashionMNIST(:train)]

for x in x_train
    println(size(x))
    detect_edges(x, Canny(spatial_scale=3))
end

The result:

(28, 28)
(28, 28)
(28, 28)
ERROR: LoadError: TaskFailedException

    nested task error: BoundsError: attempt to access 16-element Vector{Matrix{Float64}} at index [17]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions