karan-malik / facemaskdetector Goto Github PK
View Code? Open in Web Editor NEWReal time face-mask detection using Deep Learning and OpenCV
License: MIT License
Real time face-mask detection using Deep Learning and OpenCV
License: MIT License
some are more easy (non human faces)
some are human based but distorted or have an obvious (non-mask) overlay
this is probably still detectable
challenge accepted... (partial mask is part of the graphics) ;)
source: https://www.ebay.com/sch/i.html?_nkw=funny+face+mask
seams and joints (requires high resolution), nose shadow non-consistent with other shadow cast on face, and skin tone difference would normally improve (heuristic) results. I wonder how ML would handle it..
Inorder to clone this repository that particular command is not getting executed...it is showing invalid syntax can you please provide solution to this problem pls...
Hi, I'm glad to find your work.
I'm trying to use this work, but I face the problem "NameError: name 'mymodel' is not defined".
I don't have any idea to solve this problem so far because I've never used Keras and like MLs so on before.
Please could you tell me how to do it?
Thanks.
from keras.optimizers import Adam
instead of
from keras.optimizers import adam
C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\training.py:1915: UserWarning: Model.fit_generator
is deprecated and will be removed in a future version. Please use Model.fit
, which supports generators.
warnings.warn('Model.fit_generator
is deprecated and '
Traceback (most recent call last):
File "C:\Users\Ganesh\Desktop\FaceMask\FaceMaskDetector\facemask.py", line 58, in
model_saved=model.fit_generator(
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\training.py", line 1918, in fit_generator
return self.fit(
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\training.py", line 1108, in fit
data_handler = data_adapter.get_data_handler(
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\data_adapter.py", line 1348, in get_data_handler
return DataHandler(*args, **kwargs)
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\data_adapter.py", line 1138, in init
self._adapter = adapter_cls(
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\data_adapter.py", line 916, in init
super(KerasSequenceAdapter, self).init(
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\data_adapter.py", line 793, in init
peek, x = self._peek_and_restore(x)
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\data_adapter.py", line 927, in _peek_and_restore
return x[0], x
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras_preprocessing\image\iterator.py", line 65, in getitem
return self._get_batches_of_transformed_samples(index_array)
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras_preprocessing\image\iterator.py", line 231, in _get_batches_of_transformed_samples
x = img_to_array(img, data_format=self.data_format)
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\keras_preprocessing\image\utils.py", line 309, in img_to_array
x = np.asarray(img, dtype=dtype)
File "C:\Users\Ganesh\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core_asarray.py", line 83, in asarray
return array(a, dtype, copy=False, order=order)
TypeError: array() takes 1 positional argument but 2 were given
requirements.txt
is not there for ease of use for the users
I am not able to run the file which shows an error for numpy libs in anaconda site packages
Can you please tell me that on which version of python the code was written? I'm getting this error now after trying a lot.
help me with this...
or please tell me step by step which version of python I have to use then which are the libraries I have to install.
I have followed all the instructions from the readme file in the project, still, I'm not able to run that.
Originally posted by @deepanshuparuthi in #8 (comment)
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.