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

argparse does't work together with FLAGS #3

Open
ZiangYan opened this issue Mar 30, 2019 · 0 comments
Open

argparse does't work together with FLAGS #3

ZiangYan opened this issue Mar 30, 2019 · 0 comments

Comments

@ZiangYan
Copy link

ZiangYan commented Mar 30, 2019

In train.py and train_adv.py, both argparse and FLAGS are used.

However, I found them doesn't work together.

When running adv training:

train_adv.py models/modelA_adv --type=0 --num_epochs=12

I got

usage: train_adv.py [-h] [--type TYPE] [--epochs EPOCHS] [--eps EPS]
                    [--norm NORM] [--iter ITER] [--ben BEN]
                    model [adv_models [adv_models ...]]
train_adv.py: error: unrecognized arguments: --num_epochs=12
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