CLI: Never created the inference.json file --> Hanging #1
Replies: 1 comment 2 replies
-
Are you running the script from the interactive console in workstation or running it as a script from your scripts folder? If the latter you will need to add code to consume the standard out and standard error streams. What happens when you don't is these streams fill and python will fill with output. When you run the script in the console Workstation will consume the output but when you use a standalone script you need to to put the output elsewhere. In the predict_selected python script line 108 reads from the CLI standard out, and line 113 feeds it to the runner's standard out. Instead you should put it someplace else, like a log file, or get a handle to Java's System.out and print it there. You probably will want to do the same for the prediction_progress.stderr which is not handled in this example. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
First thanks for the input.
I was trying to run the CLI example, and it is hanging in a while loop and never gets any further.
Inside the monitor_progress(), in the while loop for checking if the inference.json file exists...
Somehow that file is not created... Export of an image ran through.
Any idea why? Is that the right place for that question? How can I check where the script hangs as I can not pipe the output of the main() somewhere
Thanks,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions