Git Product home page Git Product logo

Comments (6)

seungtaekoh avatar seungtaekoh commented on August 10, 2024

ME TOO !!! PLEASE .....

from depthnets.

SinaHonari avatar SinaHonari commented on August 10, 2024

Hi there, you can follow the steps mentioned here to use the Recombinator Networks to get the keypoint predictions: https://github.com/SinaHonari/RCN/tree/master/trained_model/RCN_300W

There is a pre-trained keypoint prediction model you can use. This model was used to extract the keypoints for the DepthNet experiments. Note that the Recombinator Network repo is in Theano.

from depthnets.

y-x-c avatar y-x-c commented on August 10, 2024

thanks @SinaHonari . The question is that RCN extracts 68 points instead of 66 points used in DepthNet; is there a way to convert from 68 to 66 pts?

from depthnets.

christopher-beckham avatar christopher-beckham commented on August 10, 2024

@y-x-c there is this method in the utils.py file:

def convert_keypts_66_to_68(arr):
kps_68 = np.zeros((68, 2))
kps_68[0:60] = arr[0:60] # kpts 1 to 60 is kypts 1 to 60
kps_68[60] = (arr[60-1]+arr[50-1]) / 2. # kpt 61 is the avg of kpts 60 and 50
kps_68[61] = arr[60] # kpt 62 is keypt 61
kps_68[62] = arr[61] # kpt 63 is keypt 62
kps_68[63] = arr[62] # kpt 64 is keypt 63
kps_68[64] = (arr[54-1] + arr[56-1]) / 2. # kpt 65 is the avg of kpts 54 and 56
kps_68[65] = arr[63] # kpt 66 is keypt 64
kps_68[66] = arr[64] # kpt 67 is keypt 65
kps_68[67] = arr[65] # kpt 68 is keypt 66
return kps_68

That converts from 66 to 68, but you could just use that to infer going from 68 to 66 (removing zero-indexed indices 60 and 64)

from depthnets.

y-x-c avatar y-x-c commented on August 10, 2024

thanks! I will try.

from depthnets.

christopher-beckham avatar christopher-beckham commented on August 10, 2024

@royaljava @seungtaekoh @y-x-c sorry for a rather late addressal of the issue. I have labeled it 'enhancement request'. While we used @SinaHonari's RCN network to extract face keypoints, unfortunately it is in Theano and perhaps not a lot of people use it anymore (or will bother to remember how to set it up). If you are able to use an off-the-shelf keypoint detector that extracts either 68 or 66 keypoints, that would be faster. Or, worst case scenario, you may have to train one yourself, but this shouldn't take too long if you're working with a modest resolution. An example of one of these repos can be found here: https://github.com/soheil-mpg/Facial-Keypoint-Detection (it includes data in the repo)

Thanks.

from depthnets.

Related Issues (10)

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.