interfacegan icon indicating copy to clipboard operation
interfacegan copied to clipboard

AttributeError: module 'tensorflow' has no attribute 'get_variable'

Open hamediut opened this issue 2 years ago • 2 comments

InterFaceGAN_error Hello, I am trying to implement your code but I keep getting this error despite changing all 'tf.' functions to 'tf.compat.v1.' I solved couple of no module error but I cannot find this one anywhere in the .py files. Is it something happens upon loading the model? Thank you in advance for your help :)

hamediut avatar Jun 28 '22 16:06 hamediut

Yes I met this issue before. It turned out that I did not load the correct pretrained model (.pth file). I put the .pth file in the pretrain folder as below and the issue was solved. Hope this could help.

image

Evelyn92 avatar May 08 '23 12:05 Evelyn92

@Evelyn92 Could you kindly either upload the "stylegan_celebahq.pth" file, or provide me with a link to download it?

elizurkelner avatar Jul 17 '23 07:07 elizurkelner