You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-11
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
-
# FaderNet: Implementation & Study
2
-
Alex Liu & Kevin Li, from NTU CSIE
1
+
# FaderNet: Implementation & Study
2
+
Alex Liu & Kevin Li, NTU CSIE
3
3
4
4
---
5
5
## Desciprtion
6
6
7
-
This is our final project repository of the course ADLxMLDS 2017, Fall.
7
+
This is our final project repository of the course ADLxMLDS, 2017 Fall.
8
8
9
9

10
10
11
-
In this project, we implement [FaderNet](https://arxiv.org/pdf/1706.00409.pdf) (NIPS 2017) and do capacity/reproducbility/ablation study. Our results can be find in the [poster](fig/post.pdf).
11
+
In this project, we implement [FaderNet](https://arxiv.org/pdf/1706.00409.pdf) (NIPS 2017) and do capacity/reproducbility/ablation study. Our results can be found in the [poster](fig/poster.pdf).
12
12
13
-
We've noticed that FaceBook had released [the offical github for FaderNet](https://github.com/facebookresearch/FaderNetworks). Since we've started the project slightly earlier than it's release, **ONLY in the part of testing FaderNet on unseen data (out of CelebA) had we used the model & modified the testing code FaceBook released. For all the remaining parts including training & experiments, we're using our own production.**
13
+
We've noticed that Facebook had released [the offical github for FaderNet](https://github.com/facebookresearch/FaderNetworks). Since we've started the project slightly earlier than it's release, **ONLY in the part of testing FaderNet on unseen data (out of CelebA) had we used the model & modified the testing code FaceBook released. For all the remaining parts including training & experiments, we're using our own implementation.**
14
14
15
15
16
-
The paper also specified their strategy on model selection, which we are not capable to reproduce due to resource limitaion. With our own model, we obtain a slightly worse result comparing to the paper due to the limitation of computing power and time we have.
16
+
The paper also specified their strategy on model selection, which we are not capable to reproduce due to resource limitaion. With our own model, we obtain a slightly worse result than the paper due to the limitation of computing power and time we have.
17
17
18
18
## Dependency & Requirement
19
19
@@ -27,7 +27,6 @@ Please make sure each of them is installed with the correct version
27
27
- pandas (0.20.3)
28
28
- skimage (0.13.1)
29
29
- matplotlib (2.1.1)
30
-
- Makefile
31
30
32
31
### Hardware Requirement
33
32
@@ -44,7 +43,7 @@ We're running our experiments with following hardware setting
44
43
45
44
FaderNet is trained on [CelebA](http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html), which is a large scale human face dataset. If you'd like to train the network yourself, please download CelebA and preprocess it into 256x256 images by running
46
45
47
-
TODO
46
+
python3 train_celeba.py
48
47
49
48
The training process tooks about 1 million steps (5~7 days) to generate result comparable to original paper.
50
49
@@ -59,10 +58,14 @@ To generate [fig2](fig/fig_2.jpg) in the poster (Reproducibility Study in Experi
59
58
60
59
The result will be slightly better than the one in the poster since it's now using the model 100000 steps after the one we've used in poster.
61
60
62
-
To generate [fig3]() & [fig4]() in the poster (Ablation Study in Experiments), run
61
+
To generate fig3 & fig4 in the poster (Ablation Study in Experiments), run
63
62
64
-
make aga's code
63
+
python3 train_celeba_aga_AttrFirstLayer.py
65
64
66
-
aga's comments
65
+
and
67
66
67
+
python3 train_celeba_aga_NoDiscriminator.py
68
68
69
+
Note that to run the 3 training codes such as train_celeba.py, please download CelebA and put them in the places you want.
70
+
Then you need to run python3 src/reshape.py
71
+
You then need to change the 3 paths in these training codes.
0 commit comments