Code Monkey home page Code Monkey logo

Comments (6)

hugochan avatar hugochan commented on May 28, 2024

@IvanKwokKC It's because the input data has been normalized. You may want to check out the official release of the code here.

from eye-tracker.

IvanKwokKC avatar IvanKwokKC commented on May 28, 2024

I find the normalization function in the code:

def normalize(data):
    shape = data.shape
    data = np.reshape(data, (shape[0], -1))
    data = data.astype('float32') / 255. # scaling
    data = data - np.mean(data, axis=0) # normalizing
return np.reshape(data, shape)

I am not good in statistics. I think this is zero mean normalization.
data = data - np.mean(data, axis=0) # normalizing

Does it possible convert normalized data back to original one?
I have no idea.

from eye-tracker.

hugochan avatar hugochan commented on May 28, 2024

@IvanKwokKC I think you can just keep the original data.

from eye-tracker.

Vampire-Vx avatar Vampire-Vx commented on May 28, 2024

I think the output is strange. The input has been normalized using a zero-mean function. However, the output always stay a small or negative number.

from eye-tracker.

Vampire-Vx avatar Vampire-Vx commented on May 28, 2024

train_y and val_y is actually the xy offset from your mobile phones camera. According to this dataset, the offset ranges from 0~20 centimeters. You normalize the input data but your did not normalize the output of the network. The problem is not the normalization.

from eye-tracker.

hugochan avatar hugochan commented on May 28, 2024

@Vampire-Vx Thank you for providing additional information. I wondered if the output has already been normalized by the original authors when releasing the dataset. The dataset I was using was a small sampling from the whole dataset. Please refer to #4 for more about this dataset. You may want to contact the original authors to get the raw output.

from eye-tracker.

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.