Open wjwka opened 6 years ago
n_epochs = 50 n_episodes = 100 n_way = 40 n_shot = 5 n_query = 95 h_dim = 16 z_dim = 32
n_examples = 100 im_width, im_height, channels = 48,48,1
n_test_episodes = 1 n_test_way = 2 n_test_shot = 5 n_test_query = 100-n_test_shot
I do get 1.00 accuracy using your origin testing code, queries chosen from the same supporting class. But, I think the result is understandable since it is just the way it was trained...?
In this case, do you maybe have any idea of how to solve a few shot learning problem with more than one new unseen classes? :)
when test, test_support and test_query are the same number of classes, if not, you should modify emb_query ( tf.reshape(q, [ num_query_class * num_queries, im_height, im_width, channels]) )
maybe the feature of the test dataset is totally different from the training set. I had try my dataset it performed well
Hi, I'm studying your code, and I notice that during the test process, the proto net is very good at recognizing a new class(which is just learned) from all the classes in training set. However, when I need it to recognize the just learned class from other unseen classes, it performs very badly.
The performance is :
Testing NEGATIVE... Average Test Accuracy: 0.54737
Please correct me if I understand it wrong. Looking forward to your reply, and thank you for your help in advance.