Giter VIP home page Giter VIP logo

Comments (5)

mdraw avatar mdraw commented on August 18, 2024

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.

Tralapo avatar Tralapo commented on August 18, 2024

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.

mdraw avatar mdraw commented on August 18, 2024

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.

Tralapo avatar Tralapo commented on August 18, 2024

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.

mdraw avatar mdraw commented on August 18, 2024

No problem, glad to hear that it works now with the apt installation. Good luck with the server upgrade!

from deface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.