6fe60e43efbac200052a76b0a849c4c7cd4654a5,ilastik/applets/networkClassification/nnClassGui.py,NNClassGui,pred_nn,#NNClassGui#,156
Before Change
// result = self.classifier_factories[classifier_key].predict_probabilities_pixelwise(self.topLevelOperator.InputImage.value, roi, axistags)
self.topLevelOperator.Classifier.setValue(self.classifier_factories[classifier_key])
predict = self.topLevelOperator.CachedPredictionProbabilities[:].wait()
print ("Done")
// numpy.save("/Users/jmassa/Desktop/predictions",predict)
After Change
classifier_key = self.drawer.comboBox.itemText(0)
if len(classifier_key) == 0 :
QMessageBox.critical(self, "Error loading file", "Add a Model first")
else:
expected_input_shape = self.classifiers[classifier_key]._tiktorch_net.expected_input_shape
input_shape = numpy.array(expected_input_shape)
input_shape = input_shape[1:]
input_shape = numpy.append(input_shape,None)
halo_size = self.classifiers[classifier_key].HALO_SIZE
input_shape[1:3] -= 2*halo_size
self.topLevelOperator.BlockShape.setValue(input_shape)
self.topLevelOperator.NumClasses.setValue(3)
self.topLevelOperator.Classifier.setValue(self.classifiers[classifier_key])
//triggers setupLayers for prediction
self.updateAllLayers()
@pyqtSlot()
def handleShowPredictionsClicked(self):
checked = self._viewerControlUi.checkShowPredictions.isChecked()
for layer in self.layerstack:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: ilastik/ilastik
Commit Name: 6fe60e43efbac200052a76b0a849c4c7cd4654a5
Time: 2018-04-25
Author: jonas.massa@iwr.uni-heidelberg.de
File Name: ilastik/applets/networkClassification/nnClassGui.py
Class Name: NNClassGui
Method Name: pred_nn
Project Name: DT42/BerryNet
Commit Name: 23d15da98ec99cf2b848f192c0763b55e1dbfc04
Time: 2020-02-15
Author: bofu@dt42.io
File Name: berrynet/client/camera.py
Class Name:
Method Name: main
Project Name: OpenMined/PySyft
Commit Name: 5c66e3d20241bdcb2d885c683dc721ca884eaf37
Time: 2020-11-10
Author: me@madhavajay.com
File Name: src/syft/core/node/common/action/run_class_method_action.py
Class Name: RunClassMethodAction
Method Name: execute_action