GithubHelp home page GithubHelp logo

answer normalization about pytorch-vqa HOT 3 CLOSED

elbaro avatar elbaro commented on July 25, 2024
answer normalization

from pytorch-vqa.

Comments (3)

Cyanogenoid avatar Cyanogenoid commented on July 25, 2024

You are correct, my evaluation code is slightly different. After looking into this, it seems to me that their evaluation specification is badly designed.

As far as I can tell, in the official code, machine-given answers are normalized in several ways -- such as the removal of articles as you mention -- but the ground-truth answers it checks against only have their punctuation normalized. I made the assumption that you mention based on the fact that their evaluation would clearly be wrong if the ground truth is not normalized: if an unnormalized ground truth answer would be changed due to normalization if it were given as a machine answer, it is impossible for any machine-given answer to be considered equal to this ground truth answer. For example, if all ground truth answers are "the cat" and the machine predicts "the cat", then normalization will only change the machine answer to "cat", which is unequal to "the cat" and so receive a score of 0 in the official code.

As you correctly point out, the ground truth answers are indeed not normalized. This should mean that my code evaluates slightly more things to be correct (the ones where the normalization doesn't make a correct answer wrong) and that it might be worth filing an issue in their repository. A quick search through the data suggests that about 1750 questions in the training set are affected by this (most of them are answers that contain the word "one"). I would rather not introduce this "bug" into my code to make it equal to theirs.

from pytorch-vqa.

elbaro avatar elbaro commented on July 25, 2024

I agree the official method is broken. In my guess the original paper still used the old evaluation method, otherwise it cannot be compared to other papers.

You might want to clarify in README the list of differences to the paper (or any nontrivial assumption).

from pytorch-vqa.

Cyanogenoid avatar Cyanogenoid commented on July 25, 2024

I'll do that, thanks for flagging up these issues!

from pytorch-vqa.

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.