dzetsaka icon indicating copy to clipboard operation
dzetsaka copied to clipboard

error when running classification

Open d3netxer opened this issue 7 years ago • 2 comments

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

d3netxer avatar Feb 18 '19 21:02 d3netxer

Confirmed. Happens with the latest available version 3.4.2

alexbruy avatar Mar 21 '19 17:03 alexbruy

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.

nkarasiak avatar Mar 21 '19 18:03 nkarasiak