-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Interactive Classifier] Interactive Classifier fails when pressing "Regroup and Reclassify" #860
Comments
Looking at the code I'm almost positive this is one of those python2 -> python3 issues that stems from differences in how it handles strings. |
|
We found another error traceback. Seems like this error is going through the
The first error that Gen sent happens whenever we press Reclassify. |
@malajvan was able to modify the error message (finally). Here are steps:
Turns out it was the second version of this error that was causing things to break. |
We managed to pass the error by converting the id PyObject in knnmodule.hpp (above screenshots) to PyBytes instead of strings. We are currently seeing if we can fix this from outside of the hpp and preferably outside of gamera, while also testing if that fix works. Worst case we will fix inside our gamera src code and test to make it a quick fix and see where the root of the problem is later. |
Glad to see that you're making progress! |
Turns out the error was from the class_name of the glyphs (i.e 'UNCLASSIFIED' etc). Gamera itself agrees with class_names being strings (as commented and implemented in the gamera python files) , but for some reason check if it's bytes in knnmodule.hpp. I'll implement a quick fix and ask the gamera people |
The fix for Interactive Classifier can be found on branch IC_fix. We are attempting another fix that doesn't touch the gamera source code. If you want to run Interactive Classifier before we merge into develop, you can run rodan locally and pull the Docker images as specified in the IC_fix branch. |
posted an issue to the official gamera-4 repo (#69) |
Just added our fix onto staging. Still waiting to hear back from the official repo but things seem to be working for now so I will close this issue. |
From Gen:
When running from scratch, without any training data:
The job also fails if I ask IC to "Finalize". This is the traceback for that:
Also fails when given training data:
As far as we know, the last time it worked was last summer, possibly before the migration to Python 3.
The text was updated successfully, but these errors were encountered: