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

File "invert_v2.py", line 32 parser.add_argument('--learning_rate', type=float, default=0.01, ^ SyntaxError: invalid syntax #3

Closed
Kesavan-Raman opened this issue Feb 23, 2021 · 4 comments

Comments

@Kesavan-Raman
Copy link

Getting this kind of error, Please Help me Sir/Madam

@weihaox
Copy link
Collaborator

weihaox commented Feb 23, 2021

It looks like the error is caused by the version of python and interpreter (I use python 3.6 and Anaconda). For quick start, you can run the colab demo instead.

@Kesavan-Raman
Copy link
Author

Sir I Run in Colab only sir But i got this kind of error, any other suggestion sir ? Please help me

@weihaox
Copy link
Collaborator

weihaox commented Feb 23, 2021

Hi, @Kesavan-Raman

The right parenthesis was accidentally deleted when I cleaned up the code. I have fixed it. Sorry for the inconvience. Please try again.

If encountering the problem of 'No pre-trained weights will be loaded!', please change MODEL_DIR = os.path.join('models', 'pretrain') to MODEL_DIR = os.path.join('idinvert_pytorch', 'models', 'pretrain') in the Colab.

@Kesavan-Raman
Copy link
Author

Thank you Sir It's Now working 😇😇

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

No branches or pull requests

2 participants