You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: module 'tensorflow' has no attribute 'get_variable' #100
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 :)
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.
Activity
Evelyn92 commentedon May 8, 2023
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.
elizurkelner commentedon Jul 17, 2023
@Evelyn92
Could you kindly either upload the "stylegan_celebahq.pth" file, or provide me with a link to download it?