Puzer / stylegan-encoder

StyleGAN Encoder - converts real images to latent space
Other
1.07k stars 166 forks source link

Syntax error in encode_images.py #49

Open eluzzi5 opened 3 years ago

eluzzi5 commented 3 years ago

Getting this when trying to learn new vectors and running python encode_images.py aligned_images/ generated_images/ latent_representations/:

File "/content/stylegan-encoder/encode_images.py", line 73 img.save(os.path.join(args.generated_images_dir, f'{img_name}.png'), 'PNG')

I have read that f'{} requires python3, but I cannot run python3 without tensorflow 2.x, while this model requires Tensorflow 1.14. I am not sure how to get past this.

Can anyone please help me? Thank you!

eluzzi5 commented 3 years ago

@dagdelenmustafa I'm the same person who you helped with the previous error which had to do with tensorflow. I suspect this issue has something to do with that as well. I don't mean to call you out but I was wondering if you encountered this as well. Thank you so much!