Closed ilastikdev closed 7 years ago
mht.trainWithWeightInitialization(model,gt, initialWeights)
fails with 5 weights and withDivisions=True
withDivisions True
INFO ilastik.applets.tracking.conservation.opConservationTracking: generating traxels
INFO ilastik.applets.tracking.conservation.opConservationTracking: fetching region features and division probabilities
INFO ilastik.applets.objectClassification.opObjectClassification: training on matrix of shape (1, 33)
INFO lazyflow.classifiers.parallelVigraRfLazyflowClassifier: Training took, 0.001015 seconds
INFO lazyflow.classifiers.parallelVigraRfLazyflowClassifier: Training complete. Average OOB: nan
INFO ilastik.applets.objectClassification.opObjectClassification: training finished, average out-of-bag error: nan
INFO ilastik.applets.objectClassification.opObjectClassification: training on matrix of shape (3, 31)
INFO lazyflow.classifiers.parallelVigraRfLazyflowClassifier: Training took, 0.003052 seconds
INFO lazyflow.classifiers.parallelVigraRfLazyflowClassifier: Training complete. Average OOB: 1.0
INFO ilastik.applets.objectClassification.opObjectClassification: training finished, average out-of-bag error: 1.0
INFO ilastik.applets.tracking.conservation.opConservationTracking: filling traxelstore
[====================] 100%
[====================] 100%
INFO ilastik.applets.tracking.structured.opStructuredTracking: Structured Learning: Adding Training Annotations to Hypotheses Graph
INFO ilastik.applets.tracking.structured.opStructuredTracking: max nearest neighbors=
[====================] 100%
inintialWeights {'weights': [0.01, 0.6, 0.6, 0.3, 0.2]}
************************
I'm pretty confident that the method itself does what it is supposed to (it passes its test https://github.com/chaubold/hytra/blob/master/tests/core/test_jsongraph.py#L469).
This seems to be more a problem of your model, which appears to be completely empty, as you can see in those lines of your log:
************************
contains 0 segmentation hypotheses
contains 0 linking hypotheses
similar thing happens even if the model is not empty, division classifier is trained, and withDivisions is on:
inintialWeights {'weights': [0, 0, 0.0, 0, 0]}
************************
Settings are:
StatesShareWeights: true
AllowPartialMergerAppearance: false
AllowLengthOneTracks: false
RequireSeparateChildrenOfDivision: true
NonNegativeWeightsOnly: false
OptimizerEpGap: 0.005
OptimizerVerbose: true
OptimizerNumThreads: 1
************************
contains 18 segmentation hypotheses
contains 35 linking hypotheses
Provided length of vector with initial weights has wrong length!
ERROR 2016-12-14 16:27:45,278 excepthooks 15815 140204825524032 Unhandled exception in thread: 'MainThread'
ERROR 2016-12-14 16:27:45,278 excepthooks 15815 140204825524032 Traceback (most recent call last):
File "/home/jales/software/miniconda/envs/ilastik-devel/ilastik-meta/ilastik/ilastik/applets/tracking/structured/structuredTrackingGui.py", line 366, in _onRunStructuredLearningButtonPressed
withBatchProcessing)
File "/home/jales/software/miniconda/envs/ilastik-devel/ilastik-meta/ilastik/ilastik/applets/tracking/structured/opStructuredTracking.py", line 347, in _runStructuredLearning
mht.trainWithWeightInitialization(model,gt, initialWeights)
RuntimeError: Provided length of vector with initial weights has wrong length!
Is this still a problem?
no matter what the value of withDivisions is