nextgis / qgis_molusce

Modules for Land Use Change Simulations
https://github.com/nextgis/molusce
GNU General Public License v2.0
43 stars 17 forks source link

Pyhton Memory Error while running MOLUSCE plugin #35

Closed purnendusardar closed 1 month ago

purnendusardar commented 5 years ago

I have been trying to use MOLUSCE plugin. The plugin shows Python Memory error when I tried to train the ANN for Transition Potential Modelling. I saw a suggestion for using appropriate coordinate system for the raster data sets which will use the Earth as a flat surface. So I converted all my raster to same UTM projection. Same problem occurred again at the same step. The error code looks like following: 2019-08-28T11:39:14 1 Traceback (most recent call last): File "C:/Users/GISLab08/.qgis2/python/plugins\molusce\neuralnetworkwidget.py", line 138, in trainNetwork samples=self.plugin.spnSamplesCount.value() File "C:/Users/GISLab08/.qgis2/python/plugins\molusce\algorithms\models\mlp\manager.py", line 341, in setTrainingData f.normalize(mode = 'mean') File "C:/Users/GISLab08/.qgis2/python/plugins\molusce\algorithms\dataprovider.py", line 257, in normalize stat = self.getBandStat(i) File "C:/Users/GISLab08/.qgis2/python/plugins\molusce\algorithms\dataprovider.py", line 163, in getBandStat result['mean'] = np.ma.mean(band) File "C:\PROGRA~2\QGIS2~1.18\apps\Python27\lib\site-packages\numpy\ma\core.py", line 6354, in call return method(*args, **params) File "C:\PROGRA~2\QGIS2~1.18\apps\Python27\lib\site-packages\numpy\ma\core.py", line 5065, in mean dsum = self.sum(axis=axis, dtype=dtype) File "C:\PROGRA~2\QGIS2~1.18\apps\Python27\lib\site-packages\numpy\ma\core.py", line 4820, in sum result = self.filled(0).sum(axis, dtype=dtype) File "C:\PROGRA~2\QGIS2~1.18\apps\Python27\lib\site-packages\numpy\ma\core.py", line 3635, in filled result = self._data.copy('K') MemoryError

bzst233 commented 2 years ago

hello! Have you already sloved it? I have the same problem

simgislab commented 1 month ago

Try brand new MOLUSCE 4 for QGIS 3 and let us know if the problem persists. Reopen if necessary.