GithubHelp home page GithubHelp logo

Comments (5)

cdalitz avatar cdalitz commented on August 12, 2024

Thanks for pointing this out. In python2, the id was of type string which no longer exists in python3 and can be replaced with either Unicode or Bytes. Apparently during porting Gamera to python3, the decision was made to use Bytes for the id. I have just noted that this causes other problems, too, e.g. when calling id.startswith with a plain string.

Where did you add your workaround of converting the id to a Bytes object? In your copy of teh gamera code? In your application code?

If you can provide a simple test script and simple test data that causes the problem, this would be helpful.

from gamera-4.

malajvan avatar malajvan commented on August 12, 2024

We did the fix on our own fork, gamera4-rodan on the branch fix_IC. The fix is in the file knnmodule.hpp under this commit.
The error came from our Interactive Classifier python app which calls classify_glyph_automatic in classify.py in gamera4. You can see more of the issue here
I'll try to write a simple test case.

from gamera-4.

cdalitz avatar cdalitz commented on August 12, 2024

Did you mange to create a small test case that reproduces the error? I think it would be best to change the id to be Unicode instead of Bytes, but I would need a test case that reproduces the bug and check whether it actually goes away when the changes are made.

from gamera-4.

malajvan avatar malajvan commented on August 12, 2024

I have trouble building and testing gamera on my local environment so creating a test script is a bit difficult at the moment. We did experience some issue with another job that uses the same function image_get_id_name where it is in fact passing in a byte object (that's mean gamera is passing in bytes sometimes and string at other). We got around the issue with an if else to check if the passed in names are string or bytes then convert accordingly.

from gamera-4.

FriedrichFroebel avatar FriedrichFroebel commented on August 12, 2024

I have trouble building and testing gamera on my local environment so creating a test script is a bit difficult at the moment.

Are there any details on your issues? Maybe there is some guidance available on this.

from gamera-4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.