Comments (4)
@obplay have you solved the problem?? Could you provide the code?
from face-mask-detection.
same issue here
from face-mask-detection.
here's the output
2020-08-25 18:16:48.487408: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2020-08-25 18:16:48.487451: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
[INFO] loading face detector model...
[INFO] loading face mask detector model...
2020-08-25 18:16:50.071517: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2020-08-25 18:16:50.071549: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2020-08-25 18:16:50.071577: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (the-coders-hub-192): /proc/driver/nvidia/version does not exist
2020-08-25 18:16:50.093712: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 2495195000 Hz
2020-08-25 18:16:50.094102: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x563076a54590 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-08-25 18:16:50.094133: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
[INFO] starting video stream...
[ WARN:0] global /build/opencv/src/opencv-4.4.0/modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
Traceback (most recent call last):
File "detect_mask_video.py", line 114, in <module>
(locs, preds) = detect_and_predict_mask(frame, faceNet, maskNet)
File "detect_mask_video.py", line 55, in detect_and_predict_mask
face = cv2.cvtColor(face, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.4.0) /build/opencv/src/opencv-4.4.0/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
FATAL: exception not rethrown
Aborted (core dumped)
from face-mask-detection.
import cv2 as cv
img=cv.imread('w.jpg',0)
w,h=img.shape
img=cv.resize(img,(h//10,w//10))
cv.imwrite('w1.jpg',img)
You can try this with varying filenames and ratios(Here I used 10, you can use your ratio)
from face-mask-detection.
Related Issues (20)
- Adding a CONTRIBUTING.md file HOT 2
- Dataset not found HOT 3
- Notice the parent directory name HOT 1
- Deployment on Heroku HOT 2
- Publish Keras Weights HOT 1
- how can i add a alert sound in itοΌπ€ HOT 3
- Frame crashes when a person gets close to the cam HOT 3
- Delay and generation of multiple box when mask detection process is used in a system with thread process HOT 1
- Model Deployment in Streamlit HOT 2
- module 'streamlit' has no attribute 'beta_set_page_config' HOT 2
- Add Partial Face Mask Detection HOT 1
- Refactor Pull Request Workflows HOT 2
- Update README.md HOT 1
- Add Translation of README in Korean HOT 1
- The deployed link of your Face mask Detection project demo is not working HOT 1
- train_mask_detector.py [-h] -d DATASET [-p PLOT] [-m MODEL] train_mask_detector.py: error: the following arguments are required: -d/--dataset HOT 1
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize HOT 1
- windows 10 installation HOT 2
- windows 10. No module named 'tensorflow.python' error HOT 1
- zsh: illegal hardware instruction python train_mask_detector.py --dataset dataset 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 face-mask-detection.