GithubHelp home page GithubHelp logo

Comments (9)

serengil avatar serengil commented on June 9, 2024 2

@Dobiasd if we set an initial 0 value to angle in alignment produce function, then this will be sorted.

Do you mind to create a PR for this? I would like to see your name as a contributor because you found this issue.

https://github.com/serengil/retinaface/blob/master/retinaface/commons/postprocess.py#L33

from retinaface.

serengil avatar serengil commented on June 9, 2024 1

No problem, we can still fix it.

from retinaface.

Dobiasd avatar Dobiasd commented on June 9, 2024

Of course, it would be nice if pylint would catch such problems already in the CI.

I've opened a StackOverflow question asking if enabling such a check is possible.

from retinaface.

serengil avatar serengil commented on June 9, 2024

Good spot! Do you mind to share your input image? Would be easier to fix if i can reproduce.

from retinaface.

Dobiasd avatar Dobiasd commented on June 9, 2024

It happened while processing a video stream. I no longer have the problematic frame, but I'll try to reproduce one by moving in front of my webcam. 🕺

from retinaface.

Dobiasd avatar Dobiasd commented on June 9, 2024

I've tried, but so far failed to align my head in a pose to fulfill the required condition.

Hope you can maybe fix it even without such an example image.

from retinaface.

Dobiasd avatar Dobiasd commented on June 9, 2024

FYI:

While pylint is not able to catch such bugs in the linter step, mypy (with --enable-error-code possibly-undefined) is. 🎉

So in case you're interested in preventing such issues automatically in the future, using mypy could be an option. 🙂

from retinaface.

serengil avatar serengil commented on June 9, 2024

Oh no, very satisfied with pylint, do not want to switch anything else :)

from retinaface.

Dobiasd avatar Dobiasd commented on June 9, 2024

Ah, no, I did not mean to replace pylint with mypy, but adding mypy to the CI. mypy is a type checker and solves different problems than pylint (a linter) does. Not only our team at work, but also me in my private projects (example) use both in conjunction, and I like this combination a lot. 🙂

from retinaface.

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.