Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hamediut opened this issue Jun 28, 2022 · 2 comments
Open

Comments

@hamediut
Copy link

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 :)

@Evelyn92
Copy link

Evelyn92 commented 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.

image

@elizurkelner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants