Open Readerlution opened 3 years ago
For everybody that didnt get it to work with the above mentioned fix try this(should work on windows and linux): Use python 3.7, clone the stylegan2 repo and copy dnnlib in the /lib/site-packages/ folder of your env. Last but not least pip install ffmpeg.
This is not my fix I found it in an comment on reddit form /u/RedditWithBoners
take a look a this , the pip install work for me and the bug was fix https://github.com/podgorskiy/dnnlib
I worked around this by just putting my script in the stylegan folder
No code editing needed: just copy the dnnlib folder and drag it outside of stylegan2 folder
ModuleNotFoundError: No module named 'torch_utils.persistence' is the next issue i had. any thoughts?
Hey there! It seems like you're encountering a ModuleNotFoundError
related to torch_utils.persistence
. This error typically occurs when the required module is missing from your environment.
Check Dependencies: Ensure that you have all the necessary dependencies installed in your environment. In this case, it seems like you might be missing the torch_utils
module.
Installation: If torch_utils
is a separate package, you might need to install it using a package manager like pip:
pip install torch-utils
I kept running into the error below using the basic example script.
changed the main.py line 32-33 from
to
on my computer and it seems to have fixed that issue