fix: when ssd net, high cpu usage & get_next err

This commit is contained in:
jonyguo 2020-12-10 19:00:47 +08:00
parent 995e973fec
commit 0a1d524404
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ def random_sample_crop(image, boxes):
def preprocess_fn(img_id, image, box, is_training):
"""Preprocess function for dataset."""
cv2.setNumThreads(2)
def _infer_data(image, input_shape):
img_h, img_w, _ = image.shape