Skip to content

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

Open

Description

@hamediut

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

Activity

  1. Evelyn92 commented on May 8, 2023

    @Evelyn92

    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

  2. elizurkelner commented on Jul 17, 2023

    @elizurkelner

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions