Code Monkey home page Code Monkey logo

Comments (8)

anilrgukt avatar anilrgukt commented on July 16, 2024

You have to invert the gaze vector normalization

## ---------- normalize gaze vector ----------
gc_normalized = gc - face_center # gaze vector
gc_normalized = np.dot(R, gc_normalized)
gc_normalized = gc_normalized / np.linalg.norm(gc_normalized)

from eth-xgaze.

chky avatar chky commented on July 16, 2024

you can refer to the paper "Revisiting data normalization for appearance-based gaze estimation", in section 3.3 Modified Data Normalization, xucong-zhang says gaze_normalized = R * gaze_real, where R is the Rotation matrix ( R = np.c_[right, down, forward].T )

from eth-xgaze.

mahdip72 avatar mahdip72 commented on July 16, 2024

The value of gaze are about in the range of -3 to 3 and the paper of dataset doesn't describe the normalizing procedure precisely or maybe I couldn't find it. Can somebody help me how could I transform the labels to degrees?

from eth-xgaze.

VeruGromnicova avatar VeruGromnicova commented on July 16, 2024

@mahdip72
The values are in radians, so just convert it according to this equation: 1 rad = 57.2958 degrees (you can find the more precise value ..). And the sign indicates which side from the axis is the angle.

from eth-xgaze.

mahdip72 avatar mahdip72 commented on July 16, 2024

@VeruGromnicova
Thanks for your respond. In the paper said that the head pose angles are between -80 to 80 degree, but if I the labels are in radian, then the maximum value goes beyond 80 degree (approximately 170 degree). Is it okay?

from eth-xgaze.

VeruGromnicova avatar VeruGromnicova commented on July 16, 2024

@mahdip72
Yes, that's okay, in radians the values have to be between -3,14 and 3,14, so in degrees it should be between -180 and 180 degrees. I am not really sure, what exactly the paper says cause I am not the author, but I tested this method in my thesis and this is what I remember..

from eth-xgaze.

mahdip72 avatar mahdip72 commented on July 16, 2024

I think there is a problem if we consider radian for labels. I mean if maximum value of head pose is 180 degree or something like that, then the camera should be placed behind of subject's head. There isn't an image like that in datatset. Am I wrong?

from eth-xgaze.

xucong-zhang avatar xucong-zhang commented on July 16, 2024

Hi, the values of head pose and gaze direction are in radians as pointed by @VeruGromnicova.
@mahdip72 Both head pose and gaze directions are in the camera coordinate system and initialled in the head/face position. The range of head pose in our dataset is about [-80, 80]. I don't think we have a 180 degree head pose.

from eth-xgaze.

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.