Skip to content

Index 196 is out of bounds for axis 0 with size 196 #3

@brunohlopez

Description

@brunohlopez

I am running through the Notebook examples and have run into an issue in Notebook 13 OE Cubes. In chunk 4 where we begin to do PCA and segmentation I run into an error. The code of block starts with importing sklearn.segmentation import slic

Screen Shot 2022-02-08 at 10 20 10 AM

It seems the labels variable in that same chunk only produces a value of 196 and subsequently the lbl variable only goes up to 196.

When you run this block of code

color_labels = np.zeros((rows,cols)) for r in range(rows): for c in range(cols): color_labels[r, c] = color_index[labels[r, c]]

you get the index out of bounds error. Was wondering if anyone has run into this before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions