-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use Macro to load classifier #31
Comments
It says |
Just found it's working on PC but not Mac |
Thanks for reporting! It probably has to do with the dialog to choose the classifier file. I'll fix it as soon as I can. |
Thank you so much! Yanning Zuo Department of Biological Chemistry On Fri, Sep 16, 2016 at 1:42 AM, Ignacio Arganda-Carreras <
|
@yanningzuo Did you finally test if my proposed solution fixed the issue? |
Hi Ignacio,
Very sorry for the late reply... I was using PC and I just confirmed that
Mac still couldn't open classifier after selecting the "Use JFileChooser to
open/save" and using version 3.2.4.
Thank you so much for reminding me!
Best regards,
Yanning
|
Hello @yanningzuo, |
Hi Ignacio,
I actually tried both ways but neither worked on Mac...
|
Weird! Which version of Mac OS and Java do you have? |
I am using OS X Yosemite 10.10.5 and did not install Java on my Mac
|
I just noticed you are not using version 3.2.5 which enforces the use of other dialogs instead of JFileChooser if the option is unchecked. Can you please try with that version of the plugin? |
Actually, I am using the latest version 3.2.5 updated today. I remember it
was 3.2.4 last night
This is my most recent code:
selectWindow("Result of Clipboard-1");
run("Trainable Weka Segmentation");
selectWindow("Trainable Weka Segmentation v3.2.5");
call("trainableSegmentation.Weka_Segmentation.loadClassifier",
"/Users/lab-public/Desktop/Green.model");
call("trainableSegmentation.Weka_Segmentation.getProbability");
|
I see, and this only happens from a macro? You might need to add a selectWindow("Result of Clipboard-1");
run("Trainable Weka Segmentation");
wait( 2000 );
selectWindow("Trainable Weka Segmentation v3.2.5");
call("trainableSegmentation.Weka_Segmentation.loadClassifier", "/Users/lab-public/Desktop/Green.model");
call("trainableSegmentation.Weka_Segmentation.getProbability"); |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: |
Hi,
It seems to be some problems with the "load classifier" macro command. I tried several time with the command as below,but overtime it said "cannot load classifier":
run("Trainable Weka Segmentation");
selectWindow("Trainable Weka Segmentation v3.1.2");
call("trainableSegmentation.Weka_Segmentation.loadClassifier", "/Users/lab-public/Desktop/Green.model");
call("trainableSegmentation.Weka_Segmentation.getProbability");
selectWindow("Probability maps");
I used macro recorder and checked a few times. Probably there's something wrong with the Weka.
Thanks!
The text was updated successfully, but these errors were encountered: