Open markemus opened 3 years ago
@markemus can you try using the --ij2
flag, and the language-agnostic --run
instead of --jython
?
./ImageJ-linux64 --ij2 --headless --run ~/dev/pix2pix/stardist_imagej_script.py
See also https://imagej.net/Scripting_Headless.
The script includes the services:
and runs successfully when it's run from the ImageJ gui. Do services not work in headless mode? Is there an alternative to using
command
to run StarDist2D, or another way to import it?EDIT: The command I'm calling is:
./ImageJ-linux64 --headless --jython ~/dev/pix2pix/stardist_imagej_script.py