diff --git a/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java b/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java index 1e2506c8c23336a12f82780fd87b3590c8b92547..a8caccca751f9f2e2e04f599622216f93ac40b6e 100644 --- a/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java +++ b/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java @@ -258,6 +258,9 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface // TODO Auto-generated catch block e1.printStackTrace(); } + retrieveInterprocessingTensors(outputTensors); + if (true) + return; ProcessBuilder builder = new ProcessBuilder(args); Process process; @@ -326,7 +329,7 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface try (RandomAccessFile rd = new RandomAccessFile(tmpDir + File.separator + tensor.getName() + FILE_EXTENSION, "r"); FileChannel fc = rd.getChannel();) { - MappedByteBuffer mem = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); + MappedByteBuffer mem = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); ByteBuffer byteBuffer = mem.duplicate(); tensor.setData(MappedBufferToImgLib2.build(byteBuffer)); } catch (IOException e) {