Giter Site home page Giter Site logo

Comments (4)

sickelap avatar sickelap commented on June 2, 2024

could you please also include logs from /logs/face_recognition.log
you can get them by running docker exec backend cat /logs/face_recognition.log

from librephotos.

Nertskull avatar Nertskull commented on June 2, 2024

@sickelap

I get this output

~$ docker exec librephotos-backend-1 cat /logs/face_recognition.log 
face_recognition: service starting
face_recognition: created face_location=[]
127.0.0.1 - - [2023-11-09 17:52:19] "POST /face-locations HTTP/1.1" 201 135 0.769288
face_recognition: created face_location=[]
127.0.0.1 - - [2023-11-09 17:52:20] "POST /face-locations HTTP/1.1" 201 135 0.315403
face_recognition: created face_location=[(546, 614, 700, 459)]
127.0.0.1 - - [2023-11-09 17:52:21] "POST /face-locations HTTP/1.1" 201 152 0.726863
Fatal Python error: Illegal instruction

Current thread 0x00007fa83b20a040 (most recent call first):
  File "/usr/local/lib/python3.11/dist-packages/face_recognition/api.py", line 165 in <listcomp>
  File "/usr/local/lib/python3.11/dist-packages/face_recognition/api.py", line 165 in _raw_face_landmarks
  File "/usr/local/lib/python3.11/dist-packages/face_recognition/api.py", line 213 in face_encodings
  File "/code/service/face_recognition/main.py", line 25 in create_face_encodings
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1469 in dispatch_request
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1484 in full_dispatch_request
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 2190 in wsgi_app
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 2213 in __call__
  File "/usr/local/lib/python3.11/dist-packages/gevent/pywsgi.py", line 1053 in run_application
  File "/usr/local/lib/python3.11/dist-packages/gevent/pywsgi.py", line 1107 in handle_one_response
  File "/usr/local/lib/python3.11/dist-packages/gevent/pywsgi.py", line 804 in handle_one_request
  File "/usr/local/lib/python3.11/dist-packages/gevent/pywsgi.py", line 574 in handle
  File "/usr/local/lib/python3.11/dist-packages/gevent/pywsgi.py", line 1700 in handle
  File "/usr/local/lib/python3.11/dist-packages/gevent/baseserver.py", line 34 in _handle_and_close_when_done

Extension modules: greenlet._greenlet, zope.interface._zope_interface_coptimizations, gevent.libev.corecext, gevent._gevent_c_greenlet_primitives, gevent._gevent_c_hub_local, gevent._gevent_c_waiter, gevent._gevent_c_hub_primitives, gevent._gevent_c_ident, gevent._gevent_cgreenlet, markupsafe._speedups, gevent._gevent_c_abstract_linkable, gevent._gevent_cevent, PIL._imaging, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, gevent._gevent_c_semaphore, gevent._gevent_cqueue, gevent._gevent_c_imap, PIL._webp (total: 30)

from librephotos.

derneuere avatar derneuere commented on June 2, 2024

https://docs.librephotos.com/docs/user-guide/faq

Looks like your proxmox instance surpresses some instructions sets.

from librephotos.

Nertskull avatar Nertskull commented on June 2, 2024

That was my problem, thank you! I changed CPU type to 'host' and reboot and now face recognition works.

I do still get this error as above, which I'll leave here in case it's useful. But otherwise my issue with the face recognition seems to be resolved. Thanks!

librephotos-backend-1   | 19:50:08 [Q] ERROR Failed 'api.directory_watcher.scan_faces' (winter-nevada-oscar-fillet) - 'list' object has no attribute 'len' : Traceback (most recent call last):                                           
librephotos-backend-1   |   File "/usr/local/lib/python3.11/dist-packages/django_q/worker.py", line 97, in worker                                                                                                                                           
librephotos-backend-1   |     res = f(*task["args"], **task["kwargs"])                                                                                                                                                                                      
librephotos-backend-1   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                      
librephotos-backend-1   |   File "/code/api/directory_watcher.py", line 463, in scan_faces                                                                                                                                                                  
librephotos-backend-1   |     return {"new_face_count": all.len(), "status": lrj.failed is False}                                                                                                                                                           
librephotos-backend-1   |                               ^^^^^^^                                                                                                                                                                                             
librephotos-backend-1   | AttributeError: 'list' object has no attribute 'len'                                                                                                                                                                              
librephotos-backend-1   |                                                                                                                                                                                                                                   
librephotos-backend-1   | face_recognition: created face_location=[]    

from librephotos.

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.