Skip to content

Commit 0c6ea1a

Browse files
authored
Update README.md
1 parent 561968f commit 0c6ea1a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This repository is a TensorFlow2 implementation of [ProtoNet](https://arxiv.org/
77
3. source code of two backbones: conv4 (original in paper) and resnet;
88
4. source code of utilities such as image preprocessing and dataset.
99

10+
1011
### Applications
1112

1213
1. By just learning few face images from a random person, the model is able to identify and recognize that person effectively from a group of people. Below are samples tested on the [CelebA](https://mmlab.ie.cuhk.edu.hk/projects/CelebA.html) dataset.
@@ -19,9 +20,17 @@ In each sample, there are 3 face images learned by the model (under the text "Le
1920
<img src="https://raw.githubusercontent.com/DrMMZ/drmmz.github.io/master/images/celeba/2.JPG" width='380' height='420'/>
2021
<img src="https://raw.githubusercontent.com/DrMMZ/drmmz.github.io/master/images/celeba/celeba_movie.gif" width='380' height='420'/>
2122
</p>
22-
The model is trained on the CelebA dataset following its default splitting with Adam optimizer for 60 epochs over 2 GPUs. It achieves the following result after 10 epochs on the test set where query examples in each episode contains exact 1 person same as in support examples.
23+
The model is trained on the CelebA dataset following its default splitting and image size with ResNet50 backbone and Adam optimizer for 60 epochs over 2 GPUs. It achieves the following results after 10 epochs on the test set where query examples in each episode contains exact 1 person same as in support examples.
2324

2425
|3-shot|time (second)|mean (F1-score)|median (F1-score)|
2526
|---|---|---|---|
2627
|1-way, 15-query|0.04|0.91|1.0|
2728
|1-way, 100-query|0.17|0.82|0.83|
29+
30+
31+
### Requirements
32+
`python 3.7.9`, `tensorflow 2.3.1`, `matplotlib 3.3.4`, `numpy 1.19.2`, `scikit-image 0.17.2` and `scikit-learn 0.23.2`
33+
34+
35+
### References
36+
1. Snell et al., *Prototypical Networks for Few-shot Learning*, https://arxiv.org/abs/1703.05175, 2017

0 commit comments

Comments
 (0)