Git Product home page Git Product logo

Comments (7)

vtddggg avatar vtddggg commented on July 24, 2024 2

Yes. Exactly it is what i am looking for!

By comparing the your uploaded parquets and my generated parquets using https://github.com/mlfoundations/dataset2metadata, I found there are some incompatible keys ('clip_b32_similarity_score' vs. 'oai-clip-vit-b32-score').

This problem I think can be solved by change postprocess_parquet_lookup (https://github.com/mlfoundations/dataset2metadata/blob/225408d90462323cf2afc5b40e789bc8cd966ce6/dataset2metadata/registry.py#L25)

I will post here once I finish my reproduction of baselines using this entire process.

I ran clip_score_l14_30_percent filtering on my generated parquets, and got 5.39% zero-shot ImageNet acc for small track, which is comparable with the official 5.1%.

from datacomp.

gabrielilharco avatar gabrielilharco commented on July 24, 2024 1

Hey @vtddggg. That's a great question, and it was a big point of discussion when we were designing our codebase. While it's certainly possible to implement the filtering solution, the problem is that this can make training quite slow (especially if are filtering a large fraction of the pool) because the dataloader still needs to iterate through all samples in the pool. Therefore, we decided to go with the first approach, where you pay an initial cost to reshard and need some extra storage, but in return the training is much faster.

We have some discussion about this decision in our paper in Appendix J (https://arxiv.org/abs/2304.14108)

from datacomp.

vtddggg avatar vtddggg commented on July 24, 2024

I got it. Thanks!

from datacomp.

vtddggg avatar vtddggg commented on July 24, 2024

@gabrielilharco Sorry, I just reopen the issue again.

When we want to compute clip score from raw image & text (instead of reading from metadata), we must learn to process tars files. However there are few reference examples about the use of webdatasets.

Regarding as the detailed implementation of baseline methods, can you provide a simple example about fetch uid & image & text data from tars with distributed data parallel, and generate sample_ids.npy? I think it will be very helpful

from datacomp.

gabrielilharco avatar gabrielilharco commented on July 24, 2024

No problem! We also open-sourced code that we used for generating our metadata in this repo: https://github.com/mlfoundations/dataset2metadata. Let me know if that covers what you're looking for

from datacomp.

vtddggg avatar vtddggg commented on July 24, 2024

Yes. Exactly it is what i am looking for!

By comparing the your uploaded parquets and my generated parquets using https://github.com/mlfoundations/dataset2metadata, I found there are some incompatible keys ('clip_b32_similarity_score' vs. 'oai-clip-vit-b32-score').

This problem I think can be solved by change postprocess_parquet_lookup (https://github.com/mlfoundations/dataset2metadata/blob/225408d90462323cf2afc5b40e789bc8cd966ce6/dataset2metadata/registry.py#L25)

I will post here once I finish my reproduction of baselines using this entire process.

from datacomp.

sagadre avatar sagadre commented on July 24, 2024

Nice—thanks for looking into this end to end! I will add a flag to dataset2metadata to use keys that are compatible with this repo

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.