MCPcopy Create free account
hub / github.com/dengdan/seglink / preprocess_for_eval

Function preprocess_for_eval

preprocessing/ssd_vgg_preprocessing.py:298–329  ·  view source on GitHub ↗

Preprocess an image for evaluation. Args: image: A `Tensor` representing an image of arbitrary size. out_shape: Output shape after pre-processing (if resize != None) resize: Resize strategy. Returns: A preprocessed image.

(image, labels, bboxes, xs, ys,
                        out_shape=EVAL_SIZE, data_format='NHWC',
                        difficults=None, resize=Resize.WARP_RESIZE,
                        scope='ssd_preprocessing_train')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

preprocess_imageFunction · 0.85

Calls 2

tf_image_whitenedFunction · 0.85
get_shapeMethod · 0.80

Tested by

no test coverage detected