Giter VIP home page Giter VIP logo

Comments (4)

seba-1511 avatar seba-1511 commented on July 18, 2024 1

That sounds good, I'm curious to see if we could reuse the HuggingFace interface you'll write to provide other few-shot datasets with learn2learn.

Maybe a more immediate solution is to fix the names in the SPLITS dict? For example, there are label names in $DATA/fgvc_aircraft/fgvc-aircraft-2013b/data/images_family_test.txt but I'm not sure if those are the same splits as in MetaDataset.

from learn2learn.

seba-1511 avatar seba-1511 commented on July 18, 2024 1

Quick follow-up: the issue is that image_labels.pkl maps images to families but the Meta-Dataset splits use variants as class names. So the right fix is to load, say, images_variant_train.txt and use it to load all the images for a class (while using the Meta-Dataset class splits, which might or might not be the same as the original Aircraft variant splits).

from learn2learn.

seba-1511 avatar seba-1511 commented on July 18, 2024

Hello @AntreasAntoniou,

Thanks, I also don't find all the classes using your script. Looking at the data it seems like some of the class names in SPLITS are wrong or non-existent; for example, I can't find A318 as a plane family when inspecting the labels in image_labels. I remember getting those class names from the MetaDataset repo but don't know where the discrepancy comes from.

This needs a bit more investigation. Would you be interested in tackling this?

from learn2learn.

AntreasAntoniou avatar AntreasAntoniou commented on July 18, 2024

I need to resolve this for my work. The idea I have right now is to use the tensorflow hub's aircraft dataset, and convert it to a hugging face dataset because I hate the tf datasets package, and then use the hf dataset that I make as the data resource for the l2l class.

from learn2learn.

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.