Git Product home page Git Product logo

dense-head-pose-estimation's People

Contributors

1996scarlet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dense-head-pose-estimation's Issues

Memory usage

hi @1996scarlet

Is it expected that the model uses around 18GB of video RAM?
Or does it maximises the RAM available to help with speed? (I got a 24GB ram GPU, and usage goes up to 22.2GB while inferencing)
Thanks for this amazing MIT license repo btw.

MobileNet vs. ResNet

In the original 3DDFA_v2, one can choose to use MobileNet or Resnet. Resnet is slower, but gives better tracking results.

I can’t find anything in the code about that. Has that functionality been replaced with something different and/or better?

asset/render.so: cannot open shared object file: No such file or director

It worked well with:
$ python3 demo_video.py -m pose -f ./re.mp4
$ python3 demo_video.py -m sparse -f ./re.mp4
$ python3 demo_video.py -m dense -f ./re.mp4

but with mesh not as you see here:

$python3 demo_video.py -m mesh -f ./re.mp4
2022-12-05 17:03:03.713207: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "demo_video.py", line 55, in
main(args)
File "demo_video.py", line 21, in main
color = service.TrianglesMeshRender("asset/render.so", "asset/triangles.npy")
File "/home/redhwan/2/HPE/tensorflow/Dense-Head-Pose-Estimation-main/service/CtypesMeshRender.py", line 17, in init
self._clibs = ctypes.CDLL(clibs)
File "/usr/lib/python3.8/ctypes/init.py", line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: asset/render.so: cannot open shared object file: No such file or directory

__init__() got an unexpected keyword argument 'num_threads'

While running "python3 demo_video.py -m mesh -f
I receive the following ERROR:
File "demo_video.py", line 53, in
main(args)
File "demo_video.py", line 16, in main
fa = service.DenseFaceReconstruction("weights/dense_face.tflite")
File "/home/happy/PycharmProjects/Dense-Head-Pose-Estimation/service/TFLiteFaceAlignment.py", line 11, in init
num_threads=num_threads)
TypeError: init() got an unexpected keyword argument 'num_threads'

Convert model to CoreML format

@1996scarlet I am currently using the tflite model from your repo. I am running inference on a mac so I would like to convert the model into coreml (for Apple M1/M2) . Can you provide me the source model so that I can convert this into coreml format or suggest some ways to convert tflite to coreml ?

Landmark accuracy around the eyes.

Does anyone have a problem with accuracy of landmarks around the eyes, like if i have my eyes fully open or fully closed, the landmarks wont change.

there is no asset/render.so

Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "demo_video.py", line 53, in
main(args)
File "demo_video.py", line 18, in main
color = service.TrianglesMeshRender("asset/render.so",
File "/home/xuhao/workspace/Dense-Head-Pose-Estimation-main/service/CtypesMeshRender.py", line 17, in init
self._clibs = ctypes.CDLL(clibs)

asset/render.so not found

While running "python3 demo_video.py -m mesh -f
I receive the following ERROR
OSError: asset/render.so: cannot open shared object file: No such file or directory
I can successfully run the other three modes (sparse, dense, pose)

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.