From 5568fd6fc5dc0fb68f1c5fb3de584954372c166c Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Fri, 27 Oct 2023 19:17:06 +0200 Subject: [PATCH] allow build --- src/main/java/io/bioimage/modelrunner/model/Model.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/bioimage/modelrunner/model/Model.java b/src/main/java/io/bioimage/modelrunner/model/Model.java index efb65014..98ad565f 100644 --- a/src/main/java/io/bioimage/modelrunner/model/Model.java +++ b/src/main/java/io/bioimage/modelrunner/model/Model.java @@ -641,9 +641,9 @@ void doTiling(List> inputTensors, List> outputTensors, Patch public static & RealType> void main(String[] args) throws IOException, ModelSpecsException, LoadEngineException, RunModelException, LoadModelException { String mm = "C:\\Users\\angel\\OneDrive\\Documentos\\pasteur\\git\\model-runner-java\\models\\\\EnhancerMitochondriaEM2D_22092023_133921\\"; - Img im = ArrayImgs.floats(new long[] {1, 1, 512, 512}); + Img im = (Img) ArrayImgs.floats(new long[] {1, 1, 512, 512}); List> l = new ArrayList>(); - l.add((Tensor) Tensor.build("input0", "bcyx", (Img) im)); + l.add((Tensor) Tensor.build("input0", "bcyx", im)); Model model = createBioimageioModel(mm); model.loadModel(); Map tilingList = new LinkedHashMap();