Skip to content

Commit

Permalink
allow build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 27, 2023
1 parent b1239a0 commit 5568fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/bioimage/modelrunner/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ void doTiling(List<Tensor<R>> inputTensors, List<Tensor<T>> outputTensors, Patch

public static <T extends NativeType<T> & RealType<T>> 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<FloatType> im = ArrayImgs.floats(new long[] {1, 1, 512, 512});
Img<T> im = (Img<T>) ArrayImgs.floats(new long[] {1, 1, 512, 512});
List<Tensor<T>> l = new ArrayList<Tensor<T>>();
l.add((Tensor<T>) Tensor.build("input0", "bcyx", (Img<T>) im));
l.add((Tensor<T>) Tensor.build("input0", "bcyx", im));
Model model = createBioimageioModel(mm);
model.loadModel();
Map<String, int[]> tilingList = new LinkedHashMap<String, int[]>();
Expand Down

0 comments on commit 5568fd6

Please sign in to comment.