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
+6-2
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ Pretrained models can be downloaded from [Google Drive](https://drive.google.com
78
78
| Model | Description |
79
79
| :--- | :--- |
80
80
|[encoder](https://drive.google.com/file/d/1NgI4mPkboYvYw3MWcdUaQhkr0OWgs9ej/view?usp=sharing)| Pixel2style2pixel encoder that embeds FFHQ images into StyleGAN2 Z+ latent code |
81
+
|[encoder_wplus](https://drive.google.com/file/d/1IVMWKfF8Yp41tsoLLZ8edwjVg_tkjmqQ/view?usp=share_link)| Original Pixel2style2pixel encoder that embeds FFHQ images into StyleGAN2 W+ latent code |
81
82
|[cartoon](https://drive.google.com/drive/folders/1xPo8PcbMXzcUyvwe5liJrfbA5yx4OF1j?usp=sharing)| DualStyleGAN and sampling models trained on Cartoon dataset, 317 (refined) extrinsic style codes |
82
83
|[caricature](https://drive.google.com/drive/folders/1BwLXWkSyWDApblBPvaHKsRCTqnhiHxUZ?usp=sharing)| DualStyleGAN and sampling models trained on Caricature dataset, 199 (refined) extrinsic style codes |
83
84
|[anime](https://drive.google.com/drive/folders/1YvFj33Bfum4YuBeqNNCYLfiBrD4tpzg7?usp=sharing)| DualStyleGAN and sampling models trained on Anime dataset, 174 (refined) extrinsic style codes |
@@ -93,6 +94,7 @@ The saved checkpoints are under the following folder structure:
93
94
```
94
95
checkpoint
95
96
|--encoder.pt % Pixel2style2pixel model
97
+
|--encoder_wplus.pt % Pixel2style2pixel model (optional)
96
98
|--cartoon
97
99
|--generator.pt % DualStyleGAN model
98
100
|--sampler.pt % The extrinsic style code sampling model
More options can be found via `python style_transfer.py -h`.
139
+
Specify `--wplus` to use the original pSp encoder to extract the W+ intrinsic style code, which may better preserve the face features of the content image.
140
+
141
+
**Remarks**: Our trained pSp encoder on Z+/W+ space cannot perfectly encode the content image. If the style transfer result more consistent with the content image is desired, one may use latent optimization to better fit the content image or using other StyleGAN encoders (as discussed in https://github.com/williamyang1991/DualStyleGAN/issues/11 and https://github.com/williamyang1991/DualStyleGAN/issues/29).
138
142
143
+
More options can be found via `python style_transfer.py -h`.
139
144
140
-
**Remarks**: Our trained pSp encoder on Z+ space cannot perfectly encode the content image. If the style transfer result more consistent with the content image is desired, one may use latent optimization to better fit the content image or using other StyleGAN encoders (as discussed in https://github.com/williamyang1991/DualStyleGAN/issues/11 and https://github.com/williamyang1991/DualStyleGAN/issues/29).
141
145
142
146
### Artistic Portrait Generation
143
147
Generate random Cartoon face images (Results are saved in the `./output/` folder):
0 commit comments