Git Product home page Git Product logo

Comments (9)

djghosh13 avatar djghosh13 commented on July 24, 2024 1

Hi @EIFY, thanks for digging deeper into the issue! Even if the code runs without errors, when commenting out the line, the zeroshot templates that you see are actually incorrect.

It seems like this was broken in a recent update to clip-benchmark (a dependency of this code). Make sure you have clip-benchmark==1.4.0 installed as per the environment.yml file; the version number should not be greater or less than that. Be sure to uncomment the code you commented out as well.

You may need to rerun all your evals after this fix, because it is likely all of the test sets were evaluated with the incorrect zeroshot templates.

from datacomp.

djghosh13 avatar djghosh13 commented on July 24, 2024 1

Looking over the issue again, I don't believe it would affect all of your evals, but it is probably still safer to rerun evals from scratch (delete the eval_results.jsonl file for any models you've tried to evaluate).

from datacomp.

EIFY avatar EIFY commented on July 24, 2024 1

@djghosh13 Thanks for the replies — rolling back to clip-benchmark==1.4.0 indeed solves the issue. Just to confirm, are these the intended zeroshot_templates?

zeroshot_templates=['age:a photo of a person {c} years old', 'gender:a photo of a {c}', 'race:a photo of a {c} person', 'toxic:a photo of a {c}']

from datacomp.

djghosh13 avatar djghosh13 commented on July 24, 2024 1

Yes, those are correct. Glad the issue was resolved!

from datacomp.

EIFY avatar EIFY commented on July 24, 2024 1

Personally I consider running the package with older or newer dependencies than specified some sort of off-label use, but I don't mind keeping this open till clip-benchmark is fixed as a warning sign 😅

from datacomp.

rom1504 avatar rom1504 commented on July 24, 2024

I think we should keep this open until clip benchmark is fixed

from datacomp.

djghosh13 avatar djghosh13 commented on July 24, 2024

@rom1504 do you mean as a reminder to other potential users of datacomp? I've already opened LAION-AI/CLIP_benchmark#109 in CLIP_benchmark as an issue to remind us to fix this problem

from datacomp.

rom1504 avatar rom1504 commented on July 24, 2024

from datacomp.

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.