JuliaImages / JuliaImages/ImageEdgeDetection.jl

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

Open
#29 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
16
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the FashionMNIST loop and detect_edges(x, Canny(spatial_scale=3)), then trace the detect_edges and Canny entry points involved in processing the 28×28 images. Done means the FashionMNIST examples complete without the BoundsError, with edge detection still producing its expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.