Comments (6)
@vatsalsaglani were you able to get the solution for this?
Thank you,
KK
from maml-pytorch.
The only thing I have figured out is that we can put a representational data loader which represents images(used MAML for Computer Vision project) from every class/category and then use the test method. Its basically comparing the input image with all the images in our representational data loader. Haven't given it a try, but you can try it if that works.
Please share the solution if you are able to find one.
Thanks.
from maml-pytorch.
Thanks for your input. I will give a try on that.
Just wanted to how the task are being selected in MAML ? For example, in this example it has been selected as 4.
Thank you,
KK
from maml-pytorch.
From the MiniImageNet train file, while making the Dataloader, the task_num is taken, which is clear that it depicts batch_size.
Generally, in meta-learning, we have batches, and inside batches, we have set, here we have support sets, i.e. train sets and query sets, i.e. valid set and inside the sets we have the data. The number of data-points(images) for the support set is given using the variable k-shots, and the number of data-points(images) for the query set is passed using the k-query. Now, meta-learners are trained using the concept of episodic training, which might mean that for maximum, how many times are we willing to train the model on the same chunk of data-points(images), and here its n-ways. So you train a batch n-times(n-ways) which has m-tasks/batches and every task/batch has two sets, support, and query, and each of these sets has k-images and labels corresponding to them.
Correct me if I am wrong, it's my understanding of meta-learning after reading a bunch of papers on different meta-learning strategies and coding them out in PyTorch. I hope I cleared your doubts. Thanks for the reply, I am assured that I am not the only one stuck here to take the trained model to production.
from maml-pytorch.
@vatsalsaglani Thank you so much for the complete details.
from maml-pytorch.
Is there any way to predict the image class when a single image is passed through the trained MAML model like it's done in ResNet or other pre-trained or custom trained models?
@vatsalsaglani were you able to get the solution for this?
Thank you, KK
Sorry to bother you ,Have you solved the problem?
1.Which information of Meta should I save when I finish Meta-training ?
2.How can I use this information to fine-tuning my model by support set in meta-testing?
3.How can I use the model completing fine-tuning to predict only one picture?
Thanks!
from maml-pytorch.
Related Issues (20)
- Overlap between meta-training and meta-testing? HOT 1
- why use custom grad clip function?
- omniglot dataset download error HOT 1
- Does the hessian really gets computed? HOT 1
- Can you please add a 1-d CNN model to the learner.
- Incorrect losses_q HOT 3
- about dataset spiltting
- create_graph parameter is False hence first-order MAML? HOT 1
- Asking about inner and outer loop
- 您好,对于代码有两个问题,请教您一下,谢谢 HOT 3
- About training and testing HOT 6
- can you offer us your requirements of environment?
- Why is `for epoch in range(args.epoch // 10000):` HOT 2
- Why the code for Learner is so complicated? HOT 1
- 请问模型权值文件在哪里进行保存?代码在哪里? HOT 1
- debug
- Using the Learner object for my project, Loss not behaving at its best
- About accuracy HOT 6
- What is the backup file for and what is the reference navie5 in navie5?
- 准确率不变 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maml-pytorch.