QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning
QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning copied to clipboard
Error: array is 2-dimensional, but 3 were indexed
when I run it with 2 rasters, the input is a 4 band land cover tif, the labels is a single band float32 tif, both in the same projection with the same dimensions I get this error
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed
Traceback (most recent call last):
File "/home/max/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/produce_training_data_for_deep_learning.py", line 397, in run
prototype = dataGeneratorClass(mxFileList = [self.inMxFile],
File "/home/max/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/dataGeneratorDeepLearning8.py", line 44, in __init__
self.generateData(exportDir=outDir)
File "/home/max/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/dataGeneratorDeepLearning8.py", line 220, in generateData
featureWindow = self.features[:, row-self.yWindowMargin:row+self.yWindowMargin+yBuffer, col-self.xWindowMargin:col+self.xWindowMargin+xBuffer]
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed