stylegan2-pytorch
stylegan2-pytorch copied to clipboard
assert state["version"] in [2, 3]
when i run convert_weight.py --repo /media/31_sdf/stylegan2/ /media/31_sdf/stylegan2/pretrained_models/stylegan2-ffhq-config-f.pkl check the path is right and pkl is download from https://github.com/NVlabs/stylegan2 https://drive.google.com/drive/folders/1yanUI9m4b4PWzR0eurKNq6JR1Bbfbh6L
the error is :
Traceback (most recent call last):
File "/media/31_sdf/stylegan2/convert_weight.py", line 227, in
I think maybe version of the code that created pickle is different from repository you set.
same issue here. i trained a model based off the original stylegan2 repo.
I made the same mistake delete it...it works momently : )
Maybe I found this solution!
the usage of "--repo stylegan2" is using the dnnlib in stylegan2, maybe u have installed the dnnlib by pip, so u should uninstall and try again