Code Monkey home page Code Monkey logo

face-recognition-docker's Introduction

Top Languages

face-recognition-docker's People

Contributors

thebigpotatoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

face-recognition-docker's Issues

TypeError: Cannot read property 'detection' of undefined

Sorry, I know you're busy - maybe someone else using this can eventually debug it at some point!

Troubleshooting this error is way beyond my abilities:

#13 67.85 Processing faces in Tim
#13 67.85 - Started processing 20161022_112243_0F533AAB.jpg
#13 67.90 - Started processing 20161219_231659_C7700EE7.jpg
#13 67.91 - Started processing 20170816_144308_3F203C38.jpg
#13 113.7 - Finsihed processing file 20161219_231659_C7700EE7.jpg (1 out of 3)
#13 115.6 - Finsihed processing file 20170816_144308_3F203C38.jpg (2 out of 3)
#13 115.6 /usr/app/node_modules/face-api.js/build/commonjs/factories/WithFaceDetection.js:5
#13 115.6     return obj['detection'] instanceof FaceDetection_1.FaceDetection;
#13 115.6               ^
#13 115.6
#13 115.6 TypeError: Cannot read property 'detection' of undefined
#13 115.6     at Object.isWithFaceDetection (/usr/app/node_modules/face-api.js/build/commonjs/factories/WithFaceDetection.js:5:15)
#13 115.6     at /usr/app/node_modules/face-api.js/build/commonjs/draw/drawDetections.js:11:36
#13 115.6     at Array.forEach (<anonymous>)
#13 115.6     at Object.drawDetections (/usr/app/node_modules/face-api.js/build/commonjs/draw/drawDetections.js:8:21)
#13 115.6     at /usr/app/descriptor-creator.js:85:34
#13 115.6     at processTicksAndRejections (node:internal/process/task_queues:94:5)
------
error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c node descriptor-creator.js]: exit code: 1

if I run over the Penny/Sheldon folders I don't get an error - but as soon as I add my own folder to /faces with photos in, it throws this error.

Is there something wrong with my face? ;D

Docker container immediately stops

One more (sorry :)) The container outputs:

cpu backend was already registered. Reusing existing backend factory.
Platform node has already been set. Overwriting the platform with [object Object].

then stops. I managed to get into the container and try running node app.js manually and the error seems to be:

root@54a310491663:/usr/app# node app.js -v
cpu backend was already registered. Reusing existing backend factory.
Platform node has already been set. Overwriting the platform with [object Object].
Illegal instruction (core dumped)

If I run nodejs in verbose mode it's the tensorflow node:

MODULE 40: load "/usr/app/node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node" for module "/usr/app/node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node"
Illegal instruction (core dumped)

Bit of googling - found out that to run this the CPU needs to support AVX instruction set. I'm running on a virtualized environment (qeum) and it doesn't look like this is supported :(

Make descriptor-creator an endpoint

Hi,

Looks really promising except the complete tangent that is needed to build descriptors - could it not just be moved to a service, just like the rest of the commands?

Many thanks!

[Solved] Running descriptor_creator throws 'Cannot autolaunch D-Bus without X11 $DISPLAY'

Trying to generate descriptor files using the command:

docker buildx build -f ./Dockerfiles/build-descriptors.dockerfile -o descriptor_creator .

fails on a default debian / docker install with:

[+] Building 0.5s (3/3) FINISHED
 => [internal] load build definition from build-descriptors.dockerfile                                                                                                                                                                                       0.0s
 => => transferring dockerfile: 50B                                                                                                                                                                                                                          0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                                                                                              0.0s
 => ERROR [internal] load metadata for docker.io/library/node:15                                                                                                                                                                                             0.4s
------
 > [internal] load metadata for docker.io/library/node:15:
------
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

This can be fixed by running the following command:

sudo apt remove golang-docker-credential-helpers

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.