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

AssertionError #26

Open
Colliwomple opened this issue Apr 16, 2021 · 1 comment
Open

AssertionError #26

Colliwomple opened this issue Apr 16, 2021 · 1 comment

Comments

@Colliwomple
Copy link

Colliwomple commented Apr 16, 2021

Ubuntu 20.04
I made a test.py put it in folder "lucidsonicdreams and execute it from there.
What i get is this:
`Lucid) xxxxx:~/lucid$ python test.py
WARNING:tensorflow:From /home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/tfutil.py:34: The name tf.Dimension is deprecated. Please use tf.compat.v1.Dimension instead.

WARNING:tensorflow:From /home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/tfutil.py:74: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

WARNING:tensorflow:From /home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/tfutil.py:128: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

Preparing style...
WARNING:tensorflow:From /home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/tfutil.py:97: The name tf.get_default_session is deprecated. Please use tf.compat.v1.get_default_session instead.

WARNING:tensorflow:From /home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/tfutil.py:109: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead.

WARNING:tensorflow:From /home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/tfutil.py:132: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

Downloading painting faces weights (This may take a while)...
Downloading...
From: https://drive.google.com/uc?id=1H-MYFZqngF1R0whm4bc3fEoX7VvOWaDl
To: /home/hades/lucid/painting faces.pkl
382MB [00:29, 13.1MB/s]
Download complete
Traceback (most recent call last):
File "test.py", line 9, in
duration = 90)
File "/home/hades/lucid/lucidsonicdreams/main.py", line 636, in hallucinate
self.stylegan_init()
File "/home/hades/lucid/lucidsonicdreams/main.py", line 126, in stylegan_init
self.Gs = pickle.load(f)[2]
File "/home/hades/anaconda3/envs/Lucid/lib/python3.7/site-packages/dnnlib/tflib/network.py", line 279, in setstate
assert state["version"] in [2, 3]
AssertionError
`

Anyone know how to solve this ??

UPDATE !!!!
For me the solution was:
Putting my script test.py and the wav/mp3 in the stylegan2 folder ! Now everything runs smooth without any errors

Maybe this is helpful for you !

@deltaRing
Copy link

deltaRing commented Apr 21, 2021

Oops, it seems that works for some pkl files but still remains errors.

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

2 participants