Skip to content

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