Hi, I'm Elliott Zheng, a researcher from China.
- 🔭 I’m currently working on my project CopyTranslator.
- 🌱 My research interest lies in Computer Vision and Computer Graphics.
- 👨🏻💻 I mainly use Python and TypeScript.
- 💬 Ask me about anything here
Fast and reliable face detection with RetinaFace.PyTorch
License: MIT License
Hi, I'm Elliott Zheng, a researcher from China.
@elliottzheng 你好。请问项目里有人脸对齐功能吗?
More time during batch inference as compared to insightface's single pass!!
`
import numpy as np
from insightface.app import FaceAnalysis
import cv2
import matplotlib.pyplot as plt
import time
from batch_face import RetinaFace
img = cv2.imread('/home/zeeshan/Downloads/avengers.png')
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img = cv2.resize(img, (640, 640))
plt.imshow(img)
model = FaceAnalysis(allowed_modules=['detection'],
providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
model.prepare(ctx_id=0)
tik = time.time()
faces = model.get(img)
faces = model.get(img)
faces = model.get(img)
faces = model.get(img)
faces = model.get(img)
print(f"time taken: {time.time()-tik}")
detector = RetinaFace(gpu_id=0)
tik = time.time()
faces = detector.detect([img, img, img, img, img])
print(f"time taken: {time.time()-tik}")
`
I have even tried repeating the same img object inside the batch array and then computing the result. Even in that case the total of computing individually with insightface is much less than this? @elliottzheng could you please have a look at this?
Hello!
Great work BTW, I really like the implementation. I am trying to use your package in one of my projects.
Would it be possible for you to upload the face_detection
package to PyPI to improve useability and deployment ease?
I can also upload it under your name if you provide me permission to do so.
在detector = RetinaFace(gpu_id=0)中,gpu_id可以是多个值吗,我试着让gpu_id=[0,1,2,3]但遇到错误
After a fresh install using pip, the model weights file seems to be missing from the installation. My guess is that the MANIFEST.in
needs to include files ending with .pth
for pip install to work.
Hi!
According to the changelog, I found that this code had a Resnet version before.
Is it still available? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.