genforce / idinvert

[ECCV 2020] In-Domain GAN Inversion for Real Image Editing
https://genforce.github.io/idinvert/
MIT License
461 stars 65 forks source link

SyntaxError: invalid syntax #11

Closed mengyuxin520 closed 4 years ago

mengyuxin520 commented 4 years ago

When I try to train the generator, the error appears as below:

Traceback (most recent call last): File "train.py", line 11, in import dnnlib File "/stylegan/dnnlib/init.py", line 20 submit_config: SubmitConfig = None # Package level variable for SubmitConfig which is only valid when inside the run function. ^ SyntaxError: invalid syntax

Could you give me some advice?

zhujiapeng commented 4 years ago

Here is a solution https://stackoverflow.com/questions/57145923/implementation-of-stylegan-by-nvlabs-shows-syntax-error.

mengyuxin520 commented 4 years ago

I set python 3.7 and the latest tensorflow version. Is there else environment I need?

zhujiapeng commented 4 years ago

In repo's README.md file, we offered the environment (as shown in red rectangle) we run the code. 捕获