Giter VIP home page Giter VIP logo

Comments (7)

George-Zhu avatar George-Zhu commented on July 24, 2024 1

I have fixed the bug by modifying the Line 121 of pascal_voc_io.py as following:
points = [(xmin,ymin), (xmin,ymax), (xmax, ymax), (xmax, ymin)] -->
points = [(xmin, ymin), (xmax, ymin), (xmax, ymax), (xmin, ymax)]

Anyway, thanks a lot :)

from labelimg.

nkhdiscovery avatar nkhdiscovery commented on July 24, 2024 1

@tzutalin You can just load an image, annotate, save and then close the project. ( I did this with Open Dir and set the default annotation folder). Close it and re-open with Open Dir, then try to edit rectangles ... you'll see that it fails to keep the aspect ratio and messes the box.

from labelimg.

tzutalin avatar tzutalin commented on July 24, 2024

Hi @George-Zhu ,
Can you share me with the examples which have problems? Or do you think it is ok to use the below changes without side effect?
points = [(xmin,ymin), (xmin,ymax), (xmax, ymax), (xmax, ymin)] -->
points = [(xmin, ymin), (xmax, ymin), (xmax, ymax), (xmin, ymax)]

from labelimg.

nkhdiscovery avatar nkhdiscovery commented on July 24, 2024

@George-Zhu Thanks for the fix! Saved my day!
@tzutalin @George-Zhu : I wonder why is this caused during parsing the xml with wrong order of points, I guessed there was an issue with the type of shape or something, then I found this solution and wondered, can you explain the cause?

from labelimg.

tzutalin avatar tzutalin commented on July 24, 2024

HI @nkhdiscovery ,
If you modify the Line 121 of pascal_voc_io.py as following, that can fix your the issue, right?
points = [(xmin,ymin), (xmin,ymax), (xmax, ymax), (xmax, ymin)] -->
points = [(xmin, ymin), (xmax, ymin), (xmax, ymax), (xmin, ymax)]

from labelimg.

nkhdiscovery avatar nkhdiscovery commented on July 24, 2024

Hi @tzutalin ,
Yes it worked, I'm using it right now.
Great work by the way :)
I will spend a pull request if I improved anything, but not for this issue right now as I still have not figured the reason well.

Actually, I think this has no further harm as I had a quick review of the code, changing this line makes the order clock-wise and later in adding these points to shape and building the canvas (which is handled by Qt I guess), the resulting canvas would be obviously treated differently.
I let you know more if I figured it completely.

from labelimg.

tzutalin avatar tzutalin commented on July 24, 2024

@nkhdiscovery ,
Very appreciated ! I am looking forward to your PR!!!!

from labelimg.

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.