Commit a91aab50 authored by Andrey Filippov's avatar Andrey Filippov

Tested tensorflow model on the data in inside this program

parent 6e5aa3ce
...@@ -387,6 +387,7 @@ private Panel panel1, ...@@ -387,6 +387,7 @@ private Panel panel1,
public PixelMapping.InterSensor.DisparityTiles DISPARITY_TILES=null; public PixelMapping.InterSensor.DisparityTiles DISPARITY_TILES=null;
public ImagePlus DBG_IMP = null; public ImagePlus DBG_IMP = null;
public ImagePlus CORRELATE_IMP = null; public ImagePlus CORRELATE_IMP = null;
public TensorflowInferModel TENSORFLOW_INFER_MODEL = null;
public class SyncCommand{ public class SyncCommand{
public boolean isRunning= false; public boolean isRunning= false;
...@@ -4754,18 +4755,21 @@ private Panel panel1, ...@@ -4754,18 +4755,21 @@ private Panel panel1,
return; return;
/* ======================================================================== */ /* ======================================================================== */
} else if (label.equals("TF TEST")) { } else if (label.equals("TF TEST")) {
DEBUG_LEVEL=MASTER_DEBUG_LEVEL;
// link 1 (general): https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/package-summary boolean keep_empty = true;
// link 2 (example of an TF & IJ plugin): https://github.com/google/microscopeimagequality/blob/main/microscopeimagequality/data/imagej/src/main/java/MicroscopeImageFocusQualityClassifier.java if (TENSORFLOW_INFER_MODEL == null) {
TENSORFLOW_INFER_MODEL = new TensorflowInferModel(
TensorflowExamplePlugin t = new TensorflowExamplePlugin(); 324, // int tilesX,
t.run(); 242, // int tilesY,
9, // int corr_side,
4 //int num_layers
);
}
TENSORFLOW_INFER_MODEL.test_tensorflow(keep_empty);
return; return;
//JTabbedTest //JTabbedTest
// End of buttons code // End of buttons code
} }
DEBUG_LEVEL=MASTER_DEBUG_LEVEL;
} }
public String getSaveCongigPath() { public String getSaveCongigPath() {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment