this post was submitted on 27 Oct 2023
1 points (100.0% liked)
Machine Learning
1 readers
1 users here now
Community Rules:
- Be nice. No offensive behavior, insults or attacks: we encourage a diverse community in which members feel safe and have a voice.
- Make your post clear and comprehensive: posts that lack insight or effort will be removed. (ex: questions which are easily googled)
- Beginner or career related questions go elsewhere. This community is focused in discussion of research and new projects that advance the state-of-the-art.
- Limit self-promotion. Comments and posts should be first and foremost about topics of interest to ML observers and practitioners. Limited self-promotion is tolerated, but the sub is not here as merely a source for free advertisement. Such posts will be removed at the discretion of the mods.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes, do this. Should be quick and easy, and you should get decent results with only ~10 examples per class.
Thanks.
Once you get the embeddings from the pretrained model, what classification method should one use for the final classification? Random forest? SVM?
I will also look into the average method you mentioned. Are you saying taking the averages of the embeddings for each class, and then to classify an embedding, see which class average is closest to the embedding (by closest you mean something like the L2 norm)?
It's encouraging that one can do this in a day, but I haven't done any ML work for a few years. Should I use Pytorch or Tensorflow?
Thanks
Use pytorch - tensorflow is pretty much dead.
I'd also use google colab (the free version is fine).
Start from someone elses colab that already uses the pretrained models you need, and then nearly everything is already set up for you, and you won't spend a day wrestling with GPU drivers.
L2 norm is fine, yes, although you might get better results with cosine similarity.
If I were you, I would start here:
https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_similarity.ipynb
Hit the little play buttons to edit and run the code yourself.