Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in encode_images.py #49

Open
eluzzi5 opened this issue Jan 6, 2021 · 1 comment
Open

Syntax error in encode_images.py #49

eluzzi5 opened this issue Jan 6, 2021 · 1 comment

Comments

@eluzzi5
Copy link

eluzzi5 commented Jan 6, 2021

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
Copy link
Author

eluzzi5 commented Jan 6, 2021

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant