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

Update yolo3_one_file_to_detect_them_all.py #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update yolo3_one_file_to_detect_them_all.py #293

wants to merge 1 commit into from

Conversation

CUN-bjy
Copy link

@CUN-bjy CUN-bjy commented Aug 21, 2020

cause of the line 10, error's happen

Traceback (most recent call last):
  File "yolo3_one_file_to_detect_them_all.py", line 10, in <module>
    np.set_printoptions(threshold=np.nan)
  File "/home/syscon/.local/lib/python3.5/site-packages/numpy/core/arrayprint.py", line 259, in set_printoptions
    floatmode, legacy)
  File "/home/syscon/.local/lib/python3.5/site-packages/numpy/core/arrayprint.py", line 95, in _make_options_dict
    raise ValueError("threshold must be non-NAN, try "
ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation

code should be changed like this propose.

cause of the line 10, error's happen

```python
Traceback (most recent call last):
  File "yolo3_one_file_to_detect_them_all.py", line 10, in <module>
    np.set_printoptions(threshold=np.nan)
  File "/home/syscon/.local/lib/python3.5/site-packages/numpy/core/arrayprint.py", line 259, in set_printoptions
    floatmode, legacy)
  File "/home/syscon/.local/lib/python3.5/site-packages/numpy/core/arrayprint.py", line 95, in _make_options_dict
    raise ValueError("threshold must be non-NAN, try "
ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation
```

code should be changed like this propose.
Copy link

@khu834 khu834 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I also ran into this issue

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

Successfully merging this pull request may close these issues.

2 participants