skyflynil / stylegan2

StyleGAN2 - Official TensorFlow Implementation with practical improvements
http://arxiv.org/abs/1912.04958
Other
120 stars 33 forks source link

can't load .pkl files UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 62 #18

Closed maxoak closed 4 years ago

maxoak commented 4 years ago

Hi together, working under Windows10, Anocanda with tensofllow 1.14.0 I tried to run the generator-samples, but got errors opening the pkl. python run_generator.py generate-images --network=gdrive:networks/stylegan2-ffhq-config-f.pkl --seeds=6600-6625 --truncation-psi=0.5 Error: return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 62: character maps to

Googled a lot, tried many encodings (latin1, utf8, some more...) , errors="ignore ", errors="replace". Or: open(path_or_url, 'rb') or 'r' ...Nothing worked for me. @ windows-users: anyone got it ro run?

Any help would be appreciated :-)

maxoak commented 4 years ago

Ok, found the solution, NVCC was not properly installed. After fixing this, everything worked fine.