Comments (3)
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.
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.
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)
- Can not open bbox_overlaps_cython from bbox.pyx HOT 19
- Blur detected faces HOT 2
- About _resize_image function when preprocess HOT 1
- Use in windows enviroment HOT 3
- AP
- tflite HOT 5
- "Failed to interpret file './data/retinafaceweights.npy' as a pickle" => requirements.txt is not complete for reproducibility HOT 1
- Pre-trained model backbone arch HOT 1
- what do the params `pixel_means` and `pixel_stds` mean? HOT 1
- Could you add a training file? HOT 1
- Same content 'requirements.txt' and 'requirements_gpu.txt' files
- What should I compile? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retinaface-tf2.