soft-intro-vae-pytorch icon indicating copy to clipboard operation
soft-intro-vae-pytorch copied to clipboard

a question

Open mikeyjhom opened this issue 1 year ago • 2 comments

Dear Mr. Tal Daniel I apologize for taking up your time. I have a question and would like to request your help. I trained the soft-intro_vae model using the code you provided, and the image generated during the training process was very good. However, after the model training was completed, I used the trained model to generate images, but received strange results This is the image generated during the training process

FXF8PMII9)~LRL@0)IWFABF

This is the image generated by calling the trained model

mmexport1711957926710 image_2 Is the method I used to call the trained model incorrect? Think about seeking your advice on a solution. I hope to receive your help. Thank you very much

mikeyjhom avatar Apr 01 '24 08:04 mikeyjhom

Hmmmm I think it has to do with Batch Normalization. I assume you use the standard architecture (and not the style-based one). Try turning BatchNorm on/off (model.train()/model.eval()) and see how it affects the results. The architecture in this model is very out-dated. I would replace all the Batch Normalization with Group Normalization to avoid depending on the batch size statistics.

taldatech avatar Apr 01 '24 08:04 taldatech

Okay, thank you very much for your reply. I will try to solve the problem based on your suggestions

mikeyjhom avatar Apr 01 '24 08:04 mikeyjhom