pythonlessons / background_removal Goto Github PK
View Code? Open in Web Editor NEWProject for face detection, face recognition, pencil sketch, animegan in image, video or real-time stream
Project for face detection, face recognition, pencil sketch, animegan in image, video or real-time stream
To save the .onnx faceNet model in my models folder, I tried running convert_to_onnx.py and I get this error:
Traceback (most recent call last): File "C:\Users\Cando\Desktop\FaceRec_Denem99\faceNet\convert_to_onnx.py", line 3, in <module> import tf2onnx File "C:\Python310\lib\site-packages\tf2onnx\__init__.py", line 10, in <module> from . import verbose_logging as logging File "C:\Python310\lib\site-packages\tf2onnx\verbose_logging.py", line 15, in <module> TF2 = tf.__version__.startswith("2.") AttributeError: module 'tensorflow' has no attribute '__version__
I tried reinstalling tensorflow, tf2onnx but still doesn't work
Error raised when I run main.py script using mediapipe 0.8.3
Traceback (most recent call last): File ".\main.py", line 7, in <module> mpFaceDetector = MPFaceDetection() File "C:\Users\xgx\Downloads\Compressed\background_removal-main\faceDetection.py", line 31, in __init__ self.face_detection = self.mp_face_detection.FaceDetection(model_selection=model_selection, min_detection_confidence=confidence) TypeError: __init__() got an unexpected keyword argument 'model_selection'
Is it right change code from
self.face_detection = self.mp_face_detection.FaceDetection(model_selection=model_selection, min_detection_confidence=confidence)
to
self.face_detection = self.mp_face_detection.FaceDetection(min_detection_confidence=confidence)
?
Thanks.
The current model saves and crops only the first exposed frame. If I want to crop and save every detected frame how to do it? Or if I wanted to predict the gender and age of the detected face how to do it?
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.