GP-UNIT
GP-UNIT copied to clipboard
content_encoder.pt
If I want to train the model from a new datasets,
- does content_encoder.pt need to be retrained?
- How to train content_encoder.pt on the new datasets?
Our content_encoder.pt is trained on ImageNet291 and synImageNet291, which contains many domains and human faces. Generally, you can expect it to generelize to your new datasets. So you can directly use our pretrained content_encoder.pt on the new dataset.
If you want to train your own encoder, you can follow https://github.com/williamyang1991/GP-UNIT/#train-content-encoder-of-prior-distillation
If you datasets are unpaired, you can merge them into the unpaired dataset (ImageNet291) as new domains,
and specify the udataset_sizes
of your new domains.
https://github.com/williamyang1991/GP-UNIT/blob/2ee754e118ae838acbc9107f9ec15617c8f27271/prior_distillation.py#L174-L178
In our experiment, we found the pretrained encoder generelized to giraffes, landscapes and art portraits.