Comments (5)
This looks like an error inside of OpenCV itself. Have you tried different versions of OpenCV? You can also avoid the OpenCV convolution code path by installing onnx-runtime and using that as the backend (see https://github.com/ORB-HD/deface/blob/master/README.md#hardware-acceleration).
from deface.
I was just trying again, this time with a completely fresh Ubuntu 22.04.01 LTS installation with nothing else installed.
It won't work either, but with a different error:
root@DESKTOP:~$ deface city.jpg
Traceback (most recent call last):
File "/usr/local/bin/deface", line 5, in <module>
from deface.deface import main
File "/usr/local/lib/python3.10/dist-packages/deface/deface.py", line 16, in <module>
import cv2
File "/usr/local/lib/python3.10/dist-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/usr/local/lib/python3.10/dist-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
from deface.
Apparently the normal opencv package on pypi requires some additional system packages. You can either install them directly (for the current error apt install libgl1
should do the trick but I don't know if other libraries are missing), or follow the official installation instructions here: https://docs.opencv.org/4.x/d2/de6/tutorial_py_setup_in_ubuntu.html
from deface.
Thank you for your time, I guess this is not really the right place for noob questions from me, haha.
Anyhow, I installed a fresh Ubuntu 22.04 again, first installed OpenCV manually with sudo apt install python3-opencv
end then installed deface through pip. Now it runs without any errors.
Will try upgrading my actual server again and try the same route. Anyhow, thanks!
from deface.
No problem, glad to hear that it works now with the apt installation. Good luck with the server upgrade!
from deface.
Related Issues (20)
- Enhancement Suggestion: add timespan(s) option HOT 1
- Doesn't seem to use hardware acceleration despite it being available HOT 2
- cuda_path is set but cuda wasn't able to be loaded HOT 6
- Feature Request: Add support for Coral TPU HOT 1
- Consider switching model to centerface_bnmerged.onnx HOT 1
- OpenVino for onnxruntime-openvino HOT 3
- Error when entering images of different sizes HOT 4
- Limit mask size to filter out unrealistic false positives HOT 3
- (Question) use with live streams (rtsp)
- Output has no audio HOT 1
- [macOS] Could not open file <file> as a video file with imageio
- select faces to not be blurred HOT 8
- Videos are sped-up when anonymized HOT 2
- Failed to load library libonnxruntime_providers_tensorrt.so with error HOT 1
- [macOS] RuntimeError: Could not get number of frames HOT 2
- Request: GUI and/or mobile apps HOT 2
- Add tracking as well as detection to improve speed
- executing in windows cmd
- Set output postfix for processing directories
- Set mosaic as percentage of face size
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 deface.