Skip to content

Commit

Permalink
add method
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Feb 17, 2025
1 parent 6bcd5d8 commit 8134d1d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ public void close() {
void run( List< Tensor < T > > inTensors, List< Tensor < R > > outTensors ) throws RunModelException {
if (inTensors.size() > 1)
throw new RunModelException("Stardist needs just one input image");
preprocess(inTensors);
try {
Map<String, RandomAccessibleInterval<R>> outputs = run(inTensors.get(0).getData());
for (Tensor<R> tensor : outTensors) {
Expand Down Expand Up @@ -374,6 +375,7 @@ List<Tensor<T>> run(List<Tensor<R>> inputTensors)
throws RunModelException {
if (inputTensors.size() > 1)
throw new RunModelException("Stardist needs just one input image");
preprocess(inputTensors);
try {
Map<String, RandomAccessibleInterval<T>> outputs = run(inputTensors.get(0).getData());
List<Tensor<T>> outTensors = new ArrayList<Tensor<T>>();
Expand Down

0 comments on commit 8134d1d

Please sign in to comment.