From 04b51e433a736b93f9762cbe17a2d65c654a1c77 Mon Sep 17 00:00:00 2001 From: Sharon Date: Thu, 4 Jun 2020 09:46:26 +0100 Subject: [PATCH] Fix numpy set_printoptions error --- yolo3_one_file_to_detect_them_all.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yolo3_one_file_to_detect_them_all.py b/yolo3_one_file_to_detect_them_all.py index 17ca64e22..6a9a6c051 100644 --- a/yolo3_one_file_to_detect_them_all.py +++ b/yolo3_one_file_to_detect_them_all.py @@ -6,8 +6,9 @@ from keras.models import Model import struct import cv2 +import sys -np.set_printoptions(threshold=np.nan) +np.set_printoptions(threshold=sys.maxsize) os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0"