vess2ret icon indicating copy to clipboard operation
vess2ret copied to clipboard

get_layer('d') = False

Open 32nguyen opened this issue 7 years ago • 3 comments

Hi, Very interesting work. I would like to have a question about freezing the D model. By tracking your code, I try to find where I set D model back on by get_layer('d') = True to update the weights. But I could not find it.

32nguyen avatar Jun 28 '17 18:06 32nguyen

Hi,

Thanks!

I freeze the discriminator on line 659 of the models.py, but only on the pix2pix model. This means that, if you train the model d, its weights will be updated. Not sure if this answers your question.

costapt avatar Jun 28 '17 19:06 costapt

Thank you for quick reply,

Yes, it makes me realize that I may understand keras implementation incorrectly. Let say that your created D model with name 'd', the in pix2pix model you import it, with name 'd' as I guess since you recall get_layer('d') = False. Then when you freeze the D model in pix2pix, I do not know if all layers 'd' in whole implementation is freeze or just in pix2pix. From you answer, I think it is only in pix2pix model. Hope that my thought is right.

Thanks,

32nguyen avatar Jun 28 '17 19:06 32nguyen

That's it. D is only frozen inside the pix2pix model. The model d can still be trained!

costapt avatar Jun 28 '17 19:06 costapt