Giter Club home page Giter Club logo

Comments (3)

StanislasBertrand avatar StanislasBertrand commented on May 23, 2024

The setup.py in the WiderFace-Evalutation/ folder is used to build the WiderFace-Evaluation package when we run
python setup.py build_ext --inplace
(see "evaluate on widerface" part of the ReadMe)

In general, for more information about setup.py files, you can check the officiel python packaging documentation : https://packaging.python.org/tutorials/packaging-projects/

from retinaface-tf2.

wulikai1993 avatar wulikai1993 commented on May 23, 2024

Sorry for my unclear question. I mean the setup.py in rcnn/cython which is used in Makefile. I think it is related to cpu or gpu devices. But why we write this part of codes? Does not the tf2 handle the devices automatically?

from retinaface-tf2.

StanislasBertrand avatar StanislasBertrand commented on May 23, 2024

The rcnn module is used to run non maximal suppression (or "nms") on the outputs of the neural network, which is in tf2.
Sometimes the neural network will output 2 boxes for 1 face. The nms step is here to find and delete duplicates.

So the setup.py is here to build this component on your machine. it builds a GPU version of nms, and also a CPU version if you dont have a gpu available. In this case you should change the "use_gpu_nms" of the RetinaFace object constructor.

Hope that clears it up !

from retinaface-tf2.

Related Issues (13)

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.