Skip to content

Commit fc1cfd2

Browse files
committedNov 23, 2024·
try more prints
1 parent 18b81ef commit fc1cfd2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/main/java/io/bioimage/modelrunner/pytorch/javacpp/JavaWorker.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static void main(String[] args) {
3535
try {
3636
pi = new PytorchJavaCPPInterface(false);
3737
} catch (IOException | URISyntaxException e) {
38+
e.printStackTrace();
3839
return;
3940
}
4041

@@ -87,13 +88,16 @@ private void executeScript(String script, Map<String, Object> inputs) {
8788
this.reportLaunch();
8889
try {
8990
if (script.equals("loadModel")) {
90-
update("STATY IN WORKER LOAD", null, null);
91+
update("STATY IN WORKER LOAD LOAD", null, null);
9192
pi.loadModel((String) inputs.get("modelFolder"), (String) inputs.get("modelSource"));
9293
} else if (script.equals("inference")) {
93-
update("STATY IN WORKER", null, null);
94+
update("STATY IN WORKER ------------RUN", null, null);
9495
pi.runFromShmas((List<String>) inputs.get("inputs"), (List<String>) inputs.get("outputs"));
9596
} else if (script.equals("close")) {
9697
pi.closeModel();
98+
} else {
99+
update("LOL WTF", null, null);
100+
update("LOL WTF -------------- " + script, null, null);
97101
}
98102
} catch(Exception | Error ex) {
99103
this.fail(Types.stackTrace(ex));

0 commit comments

Comments
 (0)
Please sign in to comment.