nkarasiak / dzetsaka

dzetsaka : classification plugin for Qgis
GNU General Public License v3.0
80 stars 20 forks source link

error when running classification #14

Open d3netxer opened 5 years ago

d3netxer commented 5 years ago

This is the error I am receiving:

2019-02-18T16:28:21 1   Traceback (most recent call last):
              File "/Users/user/.qgis2/python/plugins/dzetsaka/dzetsaka.py", line 1114, in runMagic
                temp.initPredict(inRaster,model,outRaster,inMask,confidenceMap,inClassifier)
              File "/Users/user/.qgis2/python/plugins/dzetsaka/scripts/mainfunction.py", line 314, in initPredict
                predictedImage=self.predict_image(inRaster,outRaster,tree,inMask,confidenceMap,-10000,SCALE=[M,m],classifier=classifier)
            UnboundLocalError: local variable 'tree' referenced before assignment
alexbruy commented 5 years ago

Confirmed. Happens with the latest available version 3.4.2

nkarasiak commented 5 years ago

Hi, Can you tell me : 1) if it happens with the demo dataset (https://github.com/lennepkade/dzetsaka/archive/docs.zip) 2) if it happens with GMM. If so, please try with knn or rf and let me know.