You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a macro running with Labkit for segmentation - everything is fine, even ran in batch mode. But it doesn't work when IJ is ran from cmd line. Code as follow
run("Segment Image With Labkit", "segmenter_file=pretrained_classifier.classifier use_gpu=true");
while (!isOpen(output)) {wait(1000);} //(output is just the input image with Labkit added prefix)
When trying to run IJ from command line, nothing happens. Likely the output image (segmentation/probability map) remains unavailable for selection in IJ, can't be selected, so the wait doesn't ends. No issue when ran form IJ directly, batch mode or not. Is there any way to solve or go around this?
The text was updated successfully, but these errors were encountered:
Hello @Alxcho, thank you for taking the time to report this problem.
I already noticed problem like this in the past. I added two commands as a workaround:
Segment Image With Labkit (IJ)
Calculate Probability Map With Labkit (IJ)
They are supposed to work better with ImageJ Macros.
You will only have those commands if the Labkit update site is activated. Could you please try to activate the Labkit update site, and then test if the other command "Segment Image With Labkit (IJ)" works for you?
Thanks for your answer and update, this is awesome. I am currently testing the "Segment Image With Labkit (IJ)"command but it seems to be running into further issues: it works but somehow not always and the processing hangs at some point, not quite sure why.
FYI, there is a workaround that works already: using the "from directory" commands instead of trying to process an opened image. That requires extra disk access obviously, but it's stable.
One thing I noticed with the new (IJ) command is that for some reason, segmenting a Z-stack gives back a multichannel image - there might be some dimension swap occurring in the background. It doesn't seem to be for all stacks, which I don't get. Using the "from directory" commands doesn't run into this issue, using the same pretrained model.
Hi,
I've got a macro running with Labkit for segmentation - everything is fine, even ran in batch mode. But it doesn't work when IJ is ran from cmd line. Code as follow
run("Segment Image With Labkit", "segmenter_file=pretrained_classifier.classifier use_gpu=true");
while (!isOpen(output)) {wait(1000);} //(output is just the input image with Labkit added prefix)
When trying to run IJ from command line, nothing happens. Likely the output image (segmentation/probability map) remains unavailable for selection in IJ, can't be selected, so the wait doesn't ends. No issue when ran form IJ directly, batch mode or not. Is there any way to solve or go around this?
The text was updated successfully, but these errors were encountered: