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

Help not displayed. #23

Closed
sergedurand opened this issue Mar 7, 2023 · 1 comment
Closed

Help not displayed. #23

sergedurand opened this issue Mar 7, 2023 · 1 comment

Comments

@sergedurand
Copy link

Describe the bug
Calling the main script to display help by

python abcrown.py --help

fails with

ValueError: unsupported format character ')' (0x29) at index 17

To Reproduce
Just use above command on current main.

System configuration:

  • OS: Ubuntu 20.04
  • Python version: 3.9
  • Pytorch Version: 1.12
  • Hardware: irrelevant
  • Have you tried to reproduce the problem in a cleanly created conda/virtualenv environment using official installation instructions and the latest code on the main branch?: Yes. Same error occurs.

Fix
The error seems to come from the use of "%" in a help message: l.291 in arguments.py

        self.add_argument('--mip_refine_timeout', type=float, default=0.8,
                          help='Percentage (x100%) of time used for improving all intermediate layer bounds using mip. Default to be 0.8*timeout.',
                          hierarchy=h + ["refine_neuron_time_percentage"])

Doubling % fixes the error (https://stackoverflow.com/questions/20480018/valueerror-unsupported-format-character)

huanzhang12epyc pushed a commit that referenced this issue Mar 8, 2023
@huanzhang12
Copy link
Member

@sergedurand Thank you for reporting the issue!
I've fixed it in commit 7a46097

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

2 participants