pbaylies / stylegan-encoder

StyleGAN Encoder - converts real images to latent space
Other
740 stars 180 forks source link

_pickle.UnpicklingError: invalid load key, '<'. #73

Closed praveenkumarchandaliya closed 1 year ago

praveenkumarchandaliya commented 1 year ago

generator_network, discriminator_network, Gs_network = pickle.load(f) _pickle.UnpicklingError: invalid load key, '<'.

praveenkumarchandaliya commented 1 year ago

Please replace dnnlib.util.open_url code with .....rb in encode_images.py

with open('karras2019stylegan-ffhq-1024x1024.pkl', "rb") as f1: generator_network, discriminator_network, Gs_network = pickle.load(f1)

if getting \x86.................error. Please add the below statement in util.py file.. res.content.decode("utf-8",errors="ignore")

praveenkumarchandaliya commented 1 year ago

Please replace dnnlib.util.open_url code with .....rb in encode_images.py

with open('karras2019stylegan-ffhq-1024x1024.pkl', "rb") as f1: generator_network, discriminator_network, Gs_network = pickle.load(f1)

if getting \x86.................error. Please add the below statement in util.py file.. res.content.decode("utf-8",errors="ignore")