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

issue inference : 'NoneType' object has no attribute 'device' #30

Open
tengolagan opened this issue Jun 6, 2022 · 0 comments
Open

issue inference : 'NoneType' object has no attribute 'device' #30

tengolagan opened this issue Jun 6, 2022 · 0 comments

Comments

@tengolagan
Copy link

Hi

Loading networks from "network-snapshot-000419.pkl"...
Traceback (most recent call last):
  File "generate.py", line 814, in <module>
    main()
  File "generate.py", line 809, in main
    func(**kwargs)
  File "generate.py", line 69, in generate_images
    _G, _D, Gs = pickle.load(fp)
  File "/content/drive/MyDrive/colab-sg2-ada/stylegan2-ada/dnnlib/tflib/network.py", line 443, in __setstate__
    self._init_fields(name=name, static_kwargs=static_kwargs, build_func=build_func, build_func_name=build_func_name, build_module_src=build_module_src)
  File "/content/drive/MyDrive/colab-sg2-ada/stylegan2-ada/dnnlib/tflib/network.py", line 93, in _init_fields
    device = tf.no_op(name="_QueryDevice").device
AttributeError: 'NoneType' object has no attribute 'device'

I think that's because of tensorflow's version. how can I debbug this ?
thanks

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

1 participant