Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.4k views
in Technique[技术] by (71.8m points)

keras - how to train a custom model for few shot using Reptile?

I am new to few-shot learning, and I wanted to get a hands-on understanding of it, using Reptile algorithm, applied to my custom dataset.

My custom dataset has 30 categories, with 5 images per category, so this would be a 30 way 5 shot.

Given a new image, I wish to be able to classify it into one of 30 categories. I changed train_shots = 5, classes = 30 in the linked example and got the training output as

batch 0: train=0.050000 test=0.050000
batch 1: train=0.050000 test=0.050000
batch 2: train=0.050000 test=0.050000

This feels wrong. Should the custom dataset be used as a validation set, with mini-ImageNet as a training dataset, so that the knowledge is transferred? Or can I use only a custom dataset with only 30?5=150 images for training? Kindly help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...