urban-environments icon indicating copy to clipboard operation
urban-environments copied to clipboard

Pipeline-to-create-Urban-Environments-dataset => IndexError: index 19 is out of bounds for axis 2 with size 19

Open maifeeulasad opened this issue 3 years ago • 0 comments

In Pipeline-to-create-Urban-Environments-dataset.ipynb

In this block:

    # compute ground traster for given window size
    raster, locations_grid, cur_classes = mycity_crop.extract_class_raster(grid_size=grid_size)
    myraster = np.zeros(grid_size + (len(classes),))
    idx = [class2label[c] for k,c in enumerate(cur_classes)]
    myraster[:,:,idx] = raster

It throws an error saying: IndexError: index 19 is out of bounds for axis 2 with size 19

Thir exception is thrown specifically from: myraster[:,:,idx] = raster

maifeeulasad avatar Jul 13 '21 14:07 maifeeulasad