Skip to content

Commit

Permalink
understand where the engine is being installed
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 13, 2024
1 parent 2d813b5 commit 16f4335
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/download_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@
os.makedirs(engines_path)

installer = EngineInstall.createInstaller(engines_path)
installer.basicEngineInstallation()
installer.basicEngineInstallation()

print(os.path.abspath(engines_path))
print(os.listdir(os.path.abspath(engines_path)))
4 changes: 3 additions & 1 deletion src/main/java/deepimagej/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 16f4335

Please sign in to comment.