-
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
Error while adjusting data! #71
Comments
not sure what caused the issue, but it seems to be fixed using Trainable_Segmentation-3.2.34.jar. |
1 similar comment
not sure what caused the issue, but it seems to be fixed using Trainable_Segmentation-3.2.34.jar. |
apologies for re-opening this issue, but I just noticed that I observed this issue in the latest version v3.3.2 and could confirm that it was not present using the older version v3.2.34. |
I just want to state that I am having the same issue with scripting segmentation and is fixed with older distributions. Thanks for keeping an active distribution. |
I have to say I noticed the same bug with the |
Thank you all for reporting! I'll work on it as soon as I can! |
Since a few days applying a Weka model in a script fails with the error "Error while adjusting data!". I am using Weka v3.3.2
You can reproduce the issue using the minimal example described on image.sc: https://forum.image.sc/t/applying-weka-model-in-a-script-fails-in-recent-version/54822
IJ.log windows output:
Field of view: max sigma = 16.0, min sigma = 0.0
Membrane thickness: 1, patch size: 19
Read class name: class 1
Read class name: class 2
Error while adjusting data!
Classifying blobs.gif using 4 tiles...
Processing slices of blobs-crop-0-0 in 1 thread(s)...
Starting thread 0 processing 1 slices, starting with 1
Creating features for slice 1...
Filtering feature stack by selected attributes...
Classifying slice 1 in 8 thread(s)...
Console printout:
Started Untitled.ijm.py at Mon Mar 07 11:23:39 CET 2022
Traceback (most recent call last):
File "Untitled.ijm.py", line 31, in
File "Untitled.ijm.py", line 26, in apply_weka_model
at trainableSegmentation.WekaSegmentation.applyClassifier(WekaSegmentation.java:5692)
at trainableSegmentation.WekaSegmentation.applyClassifier(WekaSegmentation.java:6695)
at trainableSegmentation.WekaSegmentation.applyClassifier(WekaSegmentation.java:6595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NullPointerException: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
at trainableSegmentation.WekaSegmentation.applyClassifier(WekaSegmentation.java:5692)
at trainableSegmentation.WekaSegmentation.applyClassifier(WekaSegmentation.java:6695)
at trainableSegmentation.WekaSegmentation.applyClassifier(WekaSegmentation.java:6595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:190)
... 27 more
The text was updated successfully, but these errors were encountered: