From 16f43357cd17d262424daff8b03529923f5d179b Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Wed, 13 Nov 2024 16:39:48 +0100 Subject: [PATCH] understand where the engine is being installed --- scripts/download_engines.py | 5 ++++- src/main/java/deepimagej/Runner.java | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/download_engines.py b/scripts/download_engines.py index 49d08ea0..a569c6cd 100644 --- a/scripts/download_engines.py +++ b/scripts/download_engines.py @@ -41,4 +41,7 @@ os.makedirs(engines_path) installer = EngineInstall.createInstaller(engines_path) -installer.basicEngineInstallation() \ No newline at end of file +installer.basicEngineInstallation() + +print(os.path.abspath(engines_path)) +print(os.listdir(os.path.abspath(engines_path))) \ No newline at end of file diff --git a/src/main/java/deepimagej/Runner.java b/src/main/java/deepimagej/Runner.java index b4bb534c..5867cceb 100644 --- a/src/main/java/deepimagej/Runner.java +++ b/src/main/java/deepimagej/Runner.java @@ -58,6 +58,7 @@ import deepimagej.tools.ImPlusRaiManager; import ij.IJ; import ij.ImagePlus; +import io.bioimage.modelrunner.apposed.appose.Types; import io.bioimage.modelrunner.bioimageio.description.ModelDescriptor; import io.bioimage.modelrunner.bioimageio.description.TensorSpec; import io.bioimage.modelrunner.bioimageio.description.exceptions.ModelSpecsException; @@ -88,7 +89,8 @@ private Runner(ModelDescriptor descriptor) { } catch (ModelSpecsException | LoadEngineException | IOException e) { e.printStackTrace(); throw new IllegalArgumentException("Something has happened, the model wanted does not " - + "seem to exist anymore or it has been moved."); + + "seem to exist anymore or it has been moved." + System.lineSeparator() + + Types.stackTrace(e)); } }