GP-UNIT icon indicating copy to clipboard operation
GP-UNIT copied to clipboard

content_encoder.pt

Open mapengsen opened this issue 2 years ago • 2 comments

If I want to train the model from a new datasets,

  1. does content_encoder.pt need to be retrained?
  2. How to train content_encoder.pt on the new datasets?

mapengsen avatar Sep 07 '22 01:09 mapengsen

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

williamyang1991 avatar Sep 07 '22 01:09 williamyang1991

In our experiment, we found the pretrained encoder generelized to giraffes, landscapes and art portraits.

williamyang1991 avatar Sep 07 '22 02:09 williamyang1991