idinvert icon indicating copy to clipboard operation
idinvert copied to clipboard

python train_encoder.py

Open mengyuxin520 opened this issue 4 years ago • 9 comments

When i am trying to training the encoder, I got the error as below:

tensorflow.python.framework.errors_impl.FailedPreconditionError: datasets/custom-dataset; Is a directory [[{{node IteratorGetNext}}]]

mengyuxin520 avatar Sep 03 '20 07:09 mengyuxin520

When training the encoder, we do not need progressive training. So, you should only specify one file for the dataset (i.e., the one with the highest resolution) instead of a directory of datasets from all resolutions.

ShenYujun avatar Sep 03 '20 10:09 ShenYujun

It would be nice if this was added to the README. Also adding information about using the dataset_tool.py could be useful for people who never used StyleGAN before.

leoffx avatar Nov 20 '20 14:11 leoffx

Good suggestion! We will update the README soon. Thanks!

ShenYujun avatar Nov 21 '20 04:11 ShenYujun

Thanks for your great job. Recently, i am reading your code. However, i am struggling in a problem. Why not fix the discriminator “D” while training the encoder “E”? Because, from what I understand, I found, that the generator “G” is fixed. But why, the subsequent discriminator “D” can be updated? Can you help me ?

bigorange-1 avatar Oct 25 '23 03:10 bigorange-1

Because the image output from the G is dynamically changing i.e., from the initial reconstruction to good reconstruction. Hence, the D needs to be updated.

zhujiapeng avatar Oct 25 '23 03:10 zhujiapeng

So, we can still see the training process of D and E as adversarial trainingg, is it right?

bigorange-1 avatar Oct 25 '23 03:10 bigorange-1

Yes.

zhujiapeng avatar Oct 25 '23 03:10 zhujiapeng

Thank you very much.

bigorange-1 avatar Oct 25 '23 03:10 bigorange-1

Hello, I have another question. In perceptual_model.py,i saw that you used VGG16. However, i can't find any training about it. Don’t we need to fine-tune it when we use it? Will directly using the officially provided pre-trained weights have an impact on our results? Or maybe I'm wrong. Missing some key information in your code?Could you tell me? Thank you.

bigorange-1 avatar Oct 27 '23 09:10 bigorange-1